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

[Solved] RAD Grid and DataList

1 Answer 243 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nairooz Nilafdeen
Top achievements
Rank 1
Nairooz Nilafdeen asked on 05 Nov 2009, 10:43 AM
Hi Guys,

I have a Grid that shows catagories and I have set up a NestedViewTemplate that comprises of a DataList (this datalist basically contains checkboxes). what I want to do is bind the a datalist programmatically.
That is I need to get the items of the expanded catagory and fill it up on the checkboxes of the datalist. How can I do this?, and also I should be able to read the checked values back.
Can someone help me on this?

Regards,
Nairooz Nilafdeen

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 10 Nov 2009, 04:54 PM
Hello Nairooz,

First, to load the items in the expanded items of the grid hierarchy on demand, consider the solution presented on this online demo of the product (changing the visibility of an asp panel):

http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx

To bind the DataList inside the NestedViewTemplate programmatically, intercept the ItemDataBound event of the grid (this is the stage when the items get populated with data), locate the DataList by its id invoking the FindControl(id) method for the respective GridNestedViewItem and then determine the state of the checkboxes.

Additionally, more details about how to traverse grid item in hierarchy you can gather from this documentation topic.

Best regards,
Sebastian
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.
Tags
Grid
Asked by
Nairooz Nilafdeen
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or