Clearing Row Selection from Client Side

3 replies. Last post: April 28, 2010 12:24 AM by Andi Santoso
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hello,

I am using WebGrid Version 7 with latest hotfix. I have enabled AllowMultipleSelection="Yes" and have RestoreRowSelection = "All" and PersistRowChecker="False".

I want to find out a way by which I can clear the multiple selection of rows across pages, including the selected styling from the client side on click of a button say "Clear Selection".

Also, on the client side I am using the method "grid.RootTable.GetCheckedRows().length" to return me a count of the checked rows on the client side. But, this method does not return me a correct count. For e.g - When I select 4 rows in page 1, navigate to page 2 and select further 2 rows holding the ctrl key, then navigate back to page 1. Then instead of showing the count as 6 rows, it shows me count as 10 rows.

I guess it adds the selection in page 1 to its existing count, irrespective of me making any further selections to that page.

Thanks and appreciate your help.

 

 

All times are GMT -5. The time now is 4:48 PM.
Previous Next