Author Topic: v5.0 shows issue with rowExpand  (Read 3159 times)

jjestrellaa

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 15
    • View Profile
v5.0 shows issue with rowExpand
« on: May 03, 2018, 01:30:21 am »
Background:
- Grid that was detail view
- If querystring is passed then a filter is applied
- In the Load event, the first row is then expanded by using rowExpand({rowIndx:0})

We are getting this error:

"0x800a138f - JavaScript runtime error: Unable to set property 'pq_ht' of undefined or null reference"

And this is what the debugger highlights:
"            initRowHtArrDetailSuper: function(t) {
                var e, n = this.rowhtArr,
                    r = this.data;
                t.forEach(function(t) {
                    e = t[0],n[e] = r[e].pq_ht = n[e] + t[1]
                }), this.setTopArr(), this.assignTblDims()
            },
"

I tried setting the rowData.pq_ht = 30 but that didn't do anything.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: v5.0 shows issue with rowExpand
« Reply #1 on: May 03, 2018, 08:08:12 am »
Please use setTimeout as workaround to avoid the error.

Code: [Select]
load: function(){
var grid = this;
setTimeout(function(){
grid.rowExpand({rowIndx:0});
})
},

jjestrellaa

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: v5.0 shows issue with rowExpand
« Reply #2 on: May 03, 2018, 06:57:03 pm »
Thanks.

That worked.