Is Wj-Menu working in Angualr 5 version?

Posted by: ramu on 3 September 2019, 12:24 am EST

  • Posted 3 September 2019, 12:24 am EST

    Hi,

    I have used Wijmo 5.20171.282 version with Angular 5.2.0 version.

    This same source code working in Angular 2 version but Angular 5 it's breaking. Is any one faced like this?

    Please refer screen shot

    In Angular 5:




    in Angular 2:





    In HTML:

    <wj-tree-view #treeViewFormContent id="treeViewFormContent"
    [ngClass]="useCustomCss?'custom-tree':''"
    [itemsSource]="pageContentItems"
    [displayMemberPath]="'FormContentHeading'"
    [childItemsPath]="'ChildFormContentItems'"
    [isContentHtml]="true"
    [autoCollapse]="true"
    [expandOnClick]="true" (itemClicked)="treeview_ItemClicked(treeViewFormContent)" (formatItem)="treeview_FormatItem(treeViewFormContent, $event)" (loadedItems)="treeview_LoadedItems(treeViewFormContent)" (contextmenu)="showContextMenu($event,treeViewFormContent)">
    </wj-tree-view>
    <wj-menu #theMenu (itemClicked)="updateDisplayOrder(theMenu)" style="display: none">
    <wj-menu-item value="up" *ngIf="!firstNode">Move Up <i class="fa fa-arrow-circle-up" style="color:#768692"></i></wj-menu-item>
    <wj-menu-item value="down" *ngIf="!lastNode">Move Down <i class="fa fa-arrow-circle-down" style="color:#768692"></i></wj-menu-item>
    </wj-menu>


    In TS:

    showContextMenu(e: any, treeView: wjcNav.TreeView) {
    e.preventDefault();
    ...
    ...
    this.theMenu.show(e);
    }


    Thanks,
    Ramu
  • Marked as Answer

    Replied 3 September 2019, 10:06 pm EST

    Hi,

    The reason that the code is not working is that the provided version of wijmo was released in March'17 and angular 5 was release in Nov'17. Therefore the provided wijmo version is not compatible with angular 5. The compatibility with angular 5 was added in the 17v2 version of wijmo. So, I would suggest you upgrade your wijmo version.
    Let us know if you face any issues while upgrading.

    Regards,
    Ashwin
  • Replied 15 September 2019, 9:18 pm EST

    Hi Ashwin,

    How to download 17V2 specific wijmo version?

    I tried to download use given below URLs but its provide only latest version files.

    https://www.grapecity.com/controls/wijmo/whats-new-history


    Thanks,
    Ramu
  • Replied 16 September 2019, 4:48 pm EST

    Hi Ramu,

    Please login into your account and go to the link below:

    https://www.grapecity.com/my-account/my-licenses#licenses

    In this section, all your licenses will be shown and corresponding to each license, there will be a link to download the product that comes with that license including the available version of the product.
    So, the wijmo 17v2 version will be shown in this list.

    ~regards
Need extra support?

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

Learn More

Forum Channels