<telerik:RadWindowManager ID="Radwindowmanager1" runat="server"> <Windows> <telerik:RadWindow runat="server" ID="winDetail" Width="400px" Height="400px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="True" Behaviors="None" VisibleTitlebar="true" VisibleStatusbar="false"> <ContentTemplate> <h3> Injury Details </h3> <asp:Label runat="server" ID="lblError"></asp:Label> <div class="modalForm"> <ol> <li> <label class="noFloatLabel"> Injury </label> <telerik:RadComboBox ID="ddlName" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlInjuryName_OnSelectedIndexChanged" /> <telerik:RadTextBox runat="server" ID="txtNewName"> </telerik:RadTextBox> </li> <li> <label class="noFloatLabel"> Specific Detail </label> <telerik:RadComboBox ID="ddSpecific" runat="server" /> <telerik:RadTextBox runat="server" ID="txtNewSpecific"> </telerik:RadTextBox> </li> </ol> </div> <br /> <asp:Button runat="server" ID="btnAddDetail" Text="Add" OnClick="btnAddDetail_Click" /> <asp:Button runat="server" ID="btnCancel" Text="Cancel" OnClick="btnCancel_Click" /> <asp:HiddenField runat="server" ID="hdnId" /> </ContentTemplate> </telerik:RadWindow> </Windows></telerik:RadWindowManager><telerik:RadAjaxManager runat="server" ID="aj1"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="ddlName"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ddlSpecific" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="btnAddDetail"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="lblError" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager>protected void btnAddDetail_Click(object sender, EventArgs e) { if ((ddlName.SelectedValue != string.Empty || txtNewName.Text != string.Empty) && (ddlSpecific.SelectedValue != string.Empty || txtNewSpecific.Text != string.Empty)) {//do processing if processing fails show error if not close window
string script = "function f(){Close(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
ScriptManager.RegisterStartupScript(this, this.GetType(), "close", script, true);
} else { lblError.Text = "You must select a name and description"; } }function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well) return oWindow; } function Close() { GetRadWindow().close(); }<telerik:RadTextBox ID="rtbAddress" runat="server" Label="Address:" ToolTip="Search for an address" Width="300px" Columns="200">Hello,
I have a telerik rad grid on the page and when I click on ASP.NET dropdowns, I get an issue in the Telerik resources file on the following line.
Quarter 3 2009 is the controls we are using.
if
((typeof (_97.srcElement)!="undefined")&&(_97.srcElement!=null)){
Thanks
Thomas

Hi,
I wish to disable my radcombobox whilst the page loads, this is within a "usercontrol" and I am using jquery in the main page (which includes this control), and can use it here if that helps?
This returns a null reference for the combobox! I have looked at many threads to no avail, hopefully you can post an example for me.
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="buyersguidefinderUserControl.ascx.cs"
Inherits="usercontrol_seo_buyersguidefinderUserControl" %>
<div class="fl">
<telerik:RadComboBox ID="RadComboBox1" AllowCustomText="true" runat="server" Width="250px"
Height="300px" Filter="Contains" LoadingMessage="Finding Buyers Guide ..." EmptyMessage="Type which guide you would like to read..."
HighlightTemplatedItems="true" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged"
AutoPostBack="true">
</telerik:RadComboBox>
</div>
<div class="guidesearchbtn fl">
<asp:Button ID="Button1" runat="server" Text="Go" OnClick="Button1_Click" /></div>
<script language="javascript" type="text/javascript">
// <!CDATA[
// disable control otherwise it breaks page state
var combo = $find("<%= RadComboBox1.ClientID %>");
combo.Disable();
$(document).ready(function() {
combo.Enable();
});
// ]]>
</script>
Thanks again,
Matt
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default1.aspx.cs" Inherits="_Default1" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <link href="Grid.Office2010Silver.css" rel="stylesheet" type="text/css" /> <link href="Ajax.Office2010Silver.css" rel="stylesheet" type="text/css" /></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> <div> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Visible="true" CssClass="RadAjax_Office2010Silver" MinDisplayTime="2000" Transparency="1"> <asp:Image ID="img" runat="server" ImageUrl="~/loading.gif" /> </telerik:RadAjaxLoadingPanel> <telerik:RadGrid ID="RadGrid1" ShowFooter="false" CssClass="RadGrid_Office2010Silver" AllowMultiRowSelection="false" OnItemCommand="RadGrid1_ItemCommand" AllowPaging="true" AllowSorting="true" PageSize="10" runat="server" OnPageIndexChanged="RadGrid1_PageIndexChanged" EnableAjaxSkinRendering="false" AllowCustomPaging="True" OnPageSizeChanged="RadGrid1_PageSizeChanged" OnNeedDataSource="RadGrid1_NeedDataSource"> <PagerStyle Mode="NextPrevAndNumeric" /> <ClientSettings EnableRowHoverStyle="true"> <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="200" SaveScrollPosition="true" FrozenColumnsCount="3"></Scrolling> <Selecting AllowRowSelect="true" /> </ClientSettings> <MasterTableView DataKeyNames="EmployeeID" AutoGenerateColumns="false"> <Columns> <telerik:GridBoundColumn DataField="EmployeeID" UniqueName="EmployeeID" HeaderText="EmployeeID" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="FirstName" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" UniqueName="FirstName" HeaderText="FirstName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LastName" UniqueName="LastName" HeaderText="LastName" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Address" UniqueName="Address" HeaderText="Address" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> </div> </form></body></html><telerik:radgrid ID="gradeGrid" runat="server" AllowPaging="True" GridLines="None" CellPadding="5" AutoGenerateColumns="false" Width="850px" Skin="Metro" > </telerik:radgrid> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:connection %>"> </asp:SqlDataSource>Dim conn = System.Configuration.ConfigurationManager.ConnectionStrings("connection").ToString 'this sub adds a column to the rad grid Protected Friend Sub addColumn(ByVal dataField As String, ByVal header As String) Dim col As New GridBoundColumn col.DataField = dataField col.HeaderText = header gradeGrid.MasterTableView.Columns.Add(col) End Sub 'addColumn Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If (Not Page.IsPostBack) Then bindGrid() gradeGrid.DataBind() End If 'if its not a post back End Sub 'this sub gets the data for the rad grid Protected Sub bindGrid() Dim reader As SqlDataReader 'add the columns we know about addColumn("lgrade", "Letter Grade") addColumn("ngrade", "Percent Grade") addColumn("Course Code", "sectno") addColumn("Completed", "enddate") Dim itemSql = "SELECT lgrade, ngrade, sectno, enddate, " 'now find all the other ones we need Dim sql = "SELECT columnName, label FROM hstuclsDefinedColumns ORDER BY position" Using myconn As New SqlConnection(conn) myconn.Open() reader = New SqlCommand(sql, myconn).ExecuteReader() If (reader.HasRows) Then While reader.Read() addColumn(reader("columnName"), reader("label")) itemSql &= "[" & reader("columnName") & "]" & ", " End While 'reader.read reader.Close() End If 'if reader.hasrows itemSql &= " 'blah' FROM hstucls WHERE stuid = " & MyFunctions.getStudentId myconn.Close() End Using 'using myconn SqlDataSource1.SelectCommand = itemSql gradeGrid.DataSource = SqlDataSource1 End Sub 'bindGrid Protected Sub gradeGrid_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles gradeGrid.NeedDataSource bindGrid() End Sub