This is a migrated thread and some comments may be shown as answers.

Available Decimal Places in Double Editor

2 Answers 106 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 06 Apr 2011, 08:48 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 07 Apr 2011, 08:51 AM
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
0
Mark
Top achievements
Rank 1
answered on 08 Apr 2011, 08:07 PM
Hey Ross,

Perfect - just what I needed - thanks!

Mark.
Tags
DataFilter
Asked by
Mark
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Mark
Top achievements
Rank 1
Share this question
or