Forum
22:39
11/05/2009
Hi Tony,
I have been trying to move my project to jqgrid (from EJSTreeGrid) and seem to have hit a brick wall in the migration. I have the following queries. Any help is highly appreciated. Thank you.
1.Can we provide following XML File as an input to the jqgrid TreeGrid? How should we specify it in TreeReader or XMLReader?
"I" is the row element and its attributes are used as Node values "B","F".
The following XML format is currently being used with EJSTreeGrid and we are trying to move to jqGrid.
<?xml version="1.0" encoding="UTF-8"?>
<Grid>
<Body>
<B>
<I Def="se" A="2" B="Default ABC" CButton="Img" CButtonText="/icons/format/t_edit2_16.gif" CWidthPad="18" id="1" F="Default Location" EButton="Img" EButtonText="/icons/format/t_delete2_16.gif" EWidthPad="18">
<I Def="sr" A="3" B="Default DEF" CButton="Img" CButtonText="/icons/format/t_edit2_16.gif" CWidthPad="18" id="3" EButton="Img" EButtonText="/icons/format/t_delete2_16.gif" EWidthPad="18" F="Default GHI"/>
</I>
</B>
</Body>
</Grid>
2. Are there any examples available for 'cell editing' in the TreeGrid?
3. I read in the documentation that addRowData() is not available in the TreeGrid. I have a requirement to add and delete rows from the TreeGrid. Is this possible at all?
Regards,
dvatsal
14:52
Moderators
30/10/2007
Hello,
Thanks for using jqGrid.
1. As of the documentation jqGrid does not support attributes in xml (except for the id). Maybe you should switch to xml whitout attributes.
2. There is no problem to use cellEdit with treeGrid except for the column that is set as expanded. Also this point me to correct this bug.
3. We already have dellTreeNode method. Adding nodes currently can be a little tricky, since there is no method in jqGrid to do this. In my project I use form editing to add a node with mode - reloadAfterSubmit:true. This way the node is added to the server and reloading the tree put the thingas in right pllace.
Also I hope to develop addTreeNode method soon. The problem is in nested set model where a lot of calculatins should be done.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
37 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66