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

Custom in-line edit

1 Answer 44 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 30 Aug 2012, 06:19 PM
Hi

I've modified the in-line edit template to replace the subject text field with two RadMaskedNumericInput controls. These are implemented with two-way binding to my "Appointment". I've changed the double-click event to kick-off inline edit but am struggling to cancel the inline edit mode. It cancels when the current appointment loses focus (e.g. by moving to the next appointment) but ideally I would like to cancel this by pressing enter in one of the numeric inputs.

I'm thinking that I could subclass the maskededit to trap the enter key but then I'm not sure how I cancel the edit mode. Is this possible or is there another, simpler, way to do this?

In the original template when you pressed enter in the subject edit box, it cancels the edit so how does this work?

Thanks
Keith

1 Answer, 1 is accepted

Sort by
0
Keith
Top achievements
Rank 1
answered on 31 Aug 2012, 02:14 PM
Hi

Not sure if this is the best way but I've solved the issue by subclassing the RadMaskedNumericInput to listen for enter in the KeyUp event. If it's found, I handle the event and call schedule.Commit() which brings the schedule out of in-line edit mode.

Thanks anyway
Keith
Tags
ScheduleView
Asked by
Keith
Top achievements
Rank 1
Answers by
Keith
Top achievements
Rank 1
Share this question
or