Sep 02, 2013, 3:42 PM
[CLOSED] GridView, RowContextMenu and dynamic update
Hi,
I am trying to dynamically update a grid context menu based on an Ajax request.
All works fine apart from the context menu "flickering" between old-state and new-state since I am activating/deactivating item options.
Initially I thought to be able to cancel the "RowContextMenU" event by returning false, however it looks like the context menu is always shown despite the return value of the hanlder.
So, in order to resolve the issue, I was thinking about this possible workaround:
1) Firstly hide ALL the options, and put a "Loading" fake option when the load takes more than 50 ms
2) Enable all the options that should be enabled after loading the context menu
What do you think about this approach?
Thank you,
Cheers
I am trying to dynamically update a grid context menu based on an Ajax request.
All works fine apart from the context menu "flickering" between old-state and new-state since I am activating/deactivating item options.
Initially I thought to be able to cancel the "RowContextMenU" event by returning false, however it looks like the context menu is always shown despite the return value of the hanlder.
So, in order to resolve the issue, I was thinking about this possible workaround:
1) Firstly hide ALL the options, and put a "Loading" fake option when the load takes more than 50 ms
2) Enable all the options that should be enabled after loading the context menu
What do you think about this approach?
Thank you,
Cheers
Last edited by Daniil; Sep 10, 2013 at 5:23 AM.
Reason: [CLOSED]