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

adding new filter row

1 Answer 5 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Satish
Top achievements
Rank 1
Satish asked on 17 Dec 2015, 04:40 AM

 Hi,

 I am new to telerik grid and need some support.

I want to create row below the MasterTableView  with custom filters.

Below is code snippet.

Thanks,

<telerik:RadGrid ID="gvResults"  runat="server"  PageSize="20" AllowPaging="true" AllowSorting="True" AllowMultiRowSelection="False" 

                                                 
                                 GridLines="none" OnDetailTableDataBind="gvResults_DetailTableDataBind" OnNeedDataSource ="gvResults_NeedDataSource" OnPreRender="gvResults_PreRender">
           
                                <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                                  <MasterTableView DataKeyNames="ProjectName">
                                   

                                
                                <DetailTables>
                                    <telerik:GridTableView DataKeyNames="ProjectName" Name="Emp" >
                                        <DetailTables>
                                            <telerik:GridTableView DataKeyNames="ProjectName" Name="EmpDetails" >
                                             
                                            </telerik:GridTableView>
                                        </DetailTables>
                                       
                                    </telerik:GridTableView>
                                </DetailTables>
                
            </MasterTableView>
            </telerik:RadGrid>              
                             

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 18 Dec 2015, 05:06 PM
Hello,

Together with its general filtering capabilities, RadGrid offers a very interesting and powerful addition to the grid control. This is the filter template, which can be added both to a standard GridBoundColumn, and a GridTemplate column.You can nest any control in the filter template, which allows for a great deal of customization. Once you have setup the layout of the filter template, the next part of the logic would be to handle the filtering for the grid. Below you can see the demo which demonstrates the Filter Templates and link to the respective article:
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/filter-templates/defaultcs.aspx
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/filtering/filter-template

Regards,
Pavlina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Satish
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or