Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #101195

    Hi
    In our grid we are manually updating dataSource.dataSource. Then we are using this.grid.refreshView() method. as per documentation grid should refresh with updated dataSource. But in our case it is not updating grid cells.
    this is how our code is.
    source ={
    dataSource: res,
    dataFields: AllRoomConstants.dataFields
    };
    this.dataSource = new Smart.DataAdapter(this.source);
    method(){
    this.source.dataSource[0][‘columnName’]=”dataupdated”;
    this.grid.refreshView();
    }

    if we are using this.dataSource = new Smart.DataAdapter(this.source) instead of this.grid.refreshView() it will work.
    Thank you for your help and looking forward to your early reply.
    Thanks
    Nikhil Jain

    #101196
    admin
    Keymaster

    Hi Nikhil,
    this.source.dataSource[0][‘columnName’] = “something” is Invalid code. this.source.dataSource[0][‘columnName’]=”dataupdated”; is not updating the data source and does not notify the Grid that the data source is updated.
    You should be using the Grid API for that as show in this example: https://www.htmlelements.com/demos/grid/live-update/
    Best regards,
    Peter Stoev
    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.