TreeGrid
Firstly, I'd like to say these new controls look great and thank you for supporting LightSwitch.
I'm trying to figure out how to get a tree grid to show, but can't find an easy way from the screen designer. I've also tried putting on a normal grid, then changing the generated javascipt from ejGrid to ejTreeGrid and defining the parent as per documentation for the pure javascript control. The grid still renders, but the parent field is returned as an "object" and there is no tree structure.
The table I'm testing it with is self referential e.g.
Tasks
ID, Name, Status, ParentTask.
where ParentTask relates to back to the task table.
Thanks,
John
Hi John,
Thank you for using Syncfusion products.
Currently we have not published LightSwitch HTML support for TreeGrid control in official manner to render TreeGrid control from the screen designer. Hence we have logged this as Feature Request. This feature can be tracked through our Feature Management.
https://www.syncfusion.com/support/directtrac/features/JS-7394
It will be implemented in any of our upcoming main release and we will update you once this feature has got implemented.
Now as per your requirement we have prepared a sample for your reference to render TreeGrid control from screen designer in LightSwitch HTML platform. Please find the sample in the attachment.
Please let us know if you require further assistance on this.
Regards,
John. R
Attachment: TreeGrid_LightSwitch_183abd0c.zip
Hi John,
We have created a new incident (131872) on behalf of you related to this forum. We suggest you to follow up the incident for further reference using your direct trac account.
Please let us know if you have any concerns.
Regards,
John. R
Hi John,
We would like to let you know that we can refresh the TreeGrid Control after saved or modified the content using refresh() public method in Treegrid. Please find the following code snippet for details.
<input type="button" id="refresh" value="refresh" /> <script type="text/javascript"> $("#TreeGridContainer").ejTreeGrid({ //… }); $("#refresh").click(function(){ treegridObj = $("#TreeGridContainer").data("ejTreeGrid"); treegridObj.refresh(); }); </script> |
We have also prepared a sample based on this and please find the sample location below.
Sample: https://www.syncfusion.com/downloads/support/forum/117557/TreeGridRefresh729371156.zip
Please let us know if you need more information on this.
Regards,
Mahalakshmi K.
- 4 Replies
- 4 Participants
-
JB John Burgin
- Nov 7, 2014 06:17 AM UTC
- May 5, 2015 05:13 AM UTC