jQWidgets Forums
Forum Replies Created
-
Author
-
June 12, 2015 at 7:45 am in reply to: How to map grid datafields to child observable array How to map grid datafields to child observable array #72391
Hi Peter,
Sorry, i’m not sure if I fully understand your suggestion.
I need in the same grid columns from both levels:
FacultyName | AverageGrade| Grade1| Grade2| …where Grade1 would need to be the datafield mapped like : “Students > 0 > Grade” and Grade2 a similar one “Students > 1 > Grade”
Do you suggest something like this?
datafields:[{name:’Student1′, map:”Students>0″},{name:”Grade1″,map:”Student1>Grade”}]
and then use Grade1 datafield to the corresponding column? -> I don’t see any difference between the 2, except that the mapping is split in two.
If not, i would be grateful for a bit more detailed explanation.June 12, 2015 at 6:44 am in reply to: How to map grid datafields to child observable array How to map grid datafields to child observable array #72380Any chance in the near future for an enhancement, which covers the mapping of an observable childarray?
Maybe a workaround besides creating computed properties with every object from the array on the childarrays parent?
data=[{FacultyName:’Abc’, AverageGrade:nr, Students:[{Name:’John Doe’, Grade:4}, {Name:’John Smith’, Grade:5}]},
{FacultyName:’Xyz’, AverageGrade:nr2, Students[]}]where data and Students are observable arrays.
I’ve tried to map like
datafields: [
{ name: ‘Grades’, map: ‘Students> 0 > Grade’ },
]
But it doesn’t work as intended.
I was also wondering if its possible to index dynamically somehow?June 11, 2015 at 6:48 am in reply to: rowdetailsheight dynamic in nested grid ?? rowdetailsheight dynamic in nested grid ?? #72314Hi Peter,
This could be a show stopper for us if we do not find an alternative. Are you sure this will never be implemented in jqwidgets?Is there a way of requesting this enhancement? I am asking because this might affect the decision of using this library. Is this related to some technical constraints?
Thank you and best regards,
MonicaJune 9, 2015 at 2:13 pm in reply to: rowdetailsheight dynamic in nested grid ?? rowdetailsheight dynamic in nested grid ?? #72224Hi Peter,
Do you have any plans to implement this requirement in the near future? ( row details with dynamic height for nested grids)
Best regards,
MonicaHi,
I figure it out. We can change the same array that we provided as a data source, because the grid seems to keep a reference to it.
http://jsfiddle.net/y6k9b94r/9/Br,
MonicaHi Ivailo,
Could you please let me know if this is the proper way of changing the data from the source of a treeGrid( dataAdapter._source.localData() )? From my point of view it seems that I am accessing directly a private member but I didn’t find another way. Is there a method which I could use?
Thank you,
MonicaHi Peter,
I have tried to come up with an example on how we should use treegrid integrated with knockout and unfortunately it is not straightforward to me. Could you please have a look at the code below. Do you have any clue why I get this error:
Uncaught TypeError: Unable to process binding “jqxTreeGrid: function (){return { source:dataAdapter,columns:columns} }”
Message: Cannot read property ‘jqxTreeGrid’ of undefined(i have added also a grid just to check if the library is loaded properly but the treegrid is not displayed at all because of the error above)
http://jsfiddle.net/6qusgoeh/5/Best regards,
MonicaHi Peter,
Do you know by when will we have an example available for TreeGrid and knockout?Is there any documentation where I can have a look?
Thank you,
MonicaWhere can I find an example? I was searching for “TreeGrid” on knockout integration page (http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxknockout/index.htm ) and I couldn’t find it.
Hi Peter,
Could you please be so kind and let me know if there are any plans in the near future to integrate the tree grid with knockout? Do you have a timeline for this? This information would be very helpful for the project that my team is developing. This way we could decide if we can use jqwidgets or we should use another approach.
Best regards,
Monica -
AuthorPosts