Hi Team,
How can we hide a particular row at client side with its row index? And when we hide that row the row count (in row selector) of the next row should become that of the hiding one and so on. How can we do it?
An example:
ID Name Age
1 A Raj 21
2 B Sam 25 <---- The row to hide at client side.
3 C Jen 23
4 D Zak 26
After hiding the resulted data should be like this,
2 C Jen 23
3 D Zak 26
How can we achieve it when Autogeneratecolumns is either True or False.
Thanks,
Assyst
Hi,
I am following up with you and if the issue had been resolved.
Magued
I am not getting the same behavior that you are getting. The row is being removed successfully and if handle the RowDeleting event on the server side then it gets called. You may need to enable the RowDelete behavior. You can always create a small project that reproduces the issue and attach it to the forum post.
I tried to remove the row with the script
$find("<%=wdgGrid.ClientID %>")get_grid().get_rows().remove(<row_index>,false);
But as the property Autogeneratecolumns is set to true i got an alert as "The editing behaviour must be enabled to use remove function". So it won't removed. So how can i achieve it?
You can remove a row from the collection using the remove method. please refer to the following link:
http://help.infragistics.com/NetAdvantage/ASPNET/2010.1/CLR3.5/?page=WebDataGrid~Infragistics.Web.UI.GridRowCollection~remove.html
for more information on the remove method.
Hi team,
Expecting your reply soon in this matter.