Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Can cfgrid groupfield attribute be collapsed by default?

Community Beginner ,
Jul 01, 2010 Jul 01, 2010

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.

1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 02, 2010 Jul 02, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 15, 2010 Jul 15, 2010

Hi,

i have the same problem... have you fix your problem?

cu

hannes

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 16, 2010 Jul 16, 2010

I haven't cracked the collapsed issue yet still working on it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 22, 2010 Aug 22, 2010

Any luck with this.  I need this as well.   Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 23, 2010 Aug 23, 2010
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources