jQWidgets Forums
Forum Replies Created
-
Author
-
Hi Peter
Looks like “addRow” method does not support hierarchies. Using checked option, the entire parent (with children) moves but does not support adding to existing parent. If i use use “selection” option, the parent does not move with children. Even if we add children to parent, the children are ignored while adding to target.
I have tried adding event.args.row directly & extract content from event.args.row and add as {‘<content>’}. Both did not work.
Now, i am trying to recreate the whole target grid every time when the user tries to move rows!!
Any suggestions are welcome.
thanks, Radha
Hi Peter
Thanks for the correct pointer. I am able to get the treegrid now. The json parent/child structure is the culprit.
Thanks again.
…..Radha
Hi Peter
I agree with you. I too had that doubt in mind. I will change that.
But i want to clarify one more thing. The error is thrown when treegrid is loading the property “
source: dataAdapter_table"
. I printed the size of thedataAdapter_table
recores before assigning to treegrid. It has records inside it.And the exception details are:
——————————————————————————–
Len of dataAdapter_table: 31
SCRIPT5007: Unable to get property ‘toString’ of undefined or null reference
jqxdatatable.js, line 7 character 29348
——————————————————————————–What i dont understand is, it is neither null nor undefined. It has records in it and we can see the log tells that the length is 31.
BTW, it was internally calling jquery-1.10.2.js which i added in /scripts/ folder. While downloading this file, i saw the below point in release notes.
#13974: Accessing XML attribute named “type” broken on IE 7
I dont know if it has any relavance here!I will make the json structure changes and update.
Thanks, Radha
Hi Peter
That output is before i made the change from “fields” to “children”. I had a doubt on word “fields”, so, i changed to “children” but anyhow that also did not work.
Please ignore that.
Thanks, Radha
July 7, 2014 at 4:26 pm in reply to: Displaying this xml in TreeGrid Displaying this xml in TreeGrid #56846Sorry. The table tags have description also.
<tables>
<table name=”table_1″ description=”This has employee info”>
<field name=”field_1″ type=”char” description=”It is field one under first table” />
<field name=”field_2″ type=”char” description=”It is field two under first table” />
</table>
<table name=”table_2″ description=”This has projects info”>
<field name=”field_3″ type=”char” description=”It is field three under second table” />
<field name=”field_4″ type=”char” description=”It is field four under second table” />
</table>
</tables>The table tag and field tags have data in attributes. Same attribute ‘name’ exists in table and field tags.
…….
RadhaJune 24, 2014 at 5:31 pm in reply to: DragDrop is not working after deleting few rows in Grid DragDrop is not working after deleting few rows in Grid #56309Hi Peter Stoev
Thanks for your reply. Can you share any code snippet or example?
…….
Radha -
AuthorPosts