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

Access RAD Toolbar template button on client side

1 Answer 91 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Rose Garza
Top achievements
Rank 1
Rose Garza asked on 07 May 2008, 08:18 PM
Hi,

I'm using RADToolbar which has template button and with in the template button i have a linkbutton and a label. I have to access the label with in the template button in the tool bar on the client side (javascript). When i tried to access the toolbar on client side, it says that  'toolbar ins undefined'. But when i use toolbar button instead of template button, i was able to access the toolbar. So the question is how to access the controls with in the template button in toolbar on client side (javascript)?  
Note: i'm developing using Telerik of version 'RadControls for ASP.NET Q2 2007'.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 08 May 2008, 07:28 AM
Hi Rose,

You could use the document.getElementById('<%=RadToolBar.FindControl("Label1").ClientID%>'); approach. The attached page demonstrates that.

Regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolBar
Asked by
Rose Garza
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or