简体   繁体   中英

Select all rows on a radgrid component

I have a telerik radgrid component. It has paging (Pagesize 10). Its total rows are mostly about 130 - 140. How can i select all these data, including the ones whis are not on the screen at that time. For example i am at the third page. I press a button to select all and it should select all data on every page. Is that possible?

Selecting all rows on all pages is impossible: http://www.telerik.com/forums/radgrid---select-all-from-all-pages Instead disable paging and select all rows:

RadGrid1.AllowPaging = false;
RadGrid1.Rebind();

Read here for more info: http://www.telerik.com/support/code-library/get-selected-items-through-all-pages

EDIT: Perhaps you can set a bool inside the ViewState when that button is clicked; if the bool == true and you navigate to another page, you can reselect all those rows on that page. Also, when it is true, you can perform your logic based on that; I hope this helps. You can use the NeedDataSource event for this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM