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

How to find a control in RadListView in JS?

1 Answer 109 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
not
Top achievements
Rank 1
not asked on 03 Jan 2011, 10:08 PM
I have a user control with a RadListView, which contains a RadSlider and RadToolTip control like this:

<telerik:RadListView ID="myListView" runat="server" >
        <LayoutTemplate>
            <asp:Panel ID="RadListViewLayoutPanel" runat="server">
                <div class="container">
                    <asp:PlaceHolder ID="ItemPlaceHolder" runat="server"></asp:PlaceHolder>
                </div>
                <div class="slider">
                    <telerik:RadSlider ID="mySlider" runat="server" >
                    </telerik:RadSlider>
                    <telerik:RadToolTip ID="myToolTip" runat="server" Position="TopLeft" >
                    </telerik:RadToolTip>
                </div>
            </asp:Panel>
        </LayoutTemplate>
...
...

How do I find the ToolTip and Slider control in my JS? Note that I can't simple put the JS in the LayoutTemplate since this is a user control that lives on a page and for some reason the JS wouldn't get executed if I put in directly in the LayoutTemplate.

I was able to get the RadListView control by doing $find("<%=myUserControlThatHoldsTheListView.FindControl("myListView").ClientID %>") but how do I get the controls inside?

Thanks.

1 Answer, 1 is accepted

Sort by
0
not
Top achievements
Rank 1
answered on 04 Jan 2011, 12:40 AM
sorry, programmer error. It turned out I'll have to handle the OnClientBeforeShow event to do the set_text first. Problem solved.
Tags
Ajax
Asked by
not
Top achievements
Rank 1
Answers by
not
Top achievements
Rank 1
Share this question
or