Specifying GridViewMaskBoxColumn maximum length when using a "P" Mask

2 posts, 0 answers
  1. Rebecca
    Rebecca avatar
    4 posts
    Member since:
    Jun 2013

    Posted 31 Jul 2013 Link to this post

    I have several columns in a RadGridView control available for editing a percentage value.  The "P" mask works great using a GridViewTextBoxColumn except I can't figure out how to set a limit on the number of digits a user can enter into a cell.  There USED to be a MaxLength property to define the maximum length, but in the recent versions of the Rad Controls, this property has been removed ... no longer available.  Can you tell me how I can maintain the nice formatting that the "P" mask provides (while editing) and still specify the maximum length of the string of digits the user is allowed to enter?
  2. George
    George avatar
    500 posts

    Posted 05 Aug 2013 Link to this post

    Hello Rebecca,

    Thank you for writing.

    I am not really sure if I understood right, but if you are using GridViewTextBoxColumn, there is a MaxLength property there in our latest version 2013 Q2 (724):
    GridViewTextBoxColumn col = new GridViewTextBoxColumn("Col" + i);
    col.MaxLength = 1;

    And, if you are using GridViewMaskBoxColumn, you need to specify the maximum length in the mask. This is so, because it was considered that the priority of the mask should be higher than the MaxLength property.

    If you have any other questions or comments, please let me know.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top