or
Page1.aspx: <script language="javascript"> function callShow() { if (window["<%=RadGrid1.ClientID %>"].MasterTableView.SelectedRows.length > 0) { var selectedRows = window["<%=RadGrid1.ClientID %>"].MasterTableView.SelectedRows[0]; window["<%= RadGrid1.ClientID %>"].AjaxRequest("<%= RadGrid1.UniqueID %>", "No|" + selectedRows.KeyValues["No"]); } } </script> <html> <asp:UpdatePanel ID="updatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:TextBox ID="txtNo" runat="server"/> <asp:TextBox ID="txtName" runat="server"/> </ContentTemplate> </asp:UpdatePanel> .. .. <radG:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" GridLines="None" Skin="Office2007" AllowSorting="false" EnableAJAX="true" AutoGenerateColumns="false"> <MasterTableView AutoGenerateColumns="False" DataKeyNames="No"> <Columns> <radG:GridBoundColumn DataField="No" UniqueName="No" HeaderText="No"> </radG:GridBoundColumn> <radG:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="Name"> </radG:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings EnableClientKeyValues="true"> <Selecting AllowRowSelect="true" /> <ClientEvents OnRowSelected="callShow" /> </ClientSettings> </radG:RadGrid> </html> Page1.aspx.cs: protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument) { if (eventArgument != null) { if (eventArgument.StartsWith("No")) { string[] arr1 = eventArgument.Split(new char[] { '|' }); txtNo.Text = arr1[1].ToString(); } } }'populate the dropdown and pre select checkboxesIf Not IsDBNull(u_ds.Tables(0).Rows(0)("LinkedUsers")) Then Dim arrLinkedUsers As Array = Split(u_ds.Tables(0).Rows(0)("LinkedUsers"), ",") For Each Usr In arrLinkedUsers ddlClinic.SelectedValue = Usr Dim x As RadComboBoxItem = DirectCast(ddlClinic.SelectedItem, RadComboBoxItem) If Not x Is Nothing Then x.Checked = True End If Next UsrEnd If<telerik:RadListView ID="rlvJobsListPage" runat="server" ItemPlaceholderID="phJobsList" DataSourceId="objJobList" OnItemDataBound="rlvJobsListPage_ItemDataBound" AllowCustomPaging="true" AllowPaging="true" PageSize="20" AllowSorting="True"> <LayoutTemplate> <div id="searchList"> <div id="phJobsList" runat="server"></div> </div> </LayoutTemplate> <EmptyDataTemplate> No records found </EmptyDataTemplate> <ItemTemplate>First item gets this default - not my dynamic template like the rest of them do</ItemTemplate> </telerik:RadListView>protected void rlvJobsListPage_ItemDataBound(object sender, Telerik.Web.UI.RadListViewItemEventArgs e){ // Set each bound item to status "Loaded" if (e.Item is RadListViewDataItem) { RadListViewDataItem thisDataItem = (RadListViewDataItem)e.Item; Job thisListing = (Job)thisDataItem.DataItem; //Formulate the Template name and Render it! rlvJobsListPage.ItemTemplate = Templating.Render_ITemplate(Globals.SectionIds.Jobs, thisListing.ListingTemplate, TemplateType.Summary, this); }}
<div style="left: 0px; position:absolute; top: 60px; height: 230px; width: 320px;"> <telerik:RadUpload ID="Upload" runat="server" MaxFileInputsCount="3" EnableEmbeddedSkins="true" ControlObjectsVisibility="RemoveButtons, AddButton" SkinID="Office2010Blue"> </telerik:RadUpload></div>