This is a migrated thread and some comments may be shown as answers.

How disable client-side filtering in RadGrid?

1 Answer 263 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jalal
Top achievements
Rank 1
Jalal asked on 12 Dec 2018, 10:50 AM

Hello

It seems by default, RadGrid applies client-side filtering on columns. When I press enter on a column, I can see at the end, client side filter is being applied. Is there any property to disable it? Here is a sample:

<telerik:RadGrid AutoGenerateColumns="False" ID="grdInProgressTasks" runat="server" Width="100%" AllowMultiRowSelection="true" AllowSorting="true"
                AllowPaging="true" OnNeedDataSource="grdInProgressTasks_NeedDataSource" CssClass="grdTasks pro-responsive" OnItemDataBound="GrdInProgressTasks_ItemDataBound"
                OnItemCommand="grdInProgressTasks_ItemCommand">
                <MasterTableView DataKeyNames="CrmObjectId,ProcessInstanceTypeIndex,Description, ColorR,ColorG,ColorB" ClientDataKeyNames="Id,CrmObjectId,ProcessInstanceTypeIndex" AllowCustomPaging="true" AllowFilteringByColumn="true" >
                    <Columns>
                        <septa:LocalizedBoundColumn DataField="DSenderId" HeaderResourceKey="General.Literal.AssignedFrom" />
                        <septa:LocalizedBoundColumn DataField="CrmObjectSubject" HeaderResourceKey="General.Literal.General_Subject" />
                        <septa:LocalizedTemplateColumn DataField="NickName" HeaderResourceKey="General.Literal.CrmHistory_IdentityName">
                            <ItemTemplate>
                                <a href="/_SiteCommon/Handler/IdentityFinder.ashx?Id=<%# Eval("IdentityId") %>" target="_blank"><%# Eval("NickName") %></a>
                            </ItemTemplate>
                        </septa:LocalizedTemplateColumn>
                        <septa:LocalizedGridDataBoundColumn DataField="DRelatedToId" HeaderResourceKey="General.Literal.erja" />
                        <septa:LocalizedGridDataBoundColumn DataField="DRelatedToTypeIndex" HeaderResourceKey="General.Literal.ReferType" AllowSorting="false" />
                        <septa:LocalizedGridDataBoundColumn DataField="DCardtableStatusIndex" HeaderResourceKey="General.Literal.Status" AllowSorting="false" />
                        <septa:LocalizedGridDataBoundColumn DataField="DDoneCauseIndex" HeaderResourceKey="General.Literal.End" AllowSorting="false" />
                        <septa:LocalizedBoundColumn DataField="CreateDatePersian" HeaderResourceKey="General.Literal.CreateDate" />
                        <septa:LocalizedGridDataBoundColumn DataField="LifePathType" HeaderResourceKey="General.Literal.Type" AllowSorting="false" />
                    </Columns>
                    <NoRecordsTemplate>
                        <div class="clearfix text-center">
                            <septa:LocalizedLiteral runat="server" ResourceKey="Res.General.Literal.UcUserTasks_AnyCaseDefined"></septa:LocalizedLiteral>
                        </div>
                    </NoRecordsTemplate>
                </MasterTableView>
                <ClientSettings EnableRowHoverStyle="true" EnableAlternatingItems="false" AllowDragToGroup="True" AllowColumnsReorder="True">
                    <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
                    <ClientEvents OnRowDblClick="RowDblClick" OnRowContextMenu="onRowContextMenu" />
                    <Resizing AllowColumnResize="true"></Resizing>
                </ClientSettings>
            </telerik:RadGrid>

 

And here is my columns:

public class LocalizedBoundColumn : GridBoundColumn
{
    public LocalizedBoundColumn()
    {
        this.AutoPostBackOnFilter = true;
        this.CurrentFilterFunction = GridKnownFunction.Contains;
        this.AutoPostBackOnFilter = true;
        this.ShowFilterIcon = false;
    }

 

    // ... 

}

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 14 Dec 2018, 09:16 PM
Hi Jalal,

RadGrid only filters on the server-side if DataBinding is done on server side. In the code snippet you have provided, I see that the grid is bound on server using Advanced DataBinding with NeedDataSource event.

Could you please describe the behavior that you are experiencing and the steps to replicate the problem so that we can check it on our end?

I look forward to hearing from you.

Kind regards,
Attila Antal
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Jalal
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or