[CLOSED] Store Add Record

  1. #1

    [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:

    .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]
  2. #2
    Hi @ehmdb,

    Could you, please, provide a full test case to reproduce?

Similar Threads

  1. Replies: 4
    Last Post: Sep 13, 2013, 2:40 PM
  2. Replies: 0
    Last Post: Nov 20, 2012, 1:08 PM
  3. Replies: 1
    Last Post: Dec 22, 2011, 6:17 AM
  4. Replies: 16
    Last Post: May 26, 2011, 10:23 PM
  5. [CLOSED] Adding a new Store Record - Not a Record object
    By Steve in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 15, 2009, 7:40 AM

Posting Permissions