Issue with WjFlexGridDetail.set [as rowHasDetail] in Nested Grid Angular 8

Posted by: r.kondaru on 15 October 2020, 11:36 pm EST

  • Posted 15 October 2020, 11:36 pm EST

    Hi Team,

    I have implemented the nested grid by using this( and got the below error, please help me to resolve this.

    error.service.ts:18 an error occurred here broo Error: ** Assertion failed in Wijmo: Function expected. Error
    at assert (vendor.js:214267)
    at asFunction (vendor.js:214267)
    at WjFlexGridDetail.set [as rowHasDetail] (vendor.js:213898)
    at updateProp (vendor.js:73059)
    at checkAndUpdateDirectiveInline (vendor.js:72826)
    at checkAndUpdateNodeInline (vendor.js:81251)
    at checkAndUpdateNode (vendor.js:81213)
    at debugCheckAndUpdateNode (vendor.js:81847)
    at debugCheckDirectivesFn (vendor.js:81807)
    at Object.eval [as updateDirectives] (ng:///ToolsModule/BatchUserMaintenanceComponent.ngfactory.js:632)
    at viewWrappedDebugError (vendor.js:71379)
    at callWithDebugContext (vendor.js:82075)
    at Object.debugCheckAndUpdateView [as checkAndUpdateView] (vendor.js:81767)
    at ViewRef_.push../node_modules/@angular/core/fesm5/core.js.ViewRef_.detectChanges (vendor.js:72442)
    at ApplicationRef.push../node_modules/@angular/core/fesm5/core.js.ApplicationRef.tick (vendor.js:78865)
    at vendor.js:78754
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:18532)
    at Object.onInvoke (vendor.js:78012)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:18531)
    at Zone.push../node_modules/zone.js/dist/ (polyfills.js:18291)

  • Replied 18 October 2020, 6:30 pm EST

    Hi Raman,

    You need to provide a function to the rowHasDetail property. The function will take the current row as the argument and will return a boolean value based on whether the row has detail or not.

    In the demo link, the evenRowHasDetail variable checks whether the rowHasDetail should have a value and then assigns the rowHasDetailFn as the value of rowHasDetail.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels