Hi,
Originally Posted by
pdcase
How i use a checkbox in grid group command?
No way. I would try to use GridCommand with respective icons - checked and unchecked checkbox. An initial icon you could set up using GridCommand IconCls. Then GroupCommand listener and the prepareToolbar to manage checked/unchecked status.
Originally Posted by
pdcase
How i change the grid group command image or checkbox to before text? See this image:
Unfortunately, it's not supported.
I can suggest to try the following.
1. GroupingView
<ext:GroupingView runat="server" ShowGroupName="false" GroupTextTpl=" " />
2. CommandColumn
<ext:CommandColumn Hidden="true">
<GroupCommands>
<ext:GridCommand Icon="TableRow" CommandName="SelectGroup">
<ToolTip Title="Select" Text="Select all rows of the group" />
</ext:GridCommand>
<ext:CommandText />
<ext:CommandFill />
<ext:GridCommand Text="Menu" StandOut="true">
<Menu>
<Items>
<ext:MenuCommand CommandName="ItemCommand" Text="Item" />
<ext:MenuCommand CommandName="ItemCommand" Text="Item" />
</Items>
</Menu>
</ext:GridCommand>
</GroupCommands>
<PrepareGroupToolbar Fn="prepare" />
</ext:CommandColumn>
3. PrepareGroupToolbar
<PrepareGroupToolbar Fn="prepare" />
<script type="text/javascript">
var prepare = function (grid, toolbar, groupId, records) {
var textItem = toolbar.get(1);
textItem.setText(groupId);
};
</script>