Hi,
I am working with an issue to update a row in a ListGrid. One of the columns is a Record Component and I have overriden ListGrid.createRecordComponent() and ListGrid.updateRecordComponent() so that it works properly (the record component and other fields display their correct value) when new rows of data are given to the ListGrid. For some reason though, when I update an attribute/cell of a row, all cells in the row are updated, except for the cell containing the record component. This is because in "createRecordComponent", the passed attribute "colNum" never equals to the colNum that the record component corresponds to. Neither is updateRecordComponent ever called during this update of data.
Therefore, I wonder how we are supposed to update record components when a record in the ListGrid gets new data. Am I perhaps missing something essential?
I realise that perhaps you need more information about my code if you do not quite understand the issue I am having nor what could be the cause of it. If so, just tell me and I will try and post a test case to recreate the behaviour as well as post what versions of SmartGWT and SmartClient I am using.
I am working with an issue to update a row in a ListGrid. One of the columns is a Record Component and I have overriden ListGrid.createRecordComponent() and ListGrid.updateRecordComponent() so that it works properly (the record component and other fields display their correct value) when new rows of data are given to the ListGrid. For some reason though, when I update an attribute/cell of a row, all cells in the row are updated, except for the cell containing the record component. This is because in "createRecordComponent", the passed attribute "colNum" never equals to the colNum that the record component corresponds to. Neither is updateRecordComponent ever called during this update of data.
Therefore, I wonder how we are supposed to update record components when a record in the ListGrid gets new data. Am I perhaps missing something essential?
I realise that perhaps you need more information about my code if you do not quite understand the issue I am having nor what could be the cause of it. If so, just tell me and I will try and post a test case to recreate the behaviour as well as post what versions of SmartGWT and SmartClient I am using.
Comment