Copy link to clipboard
Copied
I am trying to use cfgrid to display knowledge base articles. Which it seems like it would be great for if I could get over a couple of hurdles or eliminate it as a possibility if I can't.
I am using the groupfield attribute to group the results by the "question", which is awesome, but by default all of the group headers (questions) are expanded by default (showing a - icon) so they show the answer and the question. Does anyone know of a way to have them be collapsed by default so that a user can expand them to see the question answers?
One other issue is that the groupfield also needs to be a cfgridcolumn, that doesn't make sense since when it is expanded you see the question twice (as the grouping header and as a column next to the answer). Does anyone know how to make that cfgridcolumn that mirrors the groupfield not show up?
If none of that is possible or requires extensive css editing I would understand.
Any help would be great thanks a lot.
Copy link to clipboard
Copied
I found this to add to my stylesheet to fix the wrapping issue.
.x-grid3-cell-inner, .x-grid3-hd-inner{ overflow:hidden; -o-text-overflow: ellipsis; text-overflow: ellipsis; padding:3px 3px 3px 5px; white-space: normal; }
I changed the white-space: from nowrap to normal.
Now if I could get the groupfield to be collapsed by default I would be solid.
Copy link to clipboard
Copied
Hi,
i have the same problem... have you fix your problem?
cu
hannes
Copy link to clipboard
Copied
I haven't cracked the collapsed issue yet still working on it.
Copy link to clipboard
Copied
Any luck with this. I need this as well. Thanks
Copy link to clipboard
Copied
No luck on getting the grid to be collapsed by default. I moved on to using a jquery solution. Cfgrid just isn't fleshed out enough as far as I can tell.