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

LoadPostData directly set selected Index before TabClicked event is fired

1 Answer 46 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 16 Oct 2012, 09:37 AM
In our application we use a tabstrip with different tabs which are build up server-side when they become active. At one of the tabs there is an editable grid which must save the data before the new tab is build up.

Our problem is that the TabStrip updates the selected index in the LoadPostEvent of the lifecycle and makes all child controls on the active tab visible=false. This happens before any user events are executed. When the event of the grid is fired it is marked invisible already...

In our opinion the selected index should be updated when the tabClicked event from the tab is fired. Events fired in the same request before the TabClicked event can work in the correct state then. Now there is a gap between the loadPostData and the TabClicked event where the state of the tabpanel is in an incorrect state.

Thanks for your time!

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 22 Oct 2012, 11:52 AM
Hi Erik,

In general the LoadPostData is the standard place to load the post-back data for a control and since the selected indices are stored in the client-state, this is where they are applied to the control. As for the statement that the tabs are hidden, in general when the selected indexes are being applied first all tabs are unselected and then only the ones which hierarchical indexes correspond to one from the client state are being selected.

In order to help you troubleshoot the experienced problem, my suggestion is to open a support ticket and provide a runnable sample.

Regards,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TabStrip
Asked by
Erik
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or