Editable Table Check if editable

Editable Table Check if editable

  
How to capture the event that makes the table editable? I want to change an element inside when the table is on editable mode.
Hi Filipe,

Not sure if this is enough for you, but rows that are in edit mode have an OnEdit css class.

Cheers,
Tiago Simões
Yeah i know but how to capture that to do other thing?
Hi Filipe,

I believe you need a bit of jQuery magic for that. Something like this could eventually work:

$(#yourTableID).on('click', 'tbody>tr', function (event) {
	//check if row has an OnEdit class
});

$(#yourTableID).on('keypress keyup keydown', 'tbody input:not([type="submit"]), textarea, select', function (event) {
	//check if row has an OnEdit class
});
                        
Did you test that code? It doesnt work because i guess outsystems is catching the capture after even with $(function(){..... });
Yeap these jquery functions work but before the table take the OnEdit class
Hi Filipe,

You can eventually use a setTimeout or setImediate to run some code after it (haven't tested it).
This does look like a good extensibility candidate, so probably we'll add some cleaner hooks in the future for these scenarios.

Thanks,
Tiago Simões