.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?
<telerik:GridTemplateColumn DataField="DocDesc" FilterControlAltText="Filter column column" HeaderText="Document Name" UniqueName="DocList"> <EditItemTemplate> <asp:TextBox ID="DocDescTextBox" enabled = "false" runat="server" Text='<%# Bind("DocDesc") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="DocDescLabel" runat="server" Text='<%# Eval("DocDesc") %>'></asp:Label> </ItemTemplate> <InsertItemTemplate> <telerik:RadComboBox ID="RadDocList" Enabled="true" runat="server" DataSourceID="sqlGetDocList" DataTextField="DocDesc" DataValueField="DocNum"> </telerik:RadComboBox> </InsertItemTemplate> </telerik:GridTemplateColumn>
<AlertTemplate>
<div class="windowpopup radalert">
<div class="dialogtext" style="text-align: center;">
{1}
</div>
<div>
<a onclick="$find('{0}').close(); window.location.href='home.aspx';" class="radwindowbutton"
href="javascript:void(0);">
<span class="outerspan">
<span class="innerspan" style="text-align: center;">##LOC[OK]##</span>
</span>
</a>
</div>
</div>
</AlertTemplate>
<Windows>
<telerik:RadWindow ID="wdwEmail" runat="server" EnableEmbeddedSkins="False" Skin="DMID"
Title="" Height="320px" Left="150px" Modal="true" ReloadOnShow="true" Width="300px"
ShowContentDuringLoad="false">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
Code Behind:
protected void btnSubmit_Click(object sender, EventArgs e)
{
nBus.SendOrderSubmitNotification(uProfile, oProfile, pProfiles, bList);
ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "<script type='text/javascript'>Sys.Application.add_load(function(){radalert('Your Order has been saved');})</script>", false);
{