Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Bugs & Issues > Event handler for clicking 'I am done' button in Edit Control mode

Event handler for clicking 'I am done' button in Edit Control mode

  • Zubair Intermediate avatar

    Posted on Nov 28, 2011 (permalink)

    Hi there,

    When you edit a control you get these two buttons to save and cancel, I would like to capture the event and do some work there, how is this possible in sitefinity 3.x?

    Please view the attached screenshot to see what I mean

    Please let me know as this has been going on for days with no luck.

    Thanks
    Attached files

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Nov 28, 2011 (permalink)

    Hello Zubair,

    In 3.x you can subscribe for

    OnSaving() method of the ControlDesigner that is called by ControlEditor when you are about to save the data. For the "cancel" button, there is no server side event. The RadWindow is closed with client script.

    In Sitefinity 4.x

    You can subscribe for the click event of the save button when you initialize the client component

    jQuery(this.get_propertyEditor().get_saveButton())

    To get a reference to the cancel button you need to subscribe for

    get_cancelButton

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • Zubair Intermediate avatar

    Posted on Nov 28, 2011 (permalink)

    Hi,

    Yea I got that right after posting this.

    Thanks anyway.

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Bugs & Issues > Event handler for clicking 'I am done' button in Edit Control mode