1. #1
    Sencha User emredagli's Avatar
    Join Date
    Jun 2008
    Posts
    301
    Vote Rating
    2
    emredagli is on a distinguished road

      0  

    Default Select Group Header

    Select Group Header


    Hii,
    I looked at firebug, When row is selected x-grid3-row-selected class is used.
    But there is no class like x-grid-group-selected.

    Is there a way to select group Header while it is expanded or collapsed?
    (When group is selected other selection must be cleared)

    Thanks for your advance...

  2. #2
    Sencha User emredagli's Avatar
    Join Date
    Jun 2008
    Posts
    301
    Vote Rating
    2
    emredagli is on a distinguished road

      0  

    Default


    Any suggestions?

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    97
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    SelectionModel is based on selecting rows and groups aren't rows, so this isn't going to be easy.

    Alternatively you could use a TreeGrid. In the TreeGrid the groups are also records, so you can select them.

  4. #4
    Sencha User emredagli's Avatar
    Join Date
    Jun 2008
    Posts
    301
    Vote Rating
    2
    emredagli is on a distinguished road

      0  

    Default


    Dear Condor thanks for your reply.

    It is very interesting extension.
    But I made a lot of staff in normal grid (grid summary, group summary).
    I am sure I will have errors while combining TreeGrid with grid summary and espacially group summary.

    I give up only one selection. I mean I plan to put different backgound color (different than normal selection) for groupheader selection and user can also select row.

    Actually, I want when user click a row, its group header background color will changed. If user click another row, previous selection's group header backgorund becomes white.

    Thanks a lot.

  5. #5
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    97
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Yes, this can be done, but you will have to build it all yourself.

Thread Participants: 1