Posted 10 May 2019, 2:06 am EST
Hi,
Is there any way to bind to a function, so that the function’s return value is shown? Currently it’ll just show the function definition in the cell. I was hoping there was some kind of event that I could hook into which would allow me to supply the grid with the data, thus allowing me to call the function and supply that to the grid. I realise that there’s an itemFormatter event, but that doesnt really do what I want - I added code to extract the value from the function and set the innerHTML, but that means all formatting that the grid used to apply is lost (checkboxes are now shown as “true” or “false”, and currencies just show the actual number. I remember back in my VB 3 days I used a grid control that had an “unbound” mode, where an event would fire for each cell. Kind of what something like that I guess. Obviously I could just create a brand new object with all the properties set using the source object, but I wanted to avoid that.