CaseSensitive for RadMultiColumnCombobox

2 posts, 0 answers
  1. Behin
    Behin avatar
    1 posts
    Member since:
    Apr 2013

    Posted 15 Apr 2013 Link to this post

    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 .mastertemplate.casesensitive=false;
    how can i fix this problem?
    Thank you
  2. Peter
    Peter avatar
    1148 posts

    Posted 17 Apr 2013 Link to this post

    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,
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  3. DevCraft R3 2016 release webinar banner
Back to Top