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

Issue with Gridview column filter of type Integer

5 Answers 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Karim
Top achievements
Rank 1
Karim asked on 28 Sep 2015, 10:28 AM

Hi,

 I have an issue with Integer and Boolean column filters in Gridview, it's always displaying blanks in the filter value suggestions.

I attached a screenshot to show the issue.

Thank you.

5 Answers, 1 is accepted

Sort by
0
lun
Top achievements
Rank 1
answered on 28 Sep 2015, 03:12 PM

Hi Karim !

I've found something that might interest you.. You could override default behavior by attaching to the DinstinctValuesLoading event of your RadGridView.

Then create your own distinct list of values from int to string for instance.

 

Don't forget to test the filtered column to apply the custom list to the desired ones.

 

See ya,

Lun@ir

0
Stefan
Telerik team
answered on 30 Sep 2015, 02:45 PM
Hello Karim,

As such issue is not known to us, would it be possible for you to reproduce it in a sample project and attach it in a new support ticket? You can take a look at the Isolating a problem in a sample project blog post for further reference.

I am looking forward to hearing from you.

Best Regards,
Stefan X1
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
lun
Top achievements
Rank 1
answered on 06 Oct 2015, 01:21 PM

Hello Karim,

Is it working if you apply a string format in your bindings ?

 

0
Karim
Top achievements
Rank 1
answered on 07 Oct 2015, 07:28 AM

Hi,

@Stefan unfortunately the issue is not reproducible in a sample project, when i do that it works fine. But i have found a turn around to resolve it in my project, it consist to just make a format to the data binded to the column that has issue in it's filtrer. Here the code :

<telerik:GridViewDataColumn Header="{Binding Path=StringResource.LabelSearchOTNum, Source={StaticResource LocStrings}}"   Width="auto" DataMemberBinding="{Binding IdOT}" DataFormatString="{}{0:N0}" />

Regards.

 

 

 

 

<telerik:GridViewDataColumn Header="{Binding Path=StringResource.Label​Id, Source={StaticResource LocStrings}}" Width="auto" DataMemberBinding="{Binding Id}" DataFormatString="{}{0:N0}" />
<telerik:GridViewDataColumn Header="{Binding Path=StringResource.Label​Id, Source={StaticResource LocStrings}}" Width="auto" DataMemberBinding="{Binding Id}" DataFormatString="{}{0:N0}" />
<telerik:GridViewDataColumn Header="{Binding Path=StringResource.Label​Id, Source={StaticResource LocStrings}}" Width="auto" DataMemberBinding="{Binding Id}" DataFormatString="{}{0:N0}" />
0
Stefan
Telerik team
answered on 09 Oct 2015, 07:35 AM
Hi Karim,

I am glad that this approach is working for you.

Do not hesitate to contact us in case you have any other questions on our controls.

Best Regards,
Stefan X1
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Karim
Top achievements
Rank 1
Answers by
lun
Top achievements
Rank 1
Stefan
Telerik team
Karim
Top achievements
Rank 1
Share this question
or