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

[Solved] How $find Editor Nested Under Other Controls

1 Answer 153 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 2
Kevin asked on 13 Aug 2009, 03:05 PM
I'm having trouble on the client side trying to grab a radeditor object so I can test to see if anything has been entered.

I can't just do a $find("RadEditor1.ClientID") because the editor is actually nested within a radsplitter, in a radpane, and in a radajaxpanel within that.  What's the correct way to grab a handle to this puppy?!

Nesting is shown below.  How do I access that RadEditor1?

Thx

    <telerik:RadSplitter id="RadSplitter1" runat="server" height="455" width="960" > 
        <telerik:RadPane id="settingsPane" runat="server" width="200" Scrolling="None">  
            <telerik:RadSplitter id="RadSplitter2" runat="server" orientation="Horizontal" > 
                <telerik:RadPane id="topPane" runat="server" Scrolling="None" Height="300" MinWidth="200" MaxWidth="250">  
...content here...  
                </telerik:RadPane> 
                <telerik:RadSplitBar id="RadSplitbar2" runat="server" CollapseMode="Backward"></telerik:RadSplitBar> 
                <telerik:RadPane id="bottomPane" runat="server" Scrolling="None" MinWidth="200" MaxWidth="250">  
...content here...  
                </telerik:RadPane> 
            </telerik:RadSplitter> 
        </telerik:RadPane> 
        <telerik:RadSplitBar id="RadSplitbar1" runat="server" CollapseMode="Backward" ></telerik:RadSplitBar> 
        <telerik:RadPane id="editorPane" runat="server" scrolling="none" Width="730" MinWidth="460" MaxWidth="730">  
            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="455"   
                HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1" width="960">  
                <telerik:RadEditor ID="RadEditor1" Runat="server" Width="730" Height="455" ToolsFile="~/Misc/Toolbars/Deploy.xml">  
                </telerik:RadEditor> 
            </telerik:RadAjaxPanel> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
 

1 Answer, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 13 Aug 2009, 03:13 PM
Got it.  Had my finds and gets mixed up.  The following worked:

var

 

editor = $find("<%= RadEditor1.ClientID %>");

 


Thx
Tags
Editor
Asked by
Kevin
Top achievements
Rank 2
Answers by
Kevin
Top achievements
Rank 2
Share this question
or