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

NestedViewTemplate Lost When Expanded

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 16 Nov 2012, 06:11 PM
I am doing all my Grid Building using Server-Side code (class I created) because it's dynamic.

I created a class implementing ITemplate. In this class I create a single Label control within the InstantiateIn() method and I add it to the controls array.

When the grid loads, it shows all the parent rows, and it show the ">" button on the left of each row to expand and view it's details. However, when I click the ">" button, the grid refreshes and all the ">" buttons vanish. The nested rows seem to have all dissapeared. I am assuming there is an event that runs when the ">" button is clicked, and somehow because my grid is dynamic, I lose the detail rows. Anyone know what event I might be overlooking on the click of ">" to fix me problem?

-Ben

1 Answer, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 17 Nov 2012, 02:22 PM
Hello,

please check below link.

Programmatic creation of RadGrid / Hierarchy with Templates

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Ben
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or