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

Single Expand

3 Answers 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ManniAT
Top achievements
Rank 2
ManniAT asked on 26 Jul 2008, 10:42 PM
Hi,

I got the same problem with RadGrid - and it got solved here with a sample.
The thing is - I want only one Element expanded at a time.

So the solution (for grid) was to handle the item command.
This command is not fireing for expand / collapse with Grid-Ajax.

So the soltuion no longer works.
Is there another way to achive the same task?

Regards

Manfred

3 Answers, 1 is accepted

Sort by
0
ManniAT
Top achievements
Rank 2
answered on 27 Jul 2008, 01:16 AM
Sorry for that - I got it running by setting

HierarchyLoadMode

="ServerOnDemand"
This works good for the current solution.

I guess there would be a method to make this work also with Client as load mode - but it is litte data I transfer so it does not matter.

Regards

Manfred

0
Marcus
Top achievements
Rank 1
answered on 03 Mar 2010, 02:01 PM
As Manfred states changing the load method to-

HierarchyLoadMode ="ServerOnDemand"


works, but it seems a shame to return to the server to fire this action. Is there a solution where this can be called from the client with HierarchyLoadMode ="Client" and a client side function action the same Single Expand?

Marcus
0
Yavor
Telerik team
answered on 08 Mar 2010, 08:52 AM
Hi Marcus,

The setup relies on checking the command name, and collapsing the previously expanded item/level. This is why it needs to have a server load mode.
If you would like to handle this logic on the client, you can use the collapse method:

http://www.telerik.com/help/aspnet-ajax/grid_collapseitem.html

I hope this information helps.

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