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

ExpandCollapseCommand without Postback?

2 Answers 49 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Danny Scheelings
Top achievements
Rank 1
Danny Scheelings asked on 25 Oct 2009, 11:58 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 28 Oct 2009, 03:24 PM
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.
0
Danny Scheelings
Top achievements
Rank 1
answered on 28 Oct 2009, 03:59 PM
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
Tags
Dock
Asked by
Danny Scheelings
Top achievements
Rank 1
Answers by
Pero
Telerik team
Danny Scheelings
Top achievements
Rank 1
Share this question
or