or
<script type="text/javascript">function OnClientUpdated(sender, args) { var newMsgs = sender.get_value(); if (newMsgs != 0) { sender.show(); }} </script><telerik:RadNotification ID="RadNotification1" runat="server" Width="330px" Height="75px" OnClientUpdated="OnClientUpdated" ContentIcon="" TitleIcon="~/App_Themes/MainTheme/images/message_16.png" Title="New Message(s)" LoadContentOn="TimeInterval" UpdateInterval="10000" Animation="Fade" AutoCloseDelay="7000" OffsetX="-10" OffsetY="-35"> <ContentTemplate> <asp:LinkButton ID="lbNotification" runat="server" PostBackUrl="~/Messages.aspx" CssClass="msg"></asp:LinkButton> </ContentTemplate></telerik:RadNotification>Protected Sub RadNotification1_CallbackUpdate(sender As Object, e As Telerik.Web.UI.RadNotificationEventArgs) Handles RadNotification1.CallbackUpdate Dim MsgFrom As String = "" Dim Regarding As String = "" Dim Message As String = "" If CheckForMessages(MsgFrom, Regarding, Message) Then Message = Replace(Message, "<br>", " ") Message = IIf(Len(Message) > 60, Left(Message, 60) & "...", Message) lbNotification.Text = "<b>" & MsgFrom & "</b><br>" & _ Regarding & "<br>" & _ Message RadNotification1.Value = 1 Else RadNotification1.Value = 0 End IfEnd Suba.Button.RadButton,a.rbSkinnedButton.Button:hover, /* 0 3 1 */a.RadButton_Outlook.rbSkinnedButton, /* 0 2 1 */a.RadButton_Outlook.rbVerticalButton, /* 0 2 1 */a.RadButton_Outlook .rbSplitRight, /* 0 2 1 */a.RadButton_Outlook .rbSplitLeft /* 0 2 1 */{ background-image: url('/Common/Images/buttonSprite.png'); background-position: 100% -25px; height: 21px; display: inline-block; padding-right: 4px;}.rbSkinnedButton:hover .rbDecorated, /* 0 3 0 */.RadButton_Outlook.rbVerticalButton .rbDecorated, /* 0 3 0 */.RadButton_Outlook.rbSkinnedButton, /* 0 2 0 */.RadButton_Outlook .rbDecorated, /* 0 2 0 */.RadButton_Outlook.rbVerticalButton, /* 0 2 0 */.RadButton_Outlook .rbSplitRight, /* 0 2 0 */.RadButton_Outlook .rbSplitLeft /* 0 2 0 */ { background-image: url('/Common/Images/buttonSprite.png'); background-position: 0% 0%; padding-right: 2px; height: 21px; margin-right: 0px; box-sizing: border-box; color: white;}<GroupByExpressions> <telerik:GridGroupByExpression> <GroupByFields> <telerik:GridGroupByField FieldName="Category" /> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions>Hello,
I have a
web forms application, which has a page with a Telerik RadGrid. This grid is
bound using the NeedDataSource event and I have changed most of the columns to
CustomFilteringColumns. In one of them I am using a line like this one:
((GridFilteringItem) ((filterControl).Parent)).FireCommandEvent("Filter", new Pair("Custom", "Status"));
to filter
the orders that this grid contains. Since there are quite a few of them /more
than 1000/ I get an error
‘Sys.WebForms.PageRequestManagerTimeoutException:
The server request timed out.’
I
understand that one possible way to fix that is to use a linq query with a
where clause, which will serve as a filter.
My questions are: what is the best way to solve this problem? If it is using linq, how should I implement this filter?

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="radWindow.aspx.cs" Inherits="radWindow" %><%@ 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></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="radScript" runat="server"> </telerik:RadScriptManager> <div> <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behavior="Default" InitialBehavior="None"> <Windows> <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Default" InitialBehaviors="None" OpenerElementID="btn" Width="650" Height="480" VisibleOnPageLoad="false"> <ContentTemplate> <telerik:RadComboBox ID="rdcmb" runat="server"> <Items> <telerik:RadComboBoxItem Text="One" Value="One" /> <telerik:RadComboBoxItem Text="Two" Value="Two" /> <telerik:RadComboBoxItem Text="Three" Value="Three" /> <telerik:RadComboBoxItem Text="Four" Value="Four" /> </Items> </telerik:RadComboBox> <telerik:RadTextBox ID="rdText" runat="server"> </telerik:RadTextBox> <telerik:RadButton ID="radbtn" runat="server" Text="Save" OnClick="radbtn_Click"> </telerik:RadButton> </ContentTemplate> </telerik:RadWindow> </Windows> </telerik:RadWindowManager> <asp:Button ID="btn" runat="server" OnClick="btn_Click" Text="Click" /> </div> </form></body></html>protected void btn_Click(object sender, EventArgs e) { foreach (RadComboBoxItem item in rdcmb.Items) { if (item.Text == "One" || item.Text == "Two") { item.Remove(); } } RadWindowManager1.Windows[0].VisibleOnPageLoad = true; }MetroTouch skin. WHenever I click on add a record button, instead displaying form insert form under that record, the form always appear at the top of the TreeList.