how can i use toogle button in gridpanel column?
Thanks in advance
Printable View
how can i use toogle button in gridpanel column?
Thanks in advance
Hi @legaldiscovery,
You can use a ComponentColumn.
However, it is not enough. A toggle state will be erased if refresh the GridPanel (for example, it happens after sorting). So, you might need to maintain the Buttons' state. For that you can define an individual ModelField. Record a Button's state in that ModelField when that Button is being clicked. You can restore that state in a ComponentColumn's Bind listener. It should fire on each refresh of the GridPanel.Code:<ext:ComponentColumn runat="server">
<Component>
<ext:Button runat="server" EnableToggle="true" Text="Toggle" />
</Component>
</ext:ComponentColumn>