jQuery UI Widgets › Forums › TreeGrid › Edit heirarchial TreeGrid
Tagged: Edit heirarchial treegrid, javascript treegrid, jquery treegrid, jqwidgets treegrid, treegrid
This topic contains 4 replies, has 3 voices, and was last updated by Hristo 7 years, 7 months ago.
-
Author
-
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
Hello libibd,
You could use the
getRowsmethod and then you should compare edited row (withinbeginCellEditevent) 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-editingBest Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHristo,
Thank you so much!!!!
๐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???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 thecellValueChangedevent of the jqxTreeGrid and when the value is changed resolve this state on the parent level.
WithsetCellValuemethod 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 HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.