Title: cannot updateRow with frozen columns [Solved] Post by: devnull on February 02, 2015, 03:41:47 AM I have a datagrid with both columns[] and frozenColumns[].
When I do an updateRow(), the frozen columns are updated, but the normal columns are not. Title: Re: cannot updateRow with frozen columns Post by: stworthy on February 02, 2015, 03:46:30 AM The 'updateRow' method can update all the column fields, please check your code carefully to see if the new field values are set correctly.
Code: $('#dg').datagrid('updateRow',{ Title: Re: cannot updateRow with frozen columns Post by: devnull on February 02, 2015, 03:53:57 AM Thanks for the quick reply, I was debugging it when you replied and just discovered the cause.
The field has a formatter function and it appears to be this that is preventing the field from being updated for some reason. The formatter function works fine on the initial load, but won't work on a rowupade, I am investigating now... Title: Re: cannot updateRow with frozen columns Post by: stworthy on February 02, 2015, 04:15:37 AM The 'formatter' function also works fine after calling 'updateRow' method. Please refer to this example http://jsfiddle.net/7taa4twv/1/
Title: Re: cannot updateRow with frozen columns Post by: devnull on February 02, 2015, 04:28:26 AM Thanks, yes I can see that now.
My formatter added an unordered list and listitems so that I can display multiple rows in a single cell. My apologies, I should have tested more thoroughly before posting. I will mark the post as solved, thanks again. |