RadTabStrip change SelectedIndex Problem, remain older Tab clicked status

2 posts, 0 answers
  1. 章民
    章民 avatar
    20 posts
    Member since:
    Oct 2012

    Posted 27 Jun Link to this post

    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. 章民
    章民 avatar
    20 posts
    Member since:
    Oct 2012

    Posted 27 Jun in reply to 章民 Link to this post

    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;
            }
        }                                       
    }
Back to Top