UnIdentical items in DataGrid after item selection

UI Components for JSF
Post Reply
User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

05 Aug 2013, 11:07

Hi,

I have one scenario to use/ make UnIdentical items in DataGrid Component.So i thought to make/use colspan and rowSpan for the dataGrid element.But as per old threads colspan only applicable to the datatable component.viewtopic.php?f=3&t=16631 Actual scenario is whenever the user selects particualr item in datagrid component then that component needs to be enlarged with more details.

After selecting an item it needs to expanded(for example 2*2) and remaining items needs to be auto adjusted

http://s1272.photobucket.com/user/jsudh ... 4.png.html


Is to possible to make it with any PF data iteration components?
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

05 Aug 2013, 20:42

sudheer wrote:Is to possible to make it with any PF data iteration components?
Why pf data iteration components? For the paging and lazy loading?

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

05 Aug 2013, 20:44

After selecting an item it needs to expanded(for example 2*2) and remaining items needs to be auto adjusted
So it is not only colspan, but dynamic colspan as well... Should elements flow right and down if something is selected? That would make a very jumpy ui...

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

05 Aug 2013, 21:21

kukeltje wrote:
sudheer wrote:Is to possible to make it with any PF data iteration components?
Why pf data iteration components? For the paging and lazy loading?
Because the items should be in tabular format(or proper order).DataGrid is well suite for that of design .And no need of paging and lazyloading here.
kukeltje wrote:
After selecting an item it needs to expanded(for example 2*2) and remaining items needs to be auto adjusted
So it is not only colspan, but dynamic colspan as well... Should elements flow right and down if something is selected? That would make a very jumpy ui...
Exactly.It is dynamic colspan not just by simple colspan.Yes,selected element should flow right and down(depending on space availablity).It is very jumpy ui.So i thought to integrate other JS libraries like this http://masonry.desandro.com/
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

05 Aug 2013, 21:44

The I think (am almost 100% sure) you need this additional library... I tried with plains divs and sizing/floating/... but to no avail...

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

05 Aug 2013, 21:59

kukeltje wrote:The I think (am almost 100% sure) you need this additional library... I tried with plains divs and sizing/floating/... but to no avail...
Yes,You are right.It needs to be done with other flexible js lib and not just with CSS part
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Jgomes
Posts: 125
Joined: 13 Oct 2011, 11:30

19 Sep 2014, 09:39

that functionality would be great
Primefaces 5.2/5.3
Mojarra 2.1.29
Jboss AS7-WildFly 8

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

22 Sep 2014, 17:16

Please don't reply to old threads like this, it is against the forum rules.

But, check this out: http://www.primefaces.org/showcase-ext/ ... idGrid.jsf
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests