Hi all,
I’m trying to build a chat like app and I’m not sure what would be the best approach to implement the ‘received messages’ panel. Basically I need a component that would allow me to incrementally append the received messages and icons (emoticons). Also I need to be able to retrieve the sender’s name/ID when the user click on the sender’s name (to implement then a ‘reply to’ feature). Any suggestions, please, what would be the lighter approach? Of course I don’t want to redraw the whole content every time a new message is received. Thanks!
Redrawing the entire content will actually work well enough for quite a large message volume. However, the right solution is probably to use a single column, headerless ListGrid as the renderer for the messages, with wrapCells:true and fixedRecordHeights:false. The grid only renders the currently visible rows.
I like your suggestion, thanks!