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

ImageColumn NoFilter Doesn't work

1 Answer 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bimar
Top achievements
Rank 1
Bimar asked on 22 Apr 2008, 06:15 AM

Hello,
I Use winform Q3 2007.
I want to disable filtering feature of an ImageColumns. So i set ;

gridViewImageColumn1.Filter.Function = GridKnownFunction.NoFilter;

But, firstly  it doesnt prevent user inputing filter text box of the column,
secondly and most important one, when you input something in the filter textbox of the image coloumn and select some menu item in the filtering context menu ( i mean "equal", "greater", ...menu )  it still wants to filter the expression and so program fails with
System.Data.SyntaxErrorException: The expression contains invalid name
message.

 for now,  I overcome this case by coding this, 

private

void BLSecimDataGrid_MasterGridViewTemplate_FilterChanging(object sender, FilterChangingEventArgs e)
{
if (sender is Telerik.WinControls.UI.GridViewImageColumn)
{
GridViewImageColumn gridViewImageColumn = ((Telerik.WinControls.UI.GridViewImageColumn)sender;
if (!string.IsNullOrEmpty(e.NewStringValue)) e.Cancel = true;
}
}

i think it's a bug and i want to know, if there is another solution without coding and just setting some property :) 

Thank you

Serkan APUL.

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 22 Apr 2008, 07:43 AM
Hi Serkan,

Thank you for writing.

The image column issue is resolved in our Q1 2008 release. I would recommend downloading it as it includes numerous bug fixes and a notable performance boost in the RadGridView control.

Regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Bimar
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or