jQWidgets Forums

jQuery UI Widgets Forums Grid Reload existing grid with Knockout rows & performance

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 5 months ago.

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

  • Glen Edwards
    Participant

    Hi

    I am reloading a grid with with 500-700 rows using knockout and seeing some horrendous performance on the grid when replacing the values in the grid. My first call is fine but replacing the values is taking a long time- the query is coming back from the database in about 1 second but render when replacing the grid is taking about 12 secs. On the first trip I was wondering what the recommendation is for this when using knockout and replacing the entire contents of the table for performance? Any hints or tips?

    Thanks

     

    Thanks


    Peter Stoev
    Keymaster

    Hi Glen,

    Update the observableArray at once, not each value in each array record. If you update with 1 step the observableArray, you will have 1 refresh. If you update each value of each record, you will have 500-700 * the number of columns refreshes.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.