Author Topic: collapsible v2.0.2  (Read 4184 times)

SimonH

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 1
    • View Profile
collapsible v2.0.2
« on: November 21, 2013, 07:39:34 pm »
When initialising a new grid with collapsible:false, a javascript error occurs around this block:
 if (key === "collapsible") {
  if (value === true) {this.$collapsible.css("display", "")
 } else {
  this.$collapsible.css("display", "none")
}

as this.$collapsible isn't defined.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: collapsible v2.0.2
« Reply #1 on: November 22, 2013, 01:12:15 am »
collapsible: false can be used during initialization if it's not modified later on.

Example: http://paramquery.com/pro/demos/paging_local

But yes, it throws an error if the collapsible option is changed after grid's initialization with collapsible:false

The workaround in 2.0.2 is to keep collapsible: true during initialization if it needs to be modified later on.

Example: http://paramquery.com/pro/demos/grid_parts



(It's fixed in upcoming version)
« Last Edit: November 22, 2013, 09:24:20 am by paramquery »