in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Using filter editor with restrictions for the user

Last post 11/17/2008 12:48 PM by Robert Chaffe. 3 replies.
Page 1 of 1 (4 items)
Sort Posts:
Previous Next
  • 11/17/2008 8:37 AM

    Using filter editor with restrictions for the user

    Hello,

    I'm using a XtraGrid and I would like to do something, but I don't know how.

    I would like to apply some criterias on the grid (one for each column) and to allow users to modify them.

    The thing is that these criterias are required and I don't want users to be able to delete a filter or to change the operator of the filter.

    Here is an exemple to explain my problem:

    A XtraGrid using these criterias:

    AND column1 = 12
    AND column2 = 7
    AND column3 > 42

    I want the user to be able to modify only the value (12,7 or 42), not the rest of criterias.
    Moreover, the user mustn't be able to delete a criteria.

    Is it possible? How I can do that?

    Thank you very much in advance! Smile

  • 11/17/2008 9:40 AM In reply to

    Re: Using filter editor with restrictions for the user

     I would use separate TextEdit or SpinEdit controls outside of the GridControl.  The GridView.OptionsCustomization.AllowFilter property would be set to False.  After the user enters a new value in each TextEdit or SpinEdit and clicks a SimpleButton, I would programmatically change each column filter.

  • 11/17/2008 11:13 AM In reply to

    Re: Using filter editor with restrictions for the user

    Thank you very much for your answer.

    I know I could use this method, but that's what I want to avoid.

    A lot of things are dynamically generated in my application and using this method would take me too much time.

     

    Is it impossible to do it directly with XtraGrid?

    Thank you in advance!

  • 11/17/2008 12:48 PM In reply to

    Re: Using filter editor with restrictions for the user

Page 1 of 1 (4 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED