Single Expand

4 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 26 Jul 2008 Link to this post

    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
  2. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 26 Jul 2008 Link to this post

    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

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marcus
    Marcus avatar
    20 posts
    Member since:
    Jan 2009

    Posted 03 Mar 2010 Link to this post

    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
  5. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 08 Mar 2010 Link to this post

    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.
Back to Top