
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" AllowedFileExtensions="png" Width="100%" MaxFileSize="524288" OnFileUploaded="RadAsyncUpload1_FileUploaded" OnClientFileUploaded="fileUploaded" /><rad:RadGrid Skin="Office2007" runat="server" OnItemDataBound="gridAdd_ItemDataBound" AllowAutomaticDeletes="True" OnItemCommand="RadGrid1_ItemCommand" AllowAutomaticInserts="True" OnInsertCommand="gridAdd_InsertCommand" NoMasterRecordsText="No Files selected for this PO" OnDeleteCommand="gridAdd_ItemDeleted" AutoGenerateColumns="false" id="gridAdd" AllowPaging="true" PageSize="5" onneeddatasource="gridAdd_NeedDataSource"> <MasterTableView NoMasterRecordsText="No Files selected for this PO" EditMode="InPlace" AllowAutomaticUpdates="false" AllowAutomaticInserts="true" CommandItemDisplay="Bottom" DataKeyNames="ID,FileID, GVMXID" > <Columns> <rad:GridEditCommandColumn ButtonType="LinkButton" UniqueName="EditCommandColumn2"> <HeaderStyle Width="20px" /> </rad:GridEditCommandColumn> <rad:GridTemplateColumn HeaderText="File" > <ItemTemplate> <rad:RadComboBox Visible="false" CheckBoxes="true" OnDataBinding="comboFiles_DataBind" DataSourceID="odsFiles" Height="200" Skin="Vista" ID="comboFiles" Width="200" DataTextField="OriginalName" DataValueField="ID" runat="server"> </rad:RadComboBox> <asp:Label ID="lblFileName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.FileName") %>'></asp:Label> </ItemTemplate> <ItemStyle Wrap="true" Width="100" HorizontalAlign="Center" /> <HeaderStyle ForeColor="#4e6ea4" HorizontalAlign="Center" Font-Bold="true" /> </rad:GridTemplateColumn> <rad:GridTemplateColumn HeaderText="TM" > <ItemTemplate> <rad:RadComboBox Visible="false" AppendDataBoundItems="true" Height="200" Skin="Vista" ID="comboTMs" DataSourceID="odsTMs" DataTextField="TMName" DataValueField="ID" runat="server"> </rad:RadComboBox> <asp:Label ID="lblTMName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.TMName") %>'></asp:Label> </ItemTemplate> <ItemStyle Wrap="true" Width="100" HorizontalAlign="left" /> <HeaderStyle ForeColor="#4e6ea4" HorizontalAlign="Center" Font-Bold="true" /> </rad:GridTemplateColumn> <rad:GridTemplateColumn HeaderText="Tag Settings" > <ItemTemplate> <table> <tr><td style="border:0px; min-width:150px;"> <asp:CheckBox Visible="false" onclick="toggle(this)" runat="server" Checked="true" ID="chkDefault" Text="Use Default Tag Settings" /> </td></tr> <tr><td style="border:0px;"> <asp:FileUpload Visible="false" runat="server" ClientIDMode="Static" ID="fileUpload" /> </td></tr> </table> <asp:Label ID="lblTagSettings" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.TagSettings") %>'></asp:Label> </ItemTemplate> <ItemStyle Wrap="true" Width="100" HorizontalAlign="Center" /> <HeaderStyle ForeColor="#4e6ea4" HorizontalAlign="Center" Font-Bold="true" /> </rad:GridTemplateColumn> <rad:GridButtonColumn ConfirmDialogType="RadWindow" ConfirmText="Are you sure you want to delete this file from PO?" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteDiscount"> <HeaderStyle Width="20px" /> </rad:GridButtonColumn> </Columns> <CommandItemSettings ShowRefreshButton="false" AddNewRecordText="Add New Files" /> </MasterTableView> </rad:RadGrid>protected void gridAdd_NeedDataSource(object sender, GridNeedDataSourceEventArgs e){ gridAdd.DataSource = (List<POFilesInMemory>)Session["POFiles"]; }public class POFilesInMemory{ public int FileID { get; set; } public string FileName { get; set; } public int TMID { get; set; } public string TMName { get; set; } public string TagSettingsName { get; set; }}
<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