Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






XML Format and Cell Editing with Treegrid

No Tags
UserPost

22:39
11/05/2009


dvatsal

India

Member

posts 9

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
13/05/2009


tony

Sofia, Bulgaria

Moderator

posts 6995

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

04:34
15/05/2009


dvatsal

India

Member

posts 9

Hi Tony,

Thanks for the same.

Will come back to you if there is something!

Cheers,
dVatsal

No Tags

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

157


Currently Online:

24 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 9576

Posts: 28741

Membership:

There are 10038 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1157

markw65 – 179

kobruleht – 144

phicarre – 126

YamilBracho – 124

Renso – 118

Administrators: admin (56 Posts)

Moderators: tony (6995 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information