I need to perform some actions when a user either repositions columns in a datagrid or changes the width of columns.
1. For column repositioning, I am calling a function when a headerShift event occurs. However, this is dispatched also during the initial rendering of the datagrid. I don't know how to detect that the initial rendering is not complete. applicationComplete is triggered before the headerShift during the initial rendering of the datagrid.
2. For width change, I dodn't know what event to listen for.
I got IndexChangedEvent.HEADER_SHIFT handling to do what I want done. Basically, I remove the event handler and add it at the appropriate places. I haven't found awidth change event yet.