Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
igGrid - Swap button position in Row Edit Dialog


I was wondering if it's possible to change the button layout of the editor dialog as demoed here:

We would like to have the Done button on the right so that it aligns with the rest of our UI and doesn't confuse our users.

No Data
  • 160
    Verified Answer
    Offline posted


    Changing positions of the “Done” and “Cancel” buttons in row edit dialog can be achieved by handling rowEditDialogAfterOpen event, fired when dialog box is opened and all dom elements are rendered. In this handler the DOM should be manipulated to reorder the dialog elements.

    For example, if positions of “Done” and “Cancel” buttons should be swapped the after jQuery method can be used. For example:

    rowEditDialogAfterOpen: function(evt, ui) {

    More about the jQuery after function can be found here.

    Attached you can find a sample that swaps the two buttons. In case this is not a correct representation of what you are trying to achieve feel free to correct me.