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

Grid columns filter/sort are not showing "contains"

3 Answers 113 Views
GridView
This is a migrated thread and some comments may be shown as answers.
karthikeyan
Top achievements
Rank 1
karthikeyan asked on 18 Dec 2017, 06:28 AM

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.

 

 

3 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 20 Dec 2017, 04:25 PM
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.
0
karthikeyan
Top achievements
Rank 1
answered on 27 Dec 2017, 04:49 AM

HI

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

0
Vladimir Stoyanov
Telerik team
answered on 29 Dec 2017, 12:51 PM
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.
Tags
GridView
Asked by
karthikeyan
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
karthikeyan
Top achievements
Rank 1
Share this question
or