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

RadTabStrip change SelectedIndex Problem, remain older Tab clicked status

2 Answers 95 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
章民
Top achievements
Rank 1
章民 asked on 28 Jun 2017, 12:59 AM

I jump to RadPageView11 successfully. When I click Tab Button linked to RadPageViewMenu0 again, and then jump to RadPageView11 is still successful. But now the Tab Button linked to RadPageViewMenu0's status is clicked. I cannot click the button again. Does somebody know how to solve this problem?

for (int index = 0; index < RadTabStripMenu.Tabs.Count ; index++)
{
    if (RadTabStripMenu.Tabs[index].Text == "Admission Note")
    { 
        RadMultiPageMenu.SelectedIndex = 11;
        RadPageViewMenu11.Selected = true;
        RadPageViewMenu0.Selected = false;
 
        Page11Submit();
        break;
    }
}

 

2 Answers, 1 is accepted

Sort by
0
章民
Top achievements
Rank 1
answered on 28 Jun 2017, 03:41 AM

I had solved this problem. Because the RadTabStrip is in the update panel, so I add

<asp:AsyncPostBackTrigger ControlID="GridViewLiveList0" EventName="RowCommand" />

to the UpdatePanel's triggers. And then add

RadTabStripMenu.SelectedIndex = index;

to change the selected index of RadTabStrip.

    for (int index = 0; index < RadTabStripMenu.Tabs.Count ; index++)
    {
        if (RadTabStripMenu.Tabs[index].Text == "Admission Note")
        {
            RadTabStripMenu.SelectedIndex = index;
 
            RadMultiPageMenu.SelectedIndex = 11;
            //RadPageViewMenu11.Selected = true;
            RadPageViewMenu0.Selected = false;
 
            Page11Submit();
            break;
        }
    }                                       
}
0
Carlos
Top achievements
Rank 1
Iron
answered on 25 Apr 2022, 07:49 AM

Hi!

 

I solved this problem in this way:

 

I have the RadTabStrip in a UpdatePanel, so I set the SelectedIndex that I want to show to the RadTabStrip and RadMultiPage, and later updated the UpdatePanel:

 

   RadMultiPage_general.SelectedIndex = 1;

   RadTabStrip_general.SelectedIndex = 1;

   up_filtros.Update();

 

I this way, when the user click in a button, I can change the current SelectedIndex tab and show the information that I want.

I hope that answer could help to anyone!

Tags
TabStrip
Asked by
章民
Top achievements
Rank 1
Answers by
章民
Top achievements
Rank 1
Carlos
Top achievements
Rank 1
Iron
Share this question
or