<tr>
<td>
Client
</td>
<td>
<telerik:RadComboBox ID="cboClient" Runat="server" AllowCustomText="true"
DataSourceID="SqlDataSource1" DataTextField="Account" DataValueField="ClientID"
Skin="Outlook"
SelectedValue='<%# DataBinder.Eval( Container, "DataItem.ClientID") %>'
Width="320px" EnableVirtualScrolling="True"
Filter="Contains" ItemsPerRequest="20" ShowMoreResultsBox="True">
<itemtemplate>
<table style="width:300px">
<tr>
<td style="width:100px; text-align: left;">
<%
#DataBinder.Eval(Container.DataItem, "Account")%>
</td>
<td style="width:200px; text-align: left;">
<%
#DataBinder.Eval(Container.DataItem, "Disp")%>
</td>
</tr>
protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
IEnumerable<Client> clients = BizLayer.Instance().ClientsGetAllUnfiltered();
var AllClients = from c in clients where c.ClientName.Contains(e.Text) select c;
int itemOffset = e.NumberOfItems;
int endOffset = Math.Min(itemOffset + ItemsPerRequest, AllClients.Count());
e.EndOfItems = endOffset == AllClients.Count();
var filter = AllClients.Skip(itemOffset).Take(ItemsPerRequest);
foreach (Domain.Client c in filter)
{
RadComboBox1.Items.Add(new RadComboBoxItem(c.ClientName.ToString(), c.ClientId.ToString()));
}
e.Message = GetStatusMessage(endOffset, AllClients.Count());
}
Thank you.I have a Radgrid with button column when I click the button the first time the Radwindow does not open, but it opens on the second click on the same button. I have tried every possible solution in RadAjax but still facing the same problem. I am using Masterpage in this project.
Following are my code in Javascript,Client side and Server side.
//Javascript Code
function ShowUPExc(partnerid) { window.radopen("Update.aspx?PartnerID=" + partnerid , "rwUpdateExc"); return false; }//Client Side Code <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="rgExc"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="rgExc" /> <telerik:AjaxUpdatedControl ControlID="btnUpdate" /> <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadGrid ID="rgExc" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" DataSourceID="dsExclusion" GridLines="None" Skin="Outlook" Width="100%" ShowGroupPanel="False" AutoGenerateColumns="False" PageSize="2" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" ShowHeader="true" OnItemDataBound="rgExc_ItemDataBound" OnItemCommand="rgExc_ItemCommand"> <HeaderContextMenu> <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> </HeaderContextMenu> <FilterMenu> <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> </FilterMenu> <GroupingSettings ShowUnGroupButton="true" CaseSensitive="false" /> <MasterTableView DataSourceID="dsExclusion" DataKeyNames="ExcType, StartDate, EndDate" PageSize="2" Width="100%" GroupLoadMode="Client" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true" AllowFilteringByColumn="false" AllowMultiColumnSorting="false" EnableHeaderContextMenu="false"> <Columns> <telerik:GridBoundColumn DataField="ExcType" HeaderText="Exc Type" SortExpression="ExcType" UniqueName="ExcType" ReadOnly="True" CurrentFilterFunction="EqualTo" AutoPostBackOnFilter="true" ShowFilterIcon="false" FilterDelay="4000" Groupable="false" FilterControlWidth="120px" HeaderStyle-Width="140px"> </telerik:GridBoundColumn> <telerik:GridDateTimeColumn DataField="StartDate" DataType="System.DateTime" HeaderText="Start Date" SortExpression="StartDate" UniqueName="StartDate" AutoPostBackOnFilter="true" PickerType="DateTimePicker" FilterControlWidth="150px" ItemStyle-Wrap="false" HeaderStyle-Width="170px"> </telerik:GridDateTimeColumn> <telerik:GridDateTimeColumn DataField="EndDate" DataType="System.DateTime" HeaderText="End Date" SortExpression="EndDate" UniqueName="EndDate" AutoPostBackOnFilter="true" PickerType="DateTimePicker" FilterControlWidth="150px" ItemStyle-Wrap="false" HeaderStyle-Width="170px"> </telerik:GridDateTimeColumn> <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" AllowFiltering="false" HeaderStyle-Width="120px"> <ItemTemplate> <asp:Button ID="btnUpdate" runat="server" Text="Update" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex")%>' CommandName="UpdateExc" /> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> <ClientSettings AllowColumnsReorder="False" AllowDragToGroup="False" ReorderColumnsOnClient="False" EnableRowHoverStyle="true" EnablePostBackOnRowClick="true" AllowKeyboardNavigation="true"> <Resizing AllowColumnResize="False" EnableRealTimeResize="False" ResizeGridOnColumnResize="False" AllowResizeToFit="true" /> <Selecting AllowRowSelect="True" /> <Scrolling AllowScroll="False" UseStaticHeaders="False" SaveScrollPosition="False"> </Scrolling> </ClientSettings> <PagerStyle Mode="NextPrevNumericAndAdvanced" /> </telerik:RadGrid> <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" Skin="Office2007"> <Windows> <telerik:RadWindow ID="rwUpdateExc" runat="server" ShowContentDuringLoad="false" ReloadOnShow="true" Title="Update Exclusion Window" Width="750px" Height="350px" VisibleStatusbar="false" Modal="true" ToolTip="Update Exclusion"> </telerik:RadWindow> </Windows> </telerik:RadWindowManager> //Server Side Code protected void rgExclusion_ItemCommand(object source, GridCommandEventArgs e) { if (e.CommandName == "UpdateExc") { string strEType; strEType = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ExcType"].ToString(); if (strEType == "Partner") { Button btnUExc = (Button)e.Item.FindControl("btnUpdate"); btnUExc.Attributes["href"] = "#"; btnUExc.Attributes["onclick"] = String.Format("return ShowUPExc('{0}');", Session["PGEPartnerID"].ToString()); } } } <Content>
<p>Please enter your text</p>
</Content>
However when the page is loaded the <p> tags are removed just showing 'Please enter your text'.

<telerik:RadWindow ID="rw_EditObjectRecordScreen" runat="server" Modal="true" Behaviors="Close, Move, Resize " Width="900px" Height="500px" Visible="true" OnClientClose="CloseEditObjectRecordWindowODR" DestroyOnClose="true" > <ContentTemplate> <uc1:EditObjectRecord ID="EditObjectRecord1" runat="server" /> </ContentTemplate></telerik:RadWindow>function GetContentRadWindow() { //using ContentTemplate instead of Navigate URL //for RadWindow so we need to get RadWindow by name var oWnd = GetRadWindowManager().getWindowByName("RadContentWindow"); return oWnd; }protected void CompanyComboBox_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) { var combo = (RadComboBox) sender; if (combo == null) return; var item = combo.NamingContainer is GridEditFormInsertItem ? (GridEditFormInsertItem)combo.NamingContainer : (GridEditFormItem)combo.NamingContainer; var userNumberBox = (RadNumericTextBox)item.FindControl("UserNumber"); string userNumber = userNumberBox.Text; string companyId = combo.SelectedValue; if (string.IsNullOrEmpty(userNumber) || string.IsNullOrEmpty(companyId)) return; var firstNameBox = (RadTextBox)item.FindControl("FirstName"); var lastNameBox = (RadTextBox)item.FindControl("lastName"); User user = GetUser(userNumber, companyId); if (user != null) { firstNameBox.Text = user.FirstName; lastNameBox.Text = user.LastName; } else { firstNameBox.Text = string.Empty; lastNameBox.Text = string.Empty; } }<EditFormSettings EditFormType="Template"> <EditColumn UniqueName="EditCommandColumn1" ></EditColumn> <FormTemplate> <div id="column1" style="float:left;padding:10px;"> <div style="padding-bottom:7px;"> <table> <tr><td><asp:Label ID="NumberLabel" runat="server" Text="Brukernr.:"></asp:Label></td><td><telerik:RadNumericTextBox runat="server" OnTextChanged="UserNumberTextBox_TextChanged" AutoPostBack="true" ID="UserNumber" Width="107" DataType="System.Int32"><NumberFormat DecimalDigits="0" GroupSeparator=""/></telerik:RadNumericTextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1" Text="*" ForeColor="Red" ControlToValidate="UserNumber" runat="server"/> <asp:Label ID="Label21" runat="server" Text="Aktiv"></asp:Label> <telerik:RadComboBox runat="server" ID="RadComboBoxActive" Width="45px" DataValueField="IsActive" AutoPostBack="true"> <Items> <telerik:RadComboBoxItem Value="1" Text="Ja"/> <telerik:RadComboBoxItem Value="0" Text="Nei"/> </Items> </telerik:RadComboBox></td></tr> <tr><td><asp:Label ID="CompanyLabel" runat="server" Text="Selskap/Avd.:"></asp:Label></td>
<td colspan="2"><telerik:RadComboBox ID="Company" runat="server" OnSelectedIndexChanged="CompanyComboBox_SelectedIndexChanged" CausesValidation="true" AutoPostBack="true" DataSourceID="CompanyDataSource" DataTextField="Name" DataValueField="CompanyId" EmptyMessage="Velg et element" AllowCustomText="true"></telerik:RadComboBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" Text="*" ForeColor="Red" ControlToValidate="Company" runat="server"/></td></tr> </table> </div> </div> <div id="column1b" style="float:left;padding:10px;"> <div style="padding-bottom:7px;"> <table> <tr><td><asp:Label ID="FirstNameLabel" runat="server" Text="Fornavn:"></asp:Label></td><td><telerik:RadTextBox ID="FirstName" runat="server" Width="150" MaxLength="20"></telerik:RadTextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2" Text="*" ForeColor="Red" ControlToValidate="FirstName" runat="server"/></td></tr> <tr><td><asp:Label ID="LastNameLabel" runat="server" Text="Etternavn:"></asp:Label></td><td><telerik:RadTextBox ID="LastName" runat="server" Width="150" MaxLength="20"></telerik:RadTextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator8" Text="*" ForeColor="Red" ControlToValidate="LastName" runat="server"/></td></tr> </table> </div> </div>