jQuery UI Widgets › Forums › Angular › Angular 4 setCellValue giving error when called after updateRow commit(true)
This topic contains 1 reply, has 2 voices, and was last updated by Hristo 7 years, 3 months ago.
-
Author
-
October 26, 2017 at 8:37 am Angular 4 setCellValue giving error when called after updateRow commit(true) #96936
Hi Team,
I am trying to update a cell value after UpdateRow server side sync on curent row as below , But i am getting sync error when i try to do same.
this.treeGrid.setCellValue(this.currentRow.rowKey,’pmTimeStamp’,result.body.pmTimeStamp);Error message from console
ERROR ReferenceError: sync is not defined
at b.(anonymous function).setCellValueByKey (https://www.jqwidgets.com/public/jqwidgets/jqx-all.js:62:106689)
at b.(anonymous function).setCellValue (https://www.jqwidgets.com/public/jqwidgets/jqx-all.js:186:865)
at Object.a.jqx.invoke (https://www.jqwidgets.com/public/jqwidgets/jqx-all.js:14:56927)
at Object.a.jqx.jqxWidgetProxy (https://www.jqwidgets.com/public/jqwidgets/jqx-all.js:14:61989)
at HTMLDivElement.<anonymous> (https://www.jqwidgets.com/public/jqwidgets/jqx-all.js:14:67906)
at Function.each (https://code.jquery.com/jquery-1.11.1.min.js:2:2973)
at m.fn.init.each (https://code.jquery.com/jquery-1.11.1.min.js:2:835)
at m.fn.init.a.fn.(anonymous function) [as jqxTreeGrid] (https://www.jqwidgets.com/public/jqwidgets/jqx-all.js:14:67878)
at jqxTreeGridComponent.webpackJsonp…/../../../jqwidgets-framework/jqwidgets-ts/angular_jqxtreegrid.ts.jqxTreeGridComponent.setCellValue (http://localhost:8080/vendor.bundle.js:7893:19)
at DashboardComponent.webpackJsonp…/../../../../src/app/dashboard/dashboard.component.ts.DashboardComponent.renderMessage (http://localhost:8080/main.bundle.js:1514:27)October 26, 2017 at 11:52 am Angular 4 setCellValue giving error when called after updateRow commit(true) #96948Hello Sandeep Vedavyas,
I would like to suggest you check your reference, is all there? And also, are they exist in the relevant folder?
Also, I would mention that to use thesetCellValue
method in theupdateRow
callback is strange. Because it has happened this update and this fired this callback.
If you want to change the content of one particular cell you could usecellsrenderer
to set there wanted value (and you could use “if” state there) and it still works after update one cell.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.