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

Dynamically changing Visibility of tab

1 Answer 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Panks
Top achievements
Rank 1
Panks asked on 02 Jan 2011, 06:49 AM
I have a tabstrip containing 2 tabs which are visible and have 3rd tab which is not visible (Visible="false"). On button click (server side) if all the validations and statements are executed correctly, I want third tab to be visible and selected. My code is as below

 

 

protected void Button2_Click(object sender, EventArgs e)
    {
        RadTabStrip1.Tabs[2].Visible = true;
        RadTabStrip1.SelectedIndex = 2;
        RadTabStrip1.FindTabByText("Summary").Visible = true;
    }

but this is not happening. the 3rd tab doesnt appears at all.

Appreciate your help

Pankaj

 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Jan 2011, 06:28 AM
Hello Pankaj,


Normally the above code will work as it worked fine for me. Do you ajaxified the controls on page? If so you need to set ajaxsettings properly to update the controls.

mark-up:
<telerik:RadAjaxManager ID="ajaxManager" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Button2">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
Check this sample markup shows how to set relation for AjaxManager for this scenario.



-Shinu.
Tags
General Discussions
Asked by
Panks
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or