This is a migrated thread and some comments may be shown as answers.

[Solved] Save and continue

0 Answers 14 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hugues
Top achievements
Rank 1
Hugues asked on 04 Jul 2012, 03:17 PM
hi,
 i have a little problem with the Grid.
i need to add a button "Save and Continue" on the insert popup.


I have succeeded to add the button in my EditTemplate like this :
<a href="#" class="t-button t-button-icontext t-grid-continue"><span class="t-icon t-insert"></span>Save & Continue</a>


I have succeeded to do the insert action like this in my gridview :
function onEdit(e) {
    var dataItem = e.dataItem;
    if (dataItem.b_id == "0") {
        $(".t-grid-continue").on("click", function () {
            $(this).parent().children(".t-grid-insert").trigger("click");
        });
    }
}



i have succeeded to reopen the "Insert popup" when i do $("t-grid-add").trigger("click") after "t-grid-insert" but at the reopen buttons "Insert", "cancel", "x" doesn't work anymore and if i reclick on "Save & continue" i show 2 insert popup and this time all button doesn't work.


If someone to do something like this or can have a idéa can help me.

Regards.
Tags
Grid
Asked by
Hugues
Top achievements
Rank 1
Share this question
or