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

RadGrid - prevent NestedViewTemplate on a row from loading...

7 Answers 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wired_Nerve
Top achievements
Rank 2
Wired_Nerve asked on 14 Oct 2010, 04:58 PM
I have a radgrid with numerous rows.  If you click on a row it expands to reveal a tab control with two tabs.  Each tab then has a user control with related data.

My question is this: I would like to prevent the user controls from activating and loading their data until the user clicks a row.  Then I would like the system to fetch the data... I call this lazy load, but I know this is not the correct term...


Any suggestions on where to find how to do this?

7 Answers, 1 is accepted

Sort by
0
Wired_Nerve
Top achievements
Rank 2
answered on 18 Oct 2010, 07:37 PM
No responses yet.. Anyone???
0
Accepted
Mira
Telerik team
answered on 19 Oct 2010, 02:37 PM
Hello Warren,

To implement the desired functionality, please use the approach from the Hierarchy with Templates demo. In it the controls in the NestedViewTemplate are wrapped in a panel which visibility is switched according to the expanded/collapsed state of the corresponding item.

I hope this helps.

Best wishes,
Mira
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
Wired_Nerve
Top achievements
Rank 2
answered on 19 Oct 2010, 02:39 PM
Thanks

I try it out and let you know.
0
Wired_Nerve
Top achievements
Rank 2
answered on 19 Oct 2010, 03:21 PM
Weird behavior.

The first row in the grid is automatically expanded and tab content is visible..(that is fine)
When I click on another row..The tabs to not show up at all...

0
Wired_Nerve
Top achievements
Rank 2
answered on 19 Oct 2010, 03:27 PM
Found the issue
It seems when we click on a row it is passing the commandname as rowclick not ExpandCollapse

Anyway,  it is working now since I told it to look for RowClick

0
Wired_Nerve
Top achievements
Rank 2
answered on 19 Oct 2010, 07:05 PM
Got this solution to work,but now I am trying to figure out if my ajaxmanager is loading  more than it should be...

See this post..

http://www.telerik.com/community/forums/aspnet-ajax/grid/prevent-inner-grid-in-a-template-from-firing-ajax-repaint-on-parent-page.aspx
0
Mira
Telerik team
answered on 25 Oct 2010, 03:10 PM
Hello Warren,

Your questions about the loaded data from the AJAX manager will be answered in the prevent inner grid in a template from firing ajax repaint on parent page... forum thread.

All the best,
Mira
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
Wired_Nerve
Top achievements
Rank 2
Answers by
Wired_Nerve
Top achievements
Rank 2
Mira
Telerik team
Share this question
or