Available Decimal Places in Double Editor

3 posts, 1 answers
  1. Mark
    Mark avatar
    44 posts
    Member since:
    Jun 2009

    Posted 06 Apr 2011 Link to this post

    Hello,

    It seems that the stock editor that the Data Filter provides for double values allows only 2 decimal places.  Is there any way to change this, or do I need to implement a custom editor?

    Thanks,
    Mark.
  2. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 07 Apr 2011 Link to this post

    Hi Mark,

    You don't need to implement a whole new editor. Simply attach to the EditorCreated event of the RadDataFilter. In the event handler check the name of the property and/or whether the editor is a MaskedTextBox. In case you detect that this is the editor that you want to configure, cast it to MaskedTextBox and then you can set any kind of Mask that you need.

    I hope this helps. Let me know if there are problems.

    All the best,
    Ross
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Mark
    Mark avatar
    44 posts
    Member since:
    Jun 2009

    Posted 08 Apr 2011 Link to this post

    Hey Ross,

    Perfect - just what I needed - thanks!

    Mark.
Back to Top