Grid columns filter/sort are not showing "contains"

4 posts, 0 answers
  1. karthikeyan
    karthikeyan avatar
    28 posts
    Member since:
    Aug 2016

    Posted 18 Dec 2017 Link to this post

    HI 

       I am using the RadGrid in silverlight .Net, in this grid column was a combobx and the DateMemberBinding is Interger(Primary Key) and the DisplayColumnName="Qualification", ValueColumnName="QualificationNo_PK" when I tried to filter, the "contains" filter options are not showing for this column. 

    I need "contains" filter options for the Integer DataType, for varchar it's showing like that I need. These are the following code I used for the column,

    <smInput:ComboBoxColumn2
    ColumnWidths="0,1"
    DataMemberBinding="{Binding QualificationNo, Mode=TwoWay}"
    DisplayColumnName="Qualification"
    Header="{Binding "Qualification", Source={StaticResource LocalizedStrings }}"
    IsFilterable="True"
    IsSortable="True"
    UniqueName="Qualification"
    ComboBoxMargin="0"
    SearchType="SubString"
    ValueColumnName="QualificationNo_PK"
    Width="Auto" />

    The ComboBoxColumn2 is a kendo combobox, I know the DataType ID doesn't have the "Contains" filter but am showing the Description for the ID so I need the "Contains" filter, please help me in this issue.

     

     

  2. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    219 posts

    Posted 20 Dec 2017 Link to this post

    Hello,

    Thank you for the provided information.

    There is no straightforward way for the default filtering control to know which ValueColumnName corresponds to which DisplayColumnName. What I can suggest for you is to implement a Custom Filtering Control for the combo box column. You can also take a look at the Filtering GridViewComboBoxColumn in RadGridView for WPF blog post. The application provided is a WPF one, but the approach can be applied in a Silverlight application as well.

    Regards,
    Vladimir Stoyanov
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. karthikeyan
    karthikeyan avatar
    28 posts
    Member since:
    Aug 2016

    Posted 26 Dec 2017 in reply to Vladimir Stoyanov Link to this post

    HI

    I can't figure it out that how to customize the filtering controls for the combos could you provide some sample model..

  4. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    219 posts

    Posted 29 Dec 2017 Link to this post

    Hello,

    You can have a look at the Custom Filter Control SDK example which demonstrates a possible approach for customizing the filtering controls and modify it to your liking. You can also access it through our SDK Samples Browser if you find that easier.

    I hope you find this helpful.

    Regards,
    Vladimir Stoyanov
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top