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

Page is not fully loaded after RadButton added

2 Answers 52 Views
Button
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 06 Jan 2011, 06:39 AM
Hi

I have here the following problem, wonder if it is a known issue:

Have a page with RadTabStrip, tabs generated by TabTemplates with DataSource provided. Tab Strip is set to be shorter than required to display all tabs ==> thus scrolling is there. Also there is function set for OnClientLoaded event.
Under normal circumstances:
 1) Tabs are loaded,
 2) tab strip scrollbar is displayed,
 3) function for OnClientLoaded event fires as required.

Now - I have added a RadButton with Text and ImageURL properties set as well as OnClientClicked pointing to existing function.
When I run page now, I see that:
 1) Tabs are loaded,
 2) tab strip scrollbar is NOT displayed, and tabs are NOT scrollable
 3) function for OnClientLoaded event does NOT fire
 4) RadButton is shown

are these two controls are incompatible or I am missing something?
I can set up some small sample demo if needed for investigation

Thanks,
Dmitry

2 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 06 Jan 2011, 12:19 PM
Hello Dmitry,

The page probably has a JavaScript exception, which prevents the controls (TabStrip) from correctly initializing. Check the JS exception message (for example, the button cannot find its OnClientClicked function) and try to fix it. If that does not help, open a formal support ticket and send us a simple page that shows the problem.

Kind regards,
Lini
the Telerik team
Browse the vast support resources we have to jump start 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
Cori
Top achievements
Rank 2
answered on 06 Jan 2011, 02:28 PM
Hello Dmitry,

To expand on what Lini said. If you're pointing it to an existing function, which I guess you used with the normal asp:Button, you will need to adjust the function signature.

So if you had a function like this:

OnButtonClick(){
    alert("Hello World!");
}

It needs to be changed to this:

OnButtonClick(sender, args){
    alert("Hello World!");
}

In order to work with RadButton.

I hope that helps.
Tags
Button
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Lini
Telerik team
Cori
Top achievements
Rank 2
Share this question
or