Hi,
I am trying to reload the data in my Infragistics grid using a knockout datasource. I have got the following code:
MYNAMESPACE.gridFunctions.prototype.refresh = function (data) { if (data == undefined) { $(".ajax-loader").css("display", "block"); MYNAMESPACE.gridFunctions.prototype.read(undefined, MYNAMESPACE.gridFunctions.prototype.refresh) return; } MYNAMESPACE.viewModel.books = ko.mapping.fromJS($.parseJSON(data)); ko.applyBindings(MYNAMESPACE.viewModel); $(".ajax-loader").css("display", "none"); };
"MYNAMESPACE.gridFunctions.prototype.read" is a REST/AJAX function which gets JSON data from the server.
When testing the functionality it seems to work, but the second refresh I get the following error:
...ngth-1][d.options.primaryKey])}}else{if(f().length>h.length){k=f()[f().length-1]...
I have no idea what might be wrong.. anyone?
Thanks in advance.
Will this error be solved in Infragistics 13.1?
I still get the error sometimes. For example:
I delete a row in my grid -> Working great, all fine
I add a row in the grid -> Still fine, row is added etc.
I add another row to the grid -> The row is added succesfully, but then the error above occurs.
It's no problem if I add a few rows without deleting one first. I can't imagine I am doing something wrong...
Hello Erwin,
I'm not sure what the problem is. Can you provide a sample reproducing the issue for me to investigate?
Best regards,Martin PavlovInfragistics, Inc.
The original error seems to have been fixed with an update.
Now however I get the following error when adding a row an then selecting it:
...ewrow"){return tx[i].row[colKey]}}}}if(this.options.primaryKey!==null){primaryKe...
So I:
The '80' in the error is the primary key (ID) of the record I added and selected.
Hello Stagiair ,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support