AjaxToolkit: the last TabContainer on the page is focused on page load

前端 未结 5 2039
梦毁少年i
梦毁少年i 2021-01-18 07:00

I\'m using more than one TabContainer on a page in an ASP.NET project and I noticed a really strange behavior: when the page is loaded the focus jumps to the last TabContain

5条回答
  •  再見小時候
    2021-01-18 07:11

    Try this out. It helped me:

    window.Sys.Application.findComponent('<%=tabContainer.ClientID %>');
    
    tabContainer.set_activeTabIndex(1);  ( //Here set the id of the last tab that is the index of the last tab. Index will start with 0 upto last - 1 as in array.. )
    

提交回复
热议问题