Skip to main content
Participant
July 1, 2010
Question

Can cfgrid groupfield attribute be collapsed by default?

  • July 1, 2010
  • 3 replies
  • 1158 views

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.

    This topic has been closed for replies.

    3 replies

    Participating Frequently
    August 22, 2010

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

    Participant
    August 23, 2010

    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.

    July 16, 2010

    Hi,

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

    cu

    hannes

    Participant
    July 16, 2010

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

    Participant
    July 2, 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.