OnGetCellProp works well on the first page of a TTIWDBAdvWebGrid, but not on subsequent pages or if the grid is sorted, whether sync or async. It appears to be used in the initial RenderString, but not in AsyncUpdateAllCells. Is there any way to trigger OnGetCellProp after the initial display of page 1?
This is by design. Async cell updates will update the cell content (text) only, not cell properties, and therefore, during async updates, this event is not triggered. If you want to change cell properties, please perform a page refresh.
This is an unfortunate design element. Two of the best features of the TTIWDBAdvWebGrid are the asynchronous paging and sorting, so it is a pity that cell property checks are not part of these processes.
As the grid concerned is not editable, I have got around the problem by using OnGetText on the relevant field. If the field needs highlighting, I put <B><font color = "red"> before the text and </B> after it, to change its font style to bold and colour to red. However I feel this is a less than ideal solution.
The reason is optimizing the amount of data that goes back & forth in async mode + the amount of data that Javascript needs to process. All this to keep the async update as fast as possible.