Author Topic: IsDirty is always False  (Read 4785 times)

jax

  • Newbie
  • *
  • Posts: 16
    • View Profile
IsDirty is always False
« on: June 23, 2014, 09:08:49 am »
When I get data via Ajax, isDirty is always false. I am setting the PrimaryKeyId in the datamodel below, all the data is populating the grid correctly. I can even write the primaryKey to the console or display via data[0].PersonId so I know the data is there. What am I missing? My primary key is a Guid, does param query not work with Guids as the primary key?


var providers = {
            location: 'remote',
            dataType: "JSON",
            recIndex: 'PersonId',
            method: "GET",
            url: "/FacilityAdmin/Provider/GetProviders",
            getData: function (dataJSON) {
                var data = dataJSON.data;
                return { curPage: dataJSON.curPage, totalRecords: dataJSON.totalRecords, data: data };
            }
        };

 var colM = [
            { title: 'PersonId', width: 100, dataIndx: 'PersonId', dataType: 'string', hidden: true },
            { title: 'Last Name', width: 100, dataIndx: 'LastName', dataType: 'string' },
            { title: 'First Name', width: 100, dataIndx: 'FirstName', dataType: 'string' },
« Last Edit: June 23, 2014, 09:15:26 am by jax »

jax

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: IsDirty is always False
« Reply #1 on: June 23, 2014, 09:53:32 am »
recIndx was spelled incorrectly as recIndex, after I corrected that it works.