WelcomeForumsCommunityWijmo 3Highlight single cell updates with Knockback ?

Wijmo Team Member
jgoodsensi posted on January 28, 2013 at 5:23 pm

I need to update and highlight a single cell at a time in the Wijmo Grid as the update happens. We are streaming live data to be updated in the grid. I am using Knockout bindings that populate the table and update cells, but it seems whenever I change a Knockout value for an element in the table, the entire table redraws, instead of just the single cell being changed. Obviously that won’t work – especially if I’m in the middle of an inline cell edit!

Is there a way to update single cells in a table using Knockout without redrawing the entire table on each update?

Wijmo Team Member
jgoodsensi posted on January 28, 2013 at 7:30 pm

I’m not even sure this is a Knockback thing, I did direct cell updates as the Grid docs on updating a cell – see the section “Updating Data in a Wijgrid” at http://wijmo.com/wiki/index.php/Grid..

It seems the following call will redraw the entire table, and not just a cell that has changed:


$obj.wijgrid(“ensureControl”, true);
Answer
Wijmo Team Member
Ashish Jindal posted on January 30, 2013 at 11:46 am

Hello,

As of now, there is no method which can specifically update a cell. You can set ensureControl property while initializing the wijgrid so that you don’t need to set it on every update but still, it would render the complete table.

I have made an enhancement request to the developer for adding a method which can update a specific cell or cell range. However, I cannot commit as to when/if it would be taken into consideration.

Moreover, if you want to highlight the updated cell then you can set it as active cell using currentCell method of wijgrid.


$(“#element).wijgrid(“currentCell”, 1, 2);

Regards

Answer

Tagged: 

This topic has 2 voices, contains 2 replies, and was last updated by  Ashish Jindal 666 days ago.

You must be logged in to reply to this topic.