jQWidgets Forums

jQuery UI Widgets Forums TreeGrid addrow in treegrid

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  admin 5 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • addrow in treegrid #106398

    korea
    Participant

    Hello,

    There is a problem with addrow in treegrid.
    When data id is a number, addrow works normally.
    However, if id is string, the first addrow succeeds, but since the second one, uid is duplicated, so the second record can not be selected.

    fail (id is string)

    success (id is number)

    Best Regards,
    eom

    addrow in treegrid #106400

    admin
    Keymaster

    Hi korea,

    The id should be unique i.e when you call the method, make sure to add unique ID. Ex:

    ` $(“#treeGrid”).jqxTreeGrid(‘addRow’, Math.random(10000), {
    FirstName: “Name”,
    LastName: “Last Name”
    }, ‘first’)`

    Regards,
    Peter Stoev

    jQWidgets TEam
    https://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.