jQuery UI Widgets Forums TreeGrid Key Datafield Heirarchy

Tagged: ,

This topic contains 2 replies, has 3 voices, and was last updated by  soni199089 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Key Datafield Heirarchy #133373

    Jwhitbread
    Participant

    Hi,

    I’m creating a tree grid with a heirarchy keys like so:
    hierarchy:
    {
    keyDataField: {name: ‘part_id’},
    parentDataField: {name: ‘linked_to_id’}
    }
    I’ve come across an issue where if a row has the same part_id as another row if I select one row it appears to select both?
    Is there a work around where it doesn’t use the part id as an index while keeping the heirarchy?

    Does the tree grid not use row indexes like jqxGrid?

    Thanks,
    Jamie.

    Key Datafield Heirarchy #133379

    ivanpeevski
    Participant

    Hi Jamie,

    The “keyDataField” must always be a unique value for each row.
    As a workaround, you can use the “beforeLoadComplete” callback function of the source to check for identical part_id values and modify them.

    Best Regards,
    Ivan Peevski
    jQWidgets Support
    http://www.jqwidgets.com

    Key Datafield Heirarchy #133939

    soni199089
    Participant

    thanks

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

You must be logged in to reply to this topic.