[CLOSED] grid command group before text

  1. #1

    [CLOSED] grid command group before text

    Attached Thumbnails Click image for larger version. 

Name:	sample.jpg 
Views:	153 
Size:	70.9 KB 
ID:	4364  
    Last edited by Daniil; Jun 20, 2012 at 10:56 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Quote Originally Posted by pdcase View Post
    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.

    Quote Originally Posted by pdcase View Post
    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="&nbsp;" />
    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>

Similar Threads

  1. Checkbox with group command.
    By hendry_agust in forum 1.x Help
    Replies: 1
    Last Post: Jun 13, 2012, 9:28 PM
  2. Replies: 1
    Last Post: May 10, 2012, 9:50 PM
  3. [CLOSED] Problem with focus and command in grid group
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 07, 2012, 11:26 AM
  4. get group command toolbar
    By wp_joju in forum 1.x Help
    Replies: 1
    Last Post: Dec 14, 2010, 6:33 AM
  5. Checkbox in Group Command
    By hendry_agust in forum 1.x Help
    Replies: 0
    Last Post: May 04, 2010, 11:06 PM

Posting Permissions