Custom in-line edit

2 posts, 0 answers
  1. Keith
    Keith avatar
    88 posts
    Member since:
    May 2007

    Posted 30 Aug 2012 Link to this post

    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
  2. Keith
    Keith avatar
    88 posts
    Member since:
    May 2007

    Posted 31 Aug 2012 Link to this post

    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
  3. DevCraft banner
Back to Top