This is a migrated thread and some comments may be shown as answers.

Sorting and Grouping at client side

3 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sammy
Top achievements
Rank 1
Sammy asked on 18 Jun 2012, 09:13 PM
Hi,
I would like to implement sorting and grouping at client side, no post backs. So, intention is to get all the data in one go and then let user group/sort at client side. Please let me know if I can use RadGrid's client side events for this.

Thanks,
SV

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Jun 2012, 04:52 AM
Hi Sammy,

Pure client-side sorting is not supported in RadGrid. You need to call the web service/page method/ URL that provides your data when you need to sort. RadGrid then expects the sorted data to be returned in the response. In order to enable grouping on the client, set the GroupLoadMode property of a table view to Client and the ClientSettings.AllowGroupExpandCollapse property to True. When grouping is handled on the client, groups are expanded client-side, without a postback. This means that the data for all groups, whether they are expanded or not, must be loaded on the client. Hope this helps.

Thanks,
Shinu.
0
Sammy
Top achievements
Rank 1
answered on 19 Jun 2012, 04:03 PM
Thanks Shinu. I enabled ClientSideGrouping, it shows grouping panel and I am able to drag column header to group panel but it does not group data. I am using Client side databinding using a WebService call.
0
Shinu
Top achievements
Rank 2
answered on 21 Jun 2012, 05:50 AM
Hello Sammy,

Grouping with client-side binding is not supported. Server binding only should be used in order to achieve grouping. Check the following help documentation which explains more about this.
Client-side Binding Specifics.

Thanks,
Shinu.
Tags
Grid
Asked by
Sammy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Sammy
Top achievements
Rank 1
Share this question
or