Hi,
Is there a way to customize buttons in the grid popup editmode?
I have looked through code for creating the popup window and it seems that the buttons are appended regardless to the html before creating the window.
ie.:
html += that._createButton("update") + that._createButton("canceledit");
html += '</div></div>';
I want to change to position, icons and text but keeping the functionality.
I tried changing content on open event, but this seems not to be the best approach.
i.e:
However this method looses the mvvm binding and the widgets looses its functionality!
Any help appreciated.
Is there a way to customize buttons in the grid popup editmode?
I have looked through code for creating the popup window and it seems that the buttons are appended regardless to the html before creating the window.
ie.:
html += that._createButton("update") + that._createButton("canceledit");
html += '</div></div>';
I want to change to position, icons and text but keeping the functionality.
I tried changing content on open event, but this seems not to be the best approach.
i.e:
open: function (e) { // TODO: fikse knapper: // debugger; var content = $(e.sender.content()); content.find(".popup-fieldset-wrapper").append(content.find(".k-button")); content.find(".k-button").wrapAll("<div class='buttons' style='float: right;'/>"); content.find(".k-button.k-grid-update").addClass("save"); content.find(".k-button.k-grid-cancel").addClass("cancel"); e.sender.content(content); //at first i was converting content back to html(), but seems much better when just putting the jQuery object into content. // e.sender.center(); }
However this method looses the mvvm binding and the widgets looses its functionality!
Any help appreciated.