adding new Filter via code

4 posts, 0 answers
  1. Ralf
    Ralf avatar
    10 posts
    Member since:
    Apr 2010

    Posted 08 Sep 2011 Link to this post

    Hi,

    i have a RadDataFilter defined and try to add a new FilterDescriptor.
    If the RadView is visible, i got to visual entries for that one filter.
    But if i hide the DataFilter before adding, all is ok ?

     ClearFilter();
    _Filter.Visibility = Visibility.Collapsed;
    var cityFilter = new FilterDescriptor("City"FilterOperator.IsEqualTo, "Berlin :-)", false);
    _Filter.FilterDescriptors.Add(cityFilter);
    _Filter.Visibility = Visibility.Visible;



    What  am i doing wrong?
    tanks
    ralf








  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 08 Sep 2011 Link to this post

    Hello Ralf Bellmann,

    Unfortunately, we could not quite understand what the problem is.

    What is RadView? Do you mean RadGridView? What is RadDataFilter bound to? Is it in bound or unbound mode? In case it is bound to RadGridView, have you hidden RadGridView's default filtering as described in docs?

    Since we have so many different questions that we cannot answer from the short code snippet you have provided, it will be better if you simply open a new support ticket and send us a very small dummy sample project that demonstrates this and tell us exactly what are you trying to achieve and what the exact problem is.

    This will be the fastest way to resolve your issue.

    Thanks in advance.

    Best wishes,
    Ross
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft banner
  4. Ralf
    Ralf avatar
    10 posts
    Member since:
    Apr 2010

    Posted 08 Sep 2011 Link to this post

    Hi Ross,

    sorry i was to quick ..

    RadView is wrong, this is the RadDataFilter. The Filter is in unbound mode.

    Could i clarify my question ?

    thanks ralf

    Ok - opened a ticket 462416.
  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 12 Sep 2011 Link to this post

    Hello Ralf,

    In case you think that you have discovered a bug in one of our controls, please prepare a simple project that demonstrates this bug and we will debug it immediately. Also, tell us the exact steps that we need to follow in order to reproduce the bug and what are the results that you would expect. 

    Thanks in advance.

    Regards,
    Ross
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top