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

More flexible masked edit - feature request

1 Answer 48 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 28 Jun 2010, 06:56 PM
I hope this is the right forum for this.  I posted a separate thread for

It would be really nice if the RadMaskedEdit control provided the ability to implement custom behavior based on fields where a field is defined as the region between two mask delimiter characters.   That is, say my mask is "##:##:##".  Then my delimiter is the colon (:) and there are three fields.

I'd like to be able to extract or replace any of the three fields.  Something like this method:
Get/SetFieldText - Get/Set text in the field that includes the current SelectionStart position.

Alternatively, be able to pass the position you want the field for (e.g. GetFieldText(0) for getting the text in the 1st field).  I would think that ideally the integer represent the field# (e.g. above I could say either GetFieldText(0), GetFieldText(1) or GetFieldText(2) to get field 1, 2 and 3 respectively.

It might also be useful to expose a Get/SetFieldPos method to get the field # for the current selection start.

Note: I would think that there would need to be some ability to warn the user if the selection spans multiple fields. Maybe raise an exception or make this an optional property to indicate (IgnoreIfSpanningFields - probably not the ideal solution but you get the idea).

Having these methods, I could override the KeyUp/KeyDown behavior to whatever I wanted.  For example, if I knew I had numbers in a given field, I could use KeyUp/Down to increment/decrement the value by 1 and Shift+KeyUp/Down to incr/decr by 5.

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 02 Jul 2010, 07:45 AM
Hi Steve,

Thank you very much for your detailed feature request.

Indeed, that would be a nice-to-have add-on to our suite and we will do our best to address it in some of our next releases. I have logged your feature request in our Public Tracking System (PITS) where you can track its progress.

I have updated your Telerik points as a token of our gratitude for your feedback.


Kind regards,
Georgi
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
Tags
MaskedEditBox
Asked by
Steve
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or