.Main { height:80%; width: 80%; } .Main { height:80%; width: 20%; } <td class="Main"> <telerik:RadDockZone ID="Main" Runat="server" height="100%" width="100%"> </telerik:RadDockZone> </td> <td class="Side"> <telerik:RadDockZone ID="Side" Runat="server" Height="450px" Width="100%"> <telerik:RadDock ID="RadDock1" Runat="server" Resizable="True" Text="MAP" Title="xy" Width="300px" Collapsed="True"> <ContentTemplate> </ContentTemplate> </telerik:RadDock> <telerik:RadDock ID="RadDock5" Runat="server" Resizable="True" Text="Blog" Collapsed="True" Title="x" Width="300px"> <ContentTemplate> </ContentTemplate> </telerik:RadDock> </telerik:RadDockZone> </td>Hello,
I have a JS fuction that uses the $find function to try and get the selectedItemValue from a radCombobox, but the call returns nothing. Below is the beginning of the function. If I look at the combo var afer the '$find' call it is null
JS Function:
function getCounterFormat() {
debugger
var combo = $find("<%= DisplayCounter1.cboFormat.ClientID %>");
var formatString;
try{
formatString = combo.get_value;
( remainder removed for brevity )
When rendered the line looks like:
var combo = $find("ctl00_contentRight_DisplayCounter1_cboFormat")
in the rendered source this is the combobox id:
<div class="ComboBox_Default" id="ctl00_contentRight_DisplayCounter1_cboFormat"
the getCounterFormat() function is called on OnClientSelectedIndexChanged
Just to test I created a different function:
function setCounterFormat(obj) {
debugger
var formatString = obj.Value;
var newString = getCounterFormat();
This one does return the selecteditem value on the obj.Value call but the getCounterFormat() still returns nothing.
Can you tell me what I am doing wrong?