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

FormView SlidingPane

1 Answer 47 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Adrian Segovia
Top achievements
Rank 1
Adrian Segovia asked on 11 Apr 2011, 07:33 PM
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

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

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

<formView id="FVInitialView"....>
 <itemTemplate....>
   ....
   <telerik:RadSlidingPane ID="Radslidingpane4" Title="Page 1" runat="server" Height="550px" OnClientExpanded="OnClientExpanded">

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 14 Apr 2011, 02:48 PM
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,
Dobromir
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.

Tags
PanelBar
Asked by
Adrian Segovia
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or