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

RadTabStrip - JS error when using Custom User Control

2 Answers 108 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Dhanesh
Top achievements
Rank 1
Dhanesh asked on 30 Nov 2010, 02:39 PM
HI,

I am facing a JavaScript error in my RadTabStrip and am not able to make head or tails of it. Help! This is what I am trying to achieve.

WebPage  (Has RadAjaxManagerProxy and no JavaScript)
RadTabStrip
---Tab 1
------User entry Input Boxes
------Next and Previous Navigation buttons
---Tab 2
------Custom User Control containing RadListView (This control has RadAjaxManagerProxy and no JavaScript)
------Next and Previous Navigation buttons

Idea is that User cannot directly go to Tab2 (Tab disabled) unless Tab1 is filled and validated. To go to Tab2 User will have to click on the Next button on Tab1. On the Tab1, Next button click I call the following code:

int selectedIndex = RadTabStrip1.SelectedIndex;
RadTabStrip1.Tabs[selectedIndex+1].Selected = true;
RadMultiPage1.SelectedIndex = selectedIndex + 1;

The problem is that I get a general JavaScript ("undefined is null or not an object") error when ever I click on the Tab1 Next button and the User Control does not render correctly.  However, If I just click on Tab2 then I can see the User control correctly without any error.

Not sure what I am doing wrong and where to look. Please advise.

TIA

2 Answers, 1 is accepted

Sort by
0
Dhanesh
Top achievements
Rank 1
answered on 01 Dec 2010, 03:26 PM
Anyone any ideas?

We also tried putting a normal RADGrid in place of the user control but still get the JS error.

Please advise.

TIA
0
Dimitar Terziev
Telerik team
answered on 01 Dec 2010, 06:16 PM
Hi Dhanesh,

I've prepared a small example showing how to perform a specific action on the first tab in order to proceed to the next one.

I hope this example will help you solve your issues with validation.

Best wishes,
Dimitar Terziev
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
Dhanesh
Top achievements
Rank 1
Answers by
Dhanesh
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or