<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.Hi
I have built a WCF Data service and I just want to ask what I should write to be able to work with it In a ODataService.
Here’s my WCF dataservice:
using System;using System.Data.Objects;using System.Data.Services;using System.Data.Services.Common;using System.Linq;using System.ServiceModel.Web;using DataServicesJSONP;namespace BD2.Web.Services.WebService{ [System.ServiceModel.ServiceBehavior(IncludeExceptionDetailInFaults = true)] [JSONPSupportBehavior] public class Room : DataService<ObjectContext>
{ public static void InitializeService(DataServiceConfiguration config) { config.SetServiceOperationAccessRule("GetTime", ServiceOperationRights.All); config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2; } [WebGet] public string GetTime() { return DateTime.Now.ToLongTimeString(); } }}(The [JSONPSupportBehavior] is a script to remove dollar-signs from the jsonp that gives troubles with ODataservice. I got it from: http://stackoverflow.com/questions/2983078/cant-get-the-jsonp-working-with-wcf-data-services).
(I use ObjectContxt because I get data from Entity FrameWork Code FIrst. I got help for building it from: http://blogs.msdn.com/b/writingdata_services/archive/2012/05/05/10175174.aspx).
I would like to read in the string from GetTime(). How should my ODataService then be like?:
<telerik:RadODataDataSource runat="server" ID="RadODataDataSource1"> <Transport> <Read Url="http://localhost:52878/Services/WebService/Room.svc/" /> </Transport> <Schema> <telerik:DataModel ModelID="GetTime" Set="???????" /> </Schema> </telerik:RadODataDataSource>Thanks :o)
Could some one tell me why the code shown below is not firing the Edit Events when I click on the Edit Column, However, it fires when I click on the auto generated Edit column?
Thank you
Maher