I am trying to access a radsplitter control via client-side scripting.
The radsplitter i am trying to reference is nested inside of another radsplitter/radpane.
Here is an example of how i access the splitter:
var splitter = $find("<%= innerSplitter.ClientID %>");
<
telerik:RadSplitter ID="outterSplitter" runat="server" Orientation="horizontal">
<telerik:RadPane ID="pane1" runat="server" >
<telerik:RadSplitter ID="innerSplitter" runat="server" VisibleDuringInit="False">
<telerik:RadPane ID="pane2" runat="server" Scrolling="none" OnClientResized="afterResize">
left pane of the splitter
</telerik:RadPane>
right pane of the splitter
<telerik:RadSplitBar ID="splitbar1" runat="server" />
<telerik:RadPane ID="pane3" runat="server" OnClientResized="afterResize2"></telerik:RadPane>
</telerik:RadSplitter>
</telerik:RadPane>
<telerik:RadSplitBar ID="splitbar2" runat="server" CollapseMode="None"/>
<telerik:RadPane ID="pane4" runat="server" height="20px" Locked ="true" >
bottom pane of the splitter
</telerik:RadPane>
</telerik:RadSplitter>
Everything is named appropriately, etc.
The value of splitter is always null.
<
telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="200px" width="300px"> <asp:Label ID="Connections" runat="server" Text="0"></asp:Label> </telerik:RadAjaxPanel>
Code behind ( C# code ):
Connections.text = "100";
I can't get this to work unless I do a postback which is obviously not what I want.
I know this will probably work if I have a timer event and do it in that, but don't want to use one.
Any help is much appreciated.
Regards,
Steve
---------------------------
Microsoft Visual Studio
---------------------------
There was an error loading types from assembly 'D:\Program Files\Telerik\RadControls for ASPNET AJAX Q2 2008\Bin\Telerik.Web.UI.dll'
'Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.'
For more information, click the help button.
---------------------------
OK Help
---------------------------
| <telerik:RadGrid ID="radSurveyResults" runat="server" GridLines="Both" Skin="WebBlue" AutoGenerateColumns="false" AllowPaging="true" PageSize="20" AllowFilteringByColumn="false" AllowSorting="true" > |
| <MasterTableView> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="10px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn HeaderStyle-Wrap="false" DataField="jobcode" HeaderText="Job Code" ItemStyle-Wrap="false"> </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <FilterMenu EnableTheming="True"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </FilterMenu> |
| </telerik:RadGrid> |