Sep 27, 2013, 2:37 PM
[CLOSED] Store Add Record
I have two GridPanel with identical models. I have an ImageCommandColumn in Grid1 that inserts the selected record into Grid two:
I also get JS runtime error: Unable to get property 'internalId' with the following ajax call
.Listeners(l =>
{
l.Command.Handler = "App.LoadBuilderStore.add(record); alert(App.LoadBuilderStore.getTotalCount());";
})
While the added record shows in the UI, getTotalCount() on the inserted store always returns 0;I also get JS runtime error: Unable to get property 'internalId' with the following ajax call
$.ajax({
url: "/Operations/LoadPlanning/LoadBuilderHaulLegs",
type: "GET",
dataType: "json",
//data: "{}",
data: { loadOrders: App.LoadBuilderStore.data },
success: function (data) {
},
error: function (error) {
alert(error.responseText);
},
cache: false
});
please advise.
Last edited by Daniil; Oct 04, 2013 at 6:03 AM.
Reason: Please use [CODE] tags, [CLOSED]