I recently posted this question in the ASP.NET Classic Controls forum, http://www.telerik.com/community/forums/aspnet/tabstrip/select-first-child-tab-in-tabstrip.aspx
, since the problem was similar, but in case those forums are not checked/updated (and since I am using the newer set of ASP.NET AJAX Q3 2009 controls) I am reposting here.
I have a hierarchical RadTabStrip that is databound through a SqlDataSource. I am trying to set up a "fallback" default scenario where if the FindByURL method does not find a match that the RadTabStrip defaults to the selecting the "deepest" value of the first tab.
For example, assume that FindByURL could not find a matching tab in the items below. By default I would like Parent1GrandChild1 selected if the tabstrip has a 3 level hierarchy. I would like Parent1Child1 to be selected if the tabstrip has a 2 level hierarchy, and Parent1 selected if it only has root level tabs. I do not know how to always select the first tab item in the deepest level of the tabstrip.
Parent1Child1 Parent2Child1 Parent2Child2
I also need to do this in the codebehind instead of the clientside script on page load and am using RadControls for ASP.NET AJAX [Version: 2009.2 701 (Jul 1, 2009)].