+1-888-365-2779
Try Now
More in this section

Forums / 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

3 posts, 0 answered
  1. Zubair
    Zubair avatar
    142 posts
    Registered:
    26 Dec 2007
    28 Nov 2011
    Link to this post
    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
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Nov 2011
    Link to this post
    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
  3. Zubair
    Zubair avatar
    142 posts
    Registered:
    26 Dec 2007
    28 Nov 2011
    Link to this post
    Hi,

    Yea I got that right after posting this.

    Thanks anyway.
Register for webinar
3 posts, 0 answered