jQuery UI Widgets Forums TreeGrid Edit heirarchial TreeGrid

This topic contains 4 replies, has 3 voices, and was last updated by  Hristo 6 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Edit heirarchial TreeGrid #97418

    libibd
    Participant

    Hi!!

    I am using heirarchial Tree Grid, with hierarchy:
    {
    keyDataField: { name: ‘EmployeeID’ },
    parentDataField: { name: ‘ReportsTo’ }
    }

    I have data field that determines if itโ€™s the lowest level and can be updated/edit.
    Is this possible to enable row edit mode only on lowest level in grid?

    Thanks

    Edit heirarchial TreeGrid #97433

    Hristo
    Participant

    Hello libibd,

    You could use the getRows method and then you should compare edited row (within beginCellEdit event) and just stop editing.
    Another way is to check if there is no such record to report it and this means the item is from the first level.
    Please, take a look at this example:
    https://www.jseditor.io/?key=treegrid-prevent-the-first-level-editing

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Edit heirarchial TreeGrid #97435

    libibd
    Participant

    Hristo,
    Thank you so much!!!!
    ๐Ÿ™‚

    Edit heirarchial TreeGrid #99447

    Arvindarul
    Participant

    Hi
    I am using jqxtreegrid. in jqxtreegrid i have used inputbox for both parentid and childid.
    my question is if edit in childinputbox it should affect parenttextbox..
    for example(if add value in childinputbox the total sum value of childinputbox should be displayed parenttextbox)….is it possible in jqxtreegrid???

    Edit heirarchial TreeGrid #99448

    Hristo
    Participant

    Hello Arvindarul,

    We do not have such example. Also, I would mention that we do not have “inputbox” widget maybe you mean the jqxInput.
    You could bind to the cellValueChanged event of the jqxTreeGrid and when the value is changed resolve this state on the parent level.
    With setCellValue method you could update the upper levels items.
    I would like to mention something here you should decide what will happen when you edit the parent item.
    Could you clarify your issue if the suggestion above does not help you?

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.