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

Tab.Tabs,Tab.DepthLevel etc doesnt work in Telerik.Web.UI dll

3 Answers 105 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 25 Nov 2010, 05:08 AM

I was using the RadTabStrip.Net2 dll in my project. In the project I had RadTabStrip as shown below.

<radTS:RadTabStrip id="TabStrip" runat="server" SkinsPath="resources/Skins/" Skin="SimpleBarBlue" MultiPageID="MultiPage"
SelectedIndex="0" UseEmbeddedScripts="true" OnClientTabSelected="TabCallback" ClickSelectedTab="true" EnableViewState="false"
/>

OnClientTabSelected, I am calling Javascript function "TabCallback" where I find the selected TabIndex and its childIndex as shown below.

function TabCallback(sender, eventArgs) 
  {
    if(!eventArgs.Tab.Tabs[0] || eventArgs.Tab.DepthLevel == 2)
      {
         var tab = eventArgs.Tab.Index;
         var innerTab = 0;
         if(eventArgs.Tab.DepthLevel == 2)
           {
              tab = eventArgs.Tab.Parent.Index;
              innerTab = eventArgs.Tab.Index;
           }
           setCookie("TabID", tab);
           setCookie("InnerTabID", innerTab);
           setCookie("ViewID", eventArgs.Tab.Value);
           window["<%= RadAjaxManager1.ClientID %>"].AjaxRequest
                (tab + "|" + innerTab + "|" + eventArgs.Tab.Value);           
     }
                resize();
  }


Now I am using another dll Telerik.Web.UI . But I am surprised to see these properties like Tab.Index, Tab.Depthlevel, Tab.Parent.Index doesnt work in new dll. Its says the object doesn't support these properties. I really need these functionalities. Can any one tell me the equivalent clientside properties in the new Telerik.Web.UI dll.

And one more thing, I am using the licensed dll and I need quick reply but I dont know how to get a ticket and post my questions. I would like to know about this too..

With Regards
Ravi

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 25 Nov 2010, 08:21 AM
Hello Ravi,

Please check the following help articles:

Migrating From RadTabStrip Classic to RadTabStrip for ASP.NET AJAX
Client-Side Basics
RadTab object

All the best,
Yana
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Ravi
Top achievements
Rank 1
answered on 25 Nov 2010, 09:37 AM
Hi Yana

Thanks that you provided me the information about the differences between two dlls. However, I tried to changed the classic codes according to the provided information but its not working.

function TabCallback(sender, eventArgs)
 {
alert(eventArgs.get_tabs())
alert(eventArgs.get_selectedTab())
}

The above set of lines still says,  Object doesn't support this property or method. I would be grateful if you could help me.
I have tried to convert the classis codes to new ones. Could you please verify If they are correct.

eventArgs.Tab.Tabs[0]    = eventArgs.getTab().get_tabs().getTab(0))
  
eventArgs.Tab.DepthLevel = eventArgs.getTab().get_level()
eventArgs.Tab.Index      = eventArgs.getTab().get_index()

In the information you provided , it says Tabs is equivalent to get_tabs(), but as you can see that I have eventArgs.Tab  and I didnt find corresponding property for " Tab". However, I replaced Tab with getTab() in above codes. Please help me to verify

With Regards
Ravi
0
Yana
Telerik team
answered on 30 Nov 2010, 04:44 PM
Hello Ravi,

Please check OnClientTabSelected event here - you can use eventArgs.get_tab()  method in order to find the clicked tab.

Greetings,
Yana
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
TabStrip
Asked by
Ravi
Top achievements
Rank 1
Answers by
Yana
Telerik team
Ravi
Top achievements
Rank 1
Share this question
or