wj-flex-grid-cell-template not working

Posted by: mbrennan376 on 29 September 2017, 8:06 pm EST

  • Posted 29 September 2017, 8:06 pm EST

    Hi, I must be missing something. I have a column template like this:

    <wj-flex-grid-column header="Total"
    binding="Qty"
    is-read-only="true"
    width="80">
    <wj-flex-grid-cell-template cell-type="Cell">
    {‚Äč{$item.Qty}}
    </wj-flex-grid-cell-template>

    that when it renders just shows $item.Qty

    I also tried $row, etc. it doesn't seem like the template is substituting for any $ tokens. The grid is working fine otherwise. I have gone through all the examples, seems like everything I have done matched the examples. One difference is I ma using angular 1.5 components as opposed to just controllers and $scope.

    But this is working fine (It hides when the variable is false):

    <wj-flex-grid-column header="Margin"
    binding="ProfitPercent"
    width="80"
    visible="{{$ctrl.parent.jobItem.IsInstall}}">
    </wj-flex-grid-column>

    What am I missing?







  • Replied 30 September 2017, 6:56 am EST

    One other note - this works fine as well:

    <wj-flex-grid-cell-template cell-type="Cell">
    <button class="btn btn-default"
    ng-click="$ctrl.test($item)">Delete</button>
    </wj-flex-grid-cell-template>

    it generates a button that passes the current row object correctly to my controller

    And this works

    <wj-flex-grid-cell-template cell-type="Cell">
    <span ng-bind="$ctrl.GetTotal($item)"></span>
    </wj-flex-grid-cell-template>
  • Replied 4 October 2017, 4:28 am EST

    Hi Michael,
    We are sorry for the late reply.
    The problem seems with the angular evaluation expression which causes due to copying from the site displaying code snippet.
    Please try to rewrite the code snippet using keyboard not by pasting.

    Please refer to the demo sample for the same.
    http://demos.wijmo.com/5/Angular/CellTemplateIntro/CellTemplateIntro/

    If the issue persists, please let me know with sample depicting your issue.

    Thanks,
    Manish KumarGupta
Need extra support?

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

Learn More

Forum Channels