LoadPostData directly set selected Index before TabClicked event is fired

2 posts, 0 answers
  1. Erik
    Erik avatar
    28 posts
    Member since:
    Aug 2010

    Posted 16 Oct 2012 Link to this post

    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!
  2. Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 22 Oct 2012 Link to this post

    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.

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