I've set up a tabstrip in the pager template of a formview and bound it to a SQLDatasource. I then set up a server side OnTabClick event to change the page of the formview. This works great. The only issue I'm having is displaying the selected tab. It seems to only work if I click the same tab twice. I've tried setting the selected tab in the tabclick event and in the page_load event to to avail. Does anyone have any ideas?
Here is my code, including the tab.selected property in the event. The functionality is the same with or without that line.
Thanks.
Here is my code, including the tab.selected property in the event. The functionality is the same with or without that line.
<telerik:RadTabStrip ID="RadTabStrip2" runat="server" |
DataSourceID="SqlDataSource5" DataTextField="proj_no" |
ontabclick="RadTabStrip2_TabClick"> |
</telerik:RadTabStrip> |
Protected Sub RadTabStrip2_TabClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTabStripEventArgs) |
FormView3.PageIndex = e.Tab.Index |
e.Tab.Selected = True |
End Sub |
Thanks.