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

Filters not working on Item Template columns

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Farhan
Top achievements
Rank 1
Farhan asked on 21 Oct 2011, 09:47 PM
Hi,
  I am stuck on a problem I need some help with, I have made a sample project to show the problem. This page has two grids, a parent grid showing Product Types and when you edit on any of the records it brings up the edit form with another grid showing the different types of product you wanted to edit. This grid in edit form has "inPlace" editing and I have used Item Template columns since i had to put required validators in for these fields since in my real project these are required fields. I noticed in the grid in the edit form the Filters are not working? I have tried to set the "autoPostbackonFilter" property to true, Can someone help me use these filters on the ItemTemplate columns? I have to use these since in my project in the grid in edit form there will be possibly many many items so the User needs the ability to filter,  Please let me know of how to accomplish this, thanks

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 22 Oct 2011, 05:45 AM
Hello,


Please provide "DataField" in template column.
<telerik:GridTemplateColumn DataField="ID">
 
 <ItemTemplate>
<%# Eval("ID") %>
 
   </ItemTemplate>
                    </telerik:GridTemplateColumn>


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Farhan
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or