PDA

View Full Version : What is the best way to place certain rows of a grid into a section?



mitts2010
14 Aug 2014, 7:28 AM
I have a store of messages that have to, from, content, date/time. I have a gridpanel that displays each message in the correct order. That works fine, but I'd like the following.

I would like to style it like a phones text message application. For every 'chunk' of messages that are sequential and from the same user I would like to place them into a div so I can style the background a different color, and for that chunk I would like the from user to display only above the first message and not for any subsequent messages until the next from person starts and a new chunk starts.

Where would I impliment the logic for this? Thanks!

scottmartin
15 Aug 2014, 1:58 PM
Might be easier to help with some sort of mock up drawing.
Rowbody (rowexpander), templates, grouping and ordering comes to mind, but I suspect you want a bit more visually.