Issue with Gridview column filter of type Integer

6 posts, 0 answers
  1. Karim
    Karim avatar
    2 posts
    Member since:
    Dec 2014

    Posted 28 Sep 2015 Link to this post

    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.

  2. lun
    lun avatar
    4 posts
    Member since:
    Jan 2015

    Posted 28 Sep 2015 Link to this post

    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

  3. UI for WPF is Visual Studio 2017 Ready
  4. Stefan X1
    Admin
    Stefan X1 avatar
    518 posts

    Posted 30 Sep 2015 Link to this post

    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
  5. lun
    lun avatar
    4 posts
    Member since:
    Jan 2015

    Posted 06 Oct 2015 in reply to Stefan X1 Link to this post

    Hello Karim,

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

     

  6. Karim
    Karim avatar
    2 posts
    Member since:
    Dec 2014

    Posted 07 Oct 2015 Link to this post

    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}" />
  7. Stefan X1
    Admin
    Stefan X1 avatar
    518 posts

    Posted 09 Oct 2015 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready