Aug 10, 2010, 8:43 AM
[CLOSED] [1.0] CommandColumn's PrepareToolbar listener does not fire if no no command is specified
I need to add all Items to a CommandColumn dynamically. So, I am listening to the Column's PrepareToolbar listener, and adding the desired items there.
As all items are dynamic, the <Commands> collection is initially empty when the grid renders. In this case, the PrepareToolbar event does not fire.
I need to add atleast one item in <Commands> collection to make the event to fire. My current workaround is to add a <CommandSpacer> with Width="1px" which makes the event to fire. However, it would be useful if the event fires with an empty collection also.
As all items are dynamic, the <Commands> collection is initially empty when the grid renders. In this case, the PrepareToolbar event does not fire.
I need to add atleast one item in <Commands> collection to make the event to fire. My current workaround is to add a <CommandSpacer> with Width="1px" which makes the event to fire. However, it would be useful if the event fires with an empty collection also.