Hi,
Is there any client side event I can use that is fired only once after the table has been rendered ? I want to enable or disable the filtering row of the table depending on some client side logic in javascript, and because I am updating the table contents by rebinding using the table in an UpdatePanel (maybere there is a better way to do it, if there is please let me know), when the table is updated, the filtering row appears again. I would like to hide it if necessary once it has loaded (now that logic is done on the document.ready callback).
This is the code I use to enable and disable the bar (using JQuery):
//Hide filtering options (initial)$('#UltraWebGridTable_flr').hide();
filter.click(function() { $('#UltraWebGridTable_flr').toggle(); $(this).toggleClass('hideFilter'); $(this).toggleClass('showFilter'); if($(this).hasClass('showFilter')) { $(this).attr('alt','Show filter fields'); $(this).attr('title','Show filter fields'); } else { $(this).attr('alt','Hide filter fields'); $(this).attr('title','Hide filter fields'); } });
Thanks!