Author Topic: Problem doing my own expand/collapse  (Read 2015 times)

WynApse

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 17
    • View Profile
Problem doing my own expand/collapse
« on: October 30, 2019, 04:51:42 am »
Since the expand/collapse issue I reported was moved to the 'bug fix' area, I decided to try to do my own expand/collapse by setting a grid as collapsible: {on: false} and then have some sort of indicator like in Outlook such as:

> Selected Value --- for when it is collapsed, and eventually do my own icon for the >
V Selected Value -- for when it is expanded, and likewise for the icon

So we figured out I could not collapse if collapsible: {on: false} was set, so inside the function to expand/collapse, I set it to {on: true}

Then I collapse and that works. But then in order to get rid of the blue expand/collapse icon that isn't working the way we want, I set it to {on: false} again, and nothing happens -- so I tried a refresh, and that doesn't do anything either.

I'm looking for some ideas here to make this work...

and here's a jsfiddle that demonstrates what I'm attempting:  https://jsfiddle.net/1mrLdwq5/

Thanks!

- Dave

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Problem doing my own expand/collapse
« Reply #1 on: October 30, 2019, 09:43:44 pm »
Dave

Your way of doing it depends upon same collapse / expand methods which grid uses internally. Hence sorry it's not going to make any difference or fix.