Hi Dharmendr,
How to display hidden rows on button click using jquery
Thanks for your prompt response.
Once (showRows) button is enabled then on click i am trying to unhide grid rows.
GridView has total 15 rows out of which 10 are hidden on page load using :
$(function(){
for(var i=6; i <=15; i++)
{
$("[id*=GridView1] tr:has(td):nth("+i+")").hide();
}
});
now, as button is enabled post validation I am trying below jquery to show remaining rows but below snippet is not working (it shows rows only for fraction of second and then hide, somewhere is calling hide logic again every time)
$('[id*=showRows]').on('click', function(){
for(var i=6; i <=15; i++)
{
$("[id*=GridView1] tr:has(td):nth("+i+")").show();
}
});
can you please verify or suggest alternate way for adding rows in grid with controls on click ?