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.
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.