Posted 24 October 2022, 10:31 pm EST
Is it possible to call default formatItem handler in a custom formatItem handler?
thegrid.formatItem.addHandler((g, e) => {
…code…
defaultFormatItem(g,e);
…code…
});
Forums Home / Wijmo / General Discussion
Posted by: steen.l.knudsen on 24 October 2022, 10:31 pm EST
Posted 24 October 2022, 10:31 pm EST
Is it possible to call default formatItem handler in a custom formatItem handler?
thegrid.formatItem.addHandler((g, e) => {
…code…
defaultFormatItem(g,e);
…code…
});
Posted 26 October 2022, 5:07 pm EST
Hi,
Sorry, we are unable to replicate your issue on our side, can you provide us some more information about what you want to achieve through formatItem event, because formatItem event is raised when a cell is formatted and created, this event is used to modify the cell’s formatting or data. There are no default handlers to this event except Flexgrid internally use this event to perform some internal tasks after the grid is formatted, which are automatically performed regardless of any handlers attached to this event. So, can you please describe more about your requirement i.e. what functionality you want to implement ?
Regards
Posted 26 October 2022, 7:13 pm EST
Thanks for the response.
I now better understand how to use formatItem .