Hi Telerik !
I have been using the latest RadGrid Control within my application.
I have a RadGrid in which I have a 7 columns :-
Out of which , 3 columns are GRID TEMPLATE COLUMN & all the remaing are BOUND COLUMNS
I have applied the FILTERS on to two of the GRID TEMPLATE COLUMNS , while the remaing one is for the ACTION purpose(which basically consist of the edit/delete button).
Lets say :-
Two GridTemplate Columns are :-
FILE NAME :- Iam getting the file name displayed in the column
FILE PATH:- Iam getting the full file path displayed in the column.
Also:;
I have implemented the RADTOOL tip on to both the GRIDTEMPLATE COLUMNS, so that in case my file name or file path is too long , I can see its name as an TOOL TIP.
Now since, FILTER is also implementd on to these two COLUMNS, so when I try to filter the FILE NAME & FILE PATH , Iam getting the below mentioned error :-
is neither a DataColumn nor a DataRelation for table DefaultView.
Please help how to filter these two columns ?
Below is the detailed code :-
| <Columns> |
| <telerik:GridTemplateColumn HeaderText="File Name" UniqueName="File_Name" SortExpression="File_Name"> |
| <ItemTemplate> |
| <asp:Label ID="AllFileNameLabel" runat="server" Text='<%# ( Eval("File_Name").ToString().Length > 20)? string.Concat(Eval("File_Name").ToString().Substring(0, 20), "...") : Eval("File_Name") %>'></asp:Label> |
| <telerik:RadToolTip ID="AllFileNameRadToolTip" TargetControlID='<%# ( Eval("File_Name").ToString().Length > 20)? "AllFileNameLabel" : "" %>' |
| Width="400px" Height="250px" Text='<%# Eval("File_Name") %>' ManualClose="false" |
| ContentScrolling="Y" runat="server"> |
| </telerik:RadToolTip> |
| </ItemTemplate> |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn HeaderText="File Path" UniqueName="File_Path" SortExpression="File_Path"> |
| <ItemTemplate> |
| <asp:Label ID="AllFilePathLabel" runat="server" Text='<%# ( Eval("File_Path").ToString().Length > 20)? string.Concat(Eval("File_Path").ToString().Substring(0, 20), "...") : Eval("File_Path") %>'></asp:Label> |
| <telerik:RadToolTip ID="AllFilePathRadToolTip" TargetControlID='<%# ( Eval("File_Path").ToString().Length > 20)? "AllFilePathLabel" : "" %>' |
| Width="400px" Height="250px" Text='<%# Eval("File_Path") %>' ManualClose="false" |
| ContentScrolling="Y" runat="server"> |
| </telerik:RadToolTip> |
| </ItemTemplate> |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridTemplateColumn> |
Ajay
