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

access label in item template

1 Answer 8 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 12 Aug 2013, 08:36 AM
Hi

I have placed a label inside the item template of item of a radpanelbar. How do I access it in javascript?

Thanks
Robert

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 12 Aug 2013, 08:59 AM
Hi Robert,

Please have a look at the following JavaScript code.

JavaScript:
<script type="text/javascript">
    var label1 = $find('<%= RadPanelBar1.FindItemByText("ItemText").FindControl("lblText").ClientID %>');
</script>

Thanks,
Shinu.
Tags
PanelBar
Asked by
Robert
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or