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> <telerik:RadGrid ID="RadGrid1" DataSourceID="DSForms" runat="server" ShowStatusBar="true" AutoGenerateColumns="False" PageSize="30" AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" OnDeleteCommand="RadGrid1_DeleteCommand"> <PagerStyle Mode="NumericPages"></PagerStyle> <MasterTableView DataSourceID="DSForms" DataKeyNames="Form_ID" AllowMultiColumnSorting="True" Width="100%" CommandItemDisplay="Top" CommandItemSettings-RefreshImageUrl="~/images/refresh.gif" CommandItemSettings-RefreshText="Refresh" CommandItemSettings-AddNewRecordText="Add Form" Name="Forms"> <DetailTables> <telerik:GridTableView DataKeyNames="FormSection_ID, Form_ID" DataSourceID="DSFormSections" Width="100%" runat="server" CommandItemDisplay="Top" Name="FormItems"> <CommandItemTemplate> <asp:HyperLink ID="AddSectionLink" runat="server" Text="Add Section"></asp:HyperLink> </CommandItemTemplate> <ParentTableRelation> <telerik:GridRelationFields DetailKeyField="Form_ID" MasterKeyField="Form_ID" /> </ParentTableRelation> <DetailTables> <telerik:GridTableView DataKeyNames="FormSection_ID,FormItem_ID" DataSourceID="DSFormItems" CommandItemDisplay="Top" Width="100%" runat="server"> <ParentTableRelation> <telerik:GridRelationFields DetailKeyField="FormSection_ID" MasterKeyField="FormSection_ID" /> </ParentTableRelation> <AlternatingItemStyle BackColor="LightCyan" /> <CommandItemTemplate> <asp:HyperLink ID="AddFormItemLink" runat="server" Text="Add Item"></asp:HyperLink> </CommandItemTemplate> <Columns> <telerik:GridBoundColumn SortExpression="FormItem_Question" HeaderText="Question" HeaderButtonType="TextButton" DataField="FormItem_Question" UniqueName="FormItem_Question"> </telerik:GridBoundColumn> <telerik:GridBoundColumn SortExpression="FormItem_QuestionValues" HeaderText="FormItem_QuestionValues" HeaderButtonType="TextButton" DataField="FormItem_QuestionValues" Visible="false" UniqueName="FormItem_QuestionValues"> </telerik:GridBoundColumn> <telerik:GridBoundColumn SortExpression="FormItem_Type" HeaderText="FormItem_Type" HeaderButtonType="TextButton" DataField="FormItem_Type" Visible="false" UniqueName="FormItem_Type"> </telerik:GridBoundColumn> <telerik:GridBoundColumn SortExpression="FormItem_Grid" HeaderText="FormItem_Grid" HeaderButtonType="TextButton" DataField="FormItem_Grid" Visible="false" UniqueName="FormItem_Grid"> </telerik:GridBoundColumn> <telerik:GridButtonColumn ConfirmText="Delete this Form Item?" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn2"> <HeaderStyle Width="20px" /> <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> </telerik:GridButtonColumn> <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" ItemStyle-Width="20px"> <ItemTemplate> <asp:HyperLink ID="EditItemLink" runat="server"><img src="/images/edit.gif" alt="Edit" border="0" /></asp:HyperLink> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> <SortExpressions> <telerik:GridSortExpression FieldName="FormItem_Sort" SortOrder="Descending"></telerik:GridSortExpression> </SortExpressions> </telerik:GridTableView> </DetailTables> <AlternatingItemStyle BackColor="AliceBlue" /> <Columns> <telerik:GridBoundColumn SortExpression="FormSection_ID" HeaderText="ID" HeaderButtonType="TextButton" DataField="FormSection_ID" UniqueName="FormSection_ID" ReadOnly="true" Visible="false"> </telerik:GridBoundColumn> <telerik:GridBoundColumn SortExpression="FormSection_Title" ReadOnly="true" HeaderText="Section" Visible="true" HeaderButtonType="TextButton" DataField="FormSection_Title" UniqueName="FormSection_Title"> </telerik:GridBoundColumn> <telerik:GridButtonColumn ConfirmText="Delete this Form Section Item?" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn2"> <HeaderStyle Width="20px" /> <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> </telerik:GridButtonColumn> <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" ItemStyle-Width="20px"> <ItemTemplate> <asp:HyperLink ID="EditSectionLink" runat="server"><img src="/images/edit.gif" alt="Edit" border="0" /></asp:HyperLink> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> <SortExpressions> <telerik:GridSortExpression FieldName="FormSection_Sort"></telerik:GridSortExpression> </SortExpressions> <EditFormSettings EditFormType="Template"> <FormTemplate> <table id="tblitems" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" style="border-collapse: collapse; background: white;"> <tr> <td> <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module"> <tr><td colspan="2"></td></tr> </table> </td> </tr> <tr> <td align="right"> <asp:Button ID="btnUpdate" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>' runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'> </asp:Button> <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> </td> </tr> </table> </FormTemplate> </EditFormSettings> </telerik:GridTableView> </DetailTables> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"><HeaderStyle Width="20px" /></telerik:GridEditCommandColumn> <telerik:GridBoundColumn SortExpression="Form_ID" HeaderText="Form_ID" ItemStyle-Width="30px" HeaderButtonType="TextButton" DataField="Form_ID" UniqueName="Form_ID" Visible="false" ReadOnly="true" /> <telerik:GridBoundColumn SortExpression="Form_Title" HeaderText="Form" ItemStyle-Width="300px" HeaderButtonType="TextButton" DataField="Form_Title" UniqueName="Form_Title" /> <telerik:GridButtonColumn ConfirmText="Delete this Form?" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"><HeaderStyle Width="20px" /><ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /></telerik:GridButtonColumn> </Columns> <SortExpressions> <telerik:GridSortExpression FieldName="Form_Title" SortOrder="Descending"></telerik:GridSortExpression> </SortExpressions> <EditFormSettings EditFormType="Template"> <FormTemplate> <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" style="border-collapse: collapse; background: white;"> <tr> <td> <table id="Table3" cellspacing="1" cellpadding="1" border="0"> <tr><td colspan="2"></td></tr> <tr> <td>Form Name: </td> <td><asp:TextBox ID="TextBox7" Width="350px" runat="server" Text='<%# Bind( "Form_Title" ) %>'></asp:TextBox></td> </tr> <tr><td colspan="2"></td></tr> </table> </td> </tr> <tr> <td align="right"> <asp:Button ID="btnUpdate" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>' runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'> </asp:Button> <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> </td> </tr> </table> </FormTemplate> </EditFormSettings> </MasterTableView> </telerik:RadGrid>Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated If e.Item.OwnerTableView.DataSourceID = "DSFormSections" Then If TypeOf e.Item Is GridDataItem Then Dim EditSectionLink As HyperLink = DirectCast(e.Item.FindControl("EditSectionLink"), HyperLink) EditSectionLink.Attributes("href") = "#" EditSectionLink.Attributes("onclick") = [String].Format("return ShowEditForm('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("FormSection_ID"), e.Item.ItemIndex) End If End If If e.Item.OwnerTableView.DataSourceID = "DSFormItems" Then If TypeOf e.Item Is GridDataItem Then Dim EditItemLink As HyperLink = DirectCast(e.Item.FindControl("EditItemLink"), HyperLink) EditItemLink.Attributes("href") = "#" EditItemLink.Attributes("onclick") = [String].Format("return ShowEditItemForm('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("FormItem_ID"), e.Item.ItemIndex) End If End If If e.Item.OwnerTableView.DataSourceID = "DSFormSections" Then If TypeOf e.Item Is GridCommandItem Then Dim AddSectionLink As HyperLink = DirectCast(e.Item.FindControl("AddSectionLink"), HyperLink) AddSectionLink.Attributes("href") = "#" AddSectionLink.Attributes("onclick") = "return ShowInsertForm();" End If End If If e.Item.OwnerTableView.DataSourceID = "DSFormItems" Then If TypeOf e.Item Is GridCommandItem Then Dim AddFormItemLink As HyperLink = DirectCast(e.Item.FindControl("AddFormItemLink"), HyperLink) AddFormItemLink.Attributes("href") = "#" AddFormItemLink.Attributes("onclick") = "return ShowInsertItemForm();" End If End IfEnd SubI'm using version 2011.1.329.35 ,
the RadAsyncUpload is working fine in other browsers (IE,Firefox,etc..),
but it not working in Opera 11.10
strange thing, I' have tested your demo site, that's fine. no any problem.
but in my project, is always show the error tip (red image mark, not green).
am I missing something?
does any one can tell me what I need change?
thanks .