ExpandCollapseCommand without Postback?

3 posts, 1 answers
  1. Danny Scheelings
    Danny Scheelings avatar
    69 posts
    Member since:
    Jan 2006

    Posted 25 Oct 2009 Link to this post

    Hi,

    I'm using the example from http://demos.telerik.com/aspnet-ajax/dock/examples/dynamicdocks/defaultcs.aspx to dynamically add Docks to a DockZone. I set the CommandsAutoPostBack property of the Dock to False and also the AutoPostback property of the DockCommand to False, but I still notice a postback when I collapse/expand the Dock.

    Is there a way to handle this client-side, and also with keeping state of the Docks after a postback?

    Thanx,
    Danny

  2. Answer
    Pero
    Admin
    Pero avatar
    1156 posts

    Posted 28 Oct 2009 Link to this post

    Hello Danny,

    You need to use a single approach when setting the AutoPostBack properties of the dock's commands (i.e. use either the dock.CommandsAutoPostBack, or the AutoPostBack property for every individual command). For example in the project attached to the thread I am setting AutoPostBack=false to the ExpandCollapse/Command and AutoPostBack=true to the Close command.


    Greetings,
    Pero
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Danny Scheelings
    Danny Scheelings avatar
    69 posts
    Member since:
    Jan 2006

    Posted 28 Oct 2009 Link to this post

    Hi Pero,

    Thanks for your reply.
    Your example project works great and I was able to integrate your code into my application.

    Thanks a lot!
    Danny
Back to Top