Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

GridView: grouping some cols #5168

Closed
rochejul opened this issue Oct 15, 2012 · 4 comments
Closed

GridView: grouping some cols #5168

rochejul opened this issue Oct 15, 2012 · 4 comments

Comments

@rochejul
Copy link

Hi,

Can we have a possibility to group columns into the Gridview ? Maybe we can put a specific class on a column to set how many colums it could regroup.

I have already done some stuff about this on a project. We can have for example:

.ui-grid-c .ui-colspan-b {
width: 75%
}

Where for a grid of 3 columns, one can represent two of these, or

.ui-grid-d .ui-colspan-b {
width: 40%
}

.ui-grid-d .ui-colspan-c {
width: 60%
}

Where for a grid of 4 columns, one can represent two or three of these.

What do you think ?

Cheers

Julien Roche

@toddparker
Copy link
Contributor

@rochejul - Do you have sample code or a demo page illustrating this idea? Seems interesting and we're looking at grids now anyway.

@rochejul
Copy link
Author

Sure,

Here two examples:


<div class="ui-grid-c">
    <div class="ui-block-a">
        Col 1
    </div>
    <div class="ui-block-b ui-colspan-b">
        Col 2 that regroup three columns
    </div>
</div>

And


<div class="ui-grid-d">
    <div class="ui-block-a">
        Col 1
    </div>
    <div class="ui-block-b ui-colspan-c">
        Col 2 that regroup three columns
    </div>
    <div class="ui-block-c">
        Col 3
    </div>
</div>

Cheers

@mrextreme
Copy link

Also, see this and the following posts.

#4776 (comment)

@toddparker
Copy link
Contributor

We've discussed this and decided to not include this in the framework. It's easy enough to write simple css to handle colspans or just write different grid types with unique ratios.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants