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

CaseSensitive for RadMultiColumnCombobox

1 Answer 99 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Behin
Top achievements
Rank 1
Behin asked on 15 Apr 2013, 07:44 AM
Hi
I used from multicolumncombobox with custom filtering.I don't want to be different 'A' and 'a'.
I used this code but not fix this problem.
MultiCol.editorcontrol.casesensitive=false;
Or
MultiCol.editorcontrol .mastertemplate.casesensitive=false;
how can i fix this problem?
Thank you

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 17 Apr 2013, 03:55 PM
Hi Behin,

Thank you for writing.

The CaseSensetive property is applied only for the FilterDesriptors but the custom filtering has a higher priority than the applied FilterDescriptors. In case that you are using custom filtering you should use a non CaseSensetive string comparison in your custom filtering event:
MultiCol.EditorControl.EnableCustomFiltering = true;
MultiCol.EditorControl.CustomFiltering += new GridViewCustomFilteringEventHandler(radGridView1_CustomFiltering);
 
private void radGridView1_CustomFiltering(object sender, GridViewCustomFilteringEventArgs e)
{  
    e.Visible = e.Row.Cells["ColumnToFilter"].Value.ToString().StartsWith( MultiCol.Text, falsenew CultureInfo("en-US"));
}

You can read more about it in the online documentation. I hope this helps.

All the best,
Peter
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
MultiColumn ComboBox
Asked by
Behin
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or