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

RadGrid : automatic population of client set_dataSource from DataSource retrieved server-side?

3 Answers 175 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ariane
Top achievements
Rank 1
ariane asked on 29 Jul 2010, 10:37 AM
Hello,
I've got a page with an updatePanel (Conditional mode for Ajax behaviour), and this UpdatePanel contains a RadGrid whose DataSource is populated on the first page-load. All postbacks are then disabled and I fully work on client-side with this RadGrid.
Along with this RadGrid I've got a form whose fields match each column of the Grid.
When I click (client-side) on an item of the Grid, my JScript should load the values into the fields of the form section for edit/update purpose.
And I also want to sort the columns of the grid on client-side only (I have the impression that the DataSource needs to be set client-side also for this to be achieved. Am I right?).

So my question is : if the client DataSource needs to be set, is there an easy means for setting it automatically based on the content of the Grid retrieved server-side on the Page Load (without invoking additional WebMethod or PageMethod) ?
Thansk in advance for your reply.
Best regards

Olivier.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 03 Aug 2010, 04:51 PM
Hello Ariane,

Indeed you can access the server-side data that is used for populating on client side but have in mind that any action should take place on client side.

I hope this helps.

Sincerely yours,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
ariane
Top achievements
Rank 1
answered on 09 Aug 2010, 01:03 PM
Thanks for your reply.
I actually set the client data-source using the JSon format, which works fine.
However, it seems the client-side sort function is not implemented. Clicking on the header of a column raises the client event with command="Sort" and the name of the colum as an argument. But that is all ! The sorting is not performed.
Do I need to implement it myself, or is there a means to activate it on client-side?
Thansk for your reply.
Regards,

Olivier.
0
Pavlina
Telerik team
answered on 12 Aug 2010, 12:10 PM
Hi Ariane,

More info on how to achieve the desired functionality is available in the help articles below:
http://www.telerik.com/help/aspnet-ajax/client-side-binding.html
http://www.telerik.com/help/aspnet-ajax/client-side-binding-specifics.html

Regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
ariane
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
ariane
Top achievements
Rank 1
Share this question
or