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

[Solved] filtering issue :please help meeee

1 Answer 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sankardeep v
Top achievements
Rank 1
sankardeep v asked on 10 Feb 2010, 01:04 PM
I am new to telerik controls, i am having an issue with the filtering in the grid view.
I am using an MVP architecture were i am binding the a datatable to a radgrid in code behind .
I have set the gridviews allowfilterbycolumn set but still i am not able to filter.

Pls help me.


this is the UI look like

<telerik:RadGrid  ID="systemsRadGrid" AllowFilteringByColumn="True"  runat="server" Width="500" PageSize="10"
            AllowSorting="True" AllowMultiRowSelection="True" OnColumnCreated="RadGrid2_ColumnCreated"  AllowPaging="True" EnableLinqExpressions="false" ShowGroupPanel="True">
            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
            <MasterTableView AllowFilteringByColumn="True" runat="server">
            
            </MasterTableView>
            <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                <Selecting AllowRowSelect="True"></Selecting>
                <Resizing AllowRowResize="True" AllowColumnResize="True"  EnableRealTimeResize="True"
                    ResizeGridOnColumnResize="False"></Resizing>
                    <Scrolling AllowScroll="false" />
                 </ClientSettings>
            <GroupingSettings ShowUnGroupButton="true"  />
        </telerik:RadGrid>



The code for binding is
 SettingsForBusiness obj1 = new SettingsForBusiness();
systemsRadGrid.DataSource = obj1.getSystemsGrid();
systemsRadGrid.DataBind();




please help meeee






1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 10 Feb 2010, 02:03 PM
Hello Sankardeep,

The filtering feature of RadGrid is not supported with simple binding and DataBind() calls. This is outlined in the Description section of the following online demo of the product:
http://demos.telerik.com/aspnet-ajax/Grid/Examples/GeneralFeatures/Filtering/DefaultCS.aspx

If you would like to take advantage of this grid feature, you will need to switch to advanced binding using NeedDataSource event handling or a data source control (as shown in the example linked above).

Greetings,
Pavlina
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Grid
Asked by
sankardeep v
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or