Find Control

2 posts, 0 answers
  1. vivek
    vivek avatar
    5 posts
    Member since:
    Jul 2009

    Posted 29 Dec 2011 Link to this post

    Hi ,

    I am using a spliter control in my page and thr are two rad panel

    spliter  ---- RadPane1 -- radListview----item1,item2,item3  all are template field and in side Item there are some link and div
              -----RadPane2  -- using contenturl   i am loding a page here

    how can i access in content page of radpane2 controls of tadpane1 like item exist in radlistview on client and server side


    <telerik:RadSplitter  ID="RadSplitter1" runat="server"
                EnableEmbeddedBaseStylesheet="false" BorderStyle="None" EnableEmbeddedScripts="true"
                LiveResize="True" Width="940px">
                <telerik:RadPane ID="RadPane1" runat="server" CssClass="myStepContainer"
                    <!-- Generate the left panel for the wizard steps-->
                    <telerik:RadListView ID="WizardStepList" runat="server" ItemPlaceholderID="WizardStepsContainer"
                        DataKeyNames="Id" DataSourceID="WizardStepDataSource">
                            <%--<fieldset> --%>
                            <asp:Panel ID="WizardStepsContainer" runat="server" />
                            <div class='<%#Eval("StatusCssClass") %>' id="workflowItem" runat="server">
                                <p class="toggler">
                                    <asp:LinkButton ID="NStep" index='<%# Index++ %>' CssClass='<%#Eval("StepCssClass") %>'
                                        Text='<%#Eval("StepDisplayText") %>' runat="server" OnClick="NavigateStep" OnClientClick='<%# "return navigate(\"" + (Index) + "\");" %>'></asp:LinkButton></p>
                <telerik:RadPane ID="contentPane" EnableEmbeddedScripts="true" runat="server" ContentUrl="about:blank"
                    CssClass="container" Width="790px" Height="600px">
                    <div id="Div1" runat="server" class="workflowButtonsHoriz">
                        <asp:Button CssClass="prevButton" ID="Previous" title="Previous" runat="server" OnClick="Previous_Click" />
                        <asp:Button CssClass="nextButton" ID="Next" title="Next" runat="server" OnClick="Next_Click" />
                        <span style="display: none">
                            <asp:Button ID="refresh" runat="server" OnClick="Refresh" /></span>
                    <div class="clearBoth">
  2. Petur Subev
    Petur Subev avatar
    1882 posts

    Posted 04 Jan 2012 Link to this post

    Hi Vivek,

    You had posted this is the ASP.NET MVC forum and your question is related to the ASP.NET Ajax forum. You can ask for help on the official Splitter section. For your convenience we have already changed this, yet I ask that in the future you post in the correct section as this allows your query to be forwarded to the people that will be able to help you better.

    As for referencing the controls - this can be done via JavaScript only and only if the content page comes from the same domain as the main page. Accessing controls from different pages in the code-behind is usually not possible and is actually not a task related to the RadControls.

    What I can suggest is that you declare a function in the main page and in the content page that will do the needed work, as they can reference the needed controls easily since they will be on the correct frame. Then you can call the needed function from the main page by using the parent keyword and you can call the function from the content page as explained in this KB article.

    Kind regards,
    Petur Subev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Back to Top