StephenWRogers
Top achievements
Rank 1
StephenWRogers
asked on 08 Aug 2008, 04:03 PM
Quick question: Can I use the new client-side databinding method and have the data grouped?
I'd like to change from doing full postbacks to populate a grid, but the only stumbling block I have is trying to keep the grouping I have.
Thanks,
Stephen
I'd like to change from doing full postbacks to populate a grid, but the only stumbling block I have is trying to keep the grouping I have.
Thanks,
Stephen
9 Answers, 1 is accepted
0
Kevin Babcock
Top achievements
Rank 1
answered on 08 Aug 2008, 08:36 PM
Hello Stephen,
Unfortunately there is no easy way to implement client-side grouping with the current release of the RadGrid. However, you might consider using a RadAjaxManager or RadAjaxPanel to perform partial-page postbacks. While this is not as quick as the client-side databinding method, it is certainly faster than doing a full page postback.
I hope this was helpful. If you have further questions, please don't hesitate to ask.
Sincerely,
Kevin Babcock
Unfortunately there is no easy way to implement client-side grouping with the current release of the RadGrid. However, you might consider using a RadAjaxManager or RadAjaxPanel to perform partial-page postbacks. While this is not as quick as the client-side databinding method, it is certainly faster than doing a full page postback.
I hope this was helpful. If you have further questions, please don't hesitate to ask.
Sincerely,
Kevin Babcock
0
Shinu
Top achievements
Rank 2
answered on 11 Aug 2008, 07:21 AM
Hi Stephen,
You can also try setting GroupLoadMode property to Client so that groups will be expanded client side without postbacks.
Client group load
Shinu.
You can also try setting GroupLoadMode property to Client so that groups will be expanded client side without postbacks.
Client group load
Shinu.
0
Kevin Babcock
Top achievements
Rank 1
answered on 11 Aug 2008, 02:32 PM
Hello,
Shinu does point out a great feature of the RadGrid. The GroupLoadMode property allows you to expand your grouped rows on the client, or by posting back to the server (the default behavior). However, because this server-side property works with data that is bound on the server, it will not function correctly when used with the client-side databinding feature of the RadGrid.
I hope this helps.
Regards,
Kevin Babcock
Shinu does point out a great feature of the RadGrid. The GroupLoadMode property allows you to expand your grouped rows on the client, or by posting back to the server (the default behavior). However, because this server-side property works with data that is bound on the server, it will not function correctly when used with the client-side databinding feature of the RadGrid.
I hope this helps.
Regards,
Kevin Babcock
0
StephenWRogers
Top achievements
Rank 1
answered on 11 Aug 2008, 02:38 PM
Yeah, I'm already populating the control with partial page rendering and using GridGroupLoadMode.Client, and everything is working fine.
I was just having a look at the new client-side databinding functionality to see whether I could get data to the grid without going through the full page lifecycle every time I wanted to update the data.
I'd created a webservice to return the data and called the new set_dataSource() method and everything worked - except I had lost the grouping. If I could populate the grid from the webservice and keep the grouping, then I could make the switch.
Thanks,
Stephen
I was just having a look at the new client-side databinding functionality to see whether I could get data to the grid without going through the full page lifecycle every time I wanted to update the data.
I'd created a webservice to return the data and called the new set_dataSource() method and everything worked - except I had lost the grouping. If I could populate the grid from the webservice and keep the grouping, then I could make the switch.
Thanks,
Stephen
0
Luci
Top achievements
Rank 1
answered on 28 Aug 2008, 02:35 PM
:( I needed this to work
0
Scott R
Top achievements
Rank 1
answered on 16 Sep 2008, 04:00 PM
I just wanted to add my name to the list of those who would like to have client-side grouping with client-side data-binding. :)
0
Demon
Top achievements
Rank 1
answered on 16 Sep 2008, 04:19 PM
Everybody's enthusiasm about client-side grouping is quite understandable, but I am a little sceptic - how do you think REAL client-side grouping should work in case the control is bound to a datasource with thousands of records? What should we buy first - second CPU or more RAM? :)))
0
Scott R
Top achievements
Rank 1
answered on 16 Sep 2008, 04:50 PM
It'll probably work just like REAL client-side data-binding works "in case the control is bound to a datasource with thousands of records": slow in IE, fast in FF.
0
Hardik
Top achievements
Rank 1
answered on 24 Jul 2014, 02:40 PM
This ll work... not proper way but it works
if (args.get_commandName() != "ExportToExcel" && args.get_commandName() != "GroupByColumn" && args.get_commandName() != "UnGroupByExpression")
args.set_cancel(true);
if (args.get_commandName() != "ExportToExcel" && args.get_commandName() != "GroupByColumn" && args.get_commandName() != "UnGroupByExpression")
args.set_cancel(true);