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

Is it possible to create a nested grid thorugh client code

6 Answers 220 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris Messineo
Top achievements
Rank 1
Chris Messineo asked on 03 Oct 2008, 02:43 PM
Hi, I'm trying to reduce the initial load of my Hierarchical grid.  Right now it is about 180kb, I thought if I could create the nested grid on the client when it is needed the initial page load would be small.

I'm using this approach

http://blogs.telerik.com/vladimirenchev/Posts/08-09-09/How_To_Telerik_RadGrid_Master_Detail_client-side_data-binding_using_LINQ_to_SQL_and_WebService.aspx?ReturnURL=%2fvladimirenchev%2fPosts.aspx

Basically I'm using two web services on the client to load my master grid and the nested grid.

Thanks
Chris

6 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 08 Oct 2008, 06:16 AM
Hello Chris,

I have prepared for you small example to illustrate you how to optimize this scenario - you can find the project attached.

Let me know how it goes.

Greetings,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris Messineo
Top achievements
Rank 1
answered on 13 Oct 2008, 06:56 PM
Nikolay, thanks for the sample code.  That reduced my initial page load by 120kb


0
Brian
Top achievements
Rank 1
answered on 14 Dec 2009, 07:39 PM
hey Vlaidmir,

   great post -- I've modified it for my purpose and all is good -- now I'd like to extend it (4 level hierarchy) and I'm hoping you (or someone) can give me a bit of help re: why 2 .js script files are required.  I'm new to .js and although I can see that the app does need them both, I'm curious as to why and also if i'm going to require more as I extend my hierarchy

 thanks in advance
b stensrud
0
Nikolay Rusev
Telerik team
answered on 17 Dec 2009, 05:00 PM
Hello Brian,

Generally RadGrid does not support hierarchy out-of-box with client-side binding.
Provided solution to this thread as sample application and blog post demonstrates how you can attain such functionality. You can extend it in order to achieve your requirements.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Aaron Whittaker
Top achievements
Rank 1
answered on 03 Jul 2013, 06:58 PM
   DO you have a this functionality with latest version of telerik controls i.e. nested grid through client code and expand at all levels and CRUD operation at each hierarchial level (all client side)?
0
Maria Ilieva
Telerik team
answered on 08 Jul 2013, 08:48 AM
Hello Aaron,

I am afraid that RadGrid does not support any kind of hierarchy by using client-side data-binding.
RadGrid transfer only JSON from client-server(Service/PageMethod)-client to populate RadGrid.
The only possible approach is to use server binding with client load mode as shown below:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/hierarchyloadmodeclient/defaultcs.aspx

Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Chris Messineo
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Chris Messineo
Top achievements
Rank 1
Brian
Top achievements
Rank 1
Aaron Whittaker
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or