FormView SlidingPane

2 posts, 0 answers
  1. Adrian Segovia
    Adrian Segovia avatar
    9 posts
    Member since:
    Dec 2009

    Posted 11 Apr 2011 Link to this post

    Hello Telerik,

    I have a question regarding how to access controls inside the slidingpane.

    I have a FormView with a slidingpane in it (with all the structure. Slidingzone and all of that)
    I have a radiobuttonlist I would like to access in order to make one of its items hidden. Since I don't see server side events (correct me if I 'm wrong) I'm trying to use a script to find all the radiobuttons and make the first item hidden. The question is how do I get the elements in order to reach my radiobuttons? can you direct me to the right direction? 

    Thanks in advance

    This is what I've tried without success cause it falls into a loop
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                        <telerik:AjaxUpdatedControl ControlID="FVInitialView" />

    function OnClientExpanded(sender, args) {
    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();

    <formView id="FVInitialView"....>
       <telerik:RadSlidingPane ID="Radslidingpane4" Title="Page 1" runat="server" Height="550px" OnClientExpanded="OnClientExpanded">
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 14 Apr 2011 Link to this post

    Hi Adrian,

    I am not quite sure I understand the exact scenario. By design, the content of RadSlidingPane is rendered on the page when the pane loads and can be accessed using the standard ASP.NET approaches - using $get() / $find() methods client-side, or directly accessing the server controls server-side.

    If the RadSplitter is placed inside asp:FormView control you need to use FindControl method to access the controls inside it since the FormView control is a naming container, e.g.:

    var radioButton1 = $get('<%= FormView1.FindControl("RadioButtonList1").Items[0].ClientID %>');

    If this is not the case, could you please explain in more details what the specific scenario and what exactly you are trying to achieve?

    Best wishes,
    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.

Back to Top