Hi everybody,
I'm a new member, and I've just experimented these days with this platform and must tell you, so far it seems, at least, very interesting.
Now, what I was looking for (even on this forum) and I couldn't find it: it was the infamous treeview widget on the control palette. Am I missing something or it is not implemented yet ? Is there any other possibility to present a tree structure on a form ?
What I need is a static and dynamic treeview control which offers maintenance (create, update, delete nodes) features with minimal coding.
In case of dynamic treeview the underlying data source would be a table with a parent - child field pair.
Thanks!
Treeview widget (control)
Moderators: Jon, Steve, Ian, Dave
-
- Ebase Staff
- Posts: 89
- Joined: Mon Sep 10, 2007 11:48 am
Hi Zoltan,
You're right, we don't have an out-of-the-box control for this functionality. What we can do though is easily plug in jQuery controls to implement this sort of thing, e.g. the http://jquery.bassistance.de/treeview/demo/ plugin.
We've used this on projects before - if it helps I'll find an example of how to set it up and make it available to the forum? Think we have an example using MySQL for the parent-child table, so we'll provide the SQL processing too for generating the hierarchy of <LI> tags that the jQuery plugin requires.
Will aim to get an example posted asap.
Regards,
Dave
You're right, we don't have an out-of-the-box control for this functionality. What we can do though is easily plug in jQuery controls to implement this sort of thing, e.g. the http://jquery.bassistance.de/treeview/demo/ plugin.
We've used this on projects before - if it helps I'll find an example of how to set it up and make it available to the forum? Think we have an example using MySQL for the parent-child table, so we'll provide the SQL processing too for generating the hierarchy of <LI> tags that the jQuery plugin requires.
Will aim to get an example posted asap.
Regards,
Dave
0 x
-
- Ebase User
- Posts: 5
- Joined: Sun Mar 03, 2013 2:47 pm
-
- Ebase Staff
- Posts: 89
- Joined: Mon Sep 10, 2007 11:48 am
Hi zoltan - just to say we haven't forgotten about this. Delay is because we decided to create an example that takes database differences out of the equation - otherwise the SQL to generate the hierarchy from the parent-child table will vary depending on the DB vendor.
Better, we thought, to simply read in the parent-child data via a simple select and do the recursion (tree walk) in server-side javascript. Is done now so will be publishing a sample shortly.
Regards,
Dave
Better, we thought, to simply read in the parent-child data via a simple select and do the recursion (tree walk) in server-side javascript. Is done now so will be publishing a sample shortly.
Regards,
Dave
0 x
-
- Ebase User
- Posts: 5
- Joined: Sun Mar 03, 2013 2:47 pm
-
- Ebase Staff
- Posts: 89
- Joined: Mon Sep 10, 2007 11:48 am
Hi Zoltan - sorry for the delay. You can download the treeview widget sample from here:
http://www.ebaseftp.com/download/sample ... eeview.zip
Hopefully it's pretty clear how it works but any questions please feel free.
Sample courtesy of Ian Bramford, btw.
Regards,
Dave
http://www.ebaseftp.com/download/sample ... eeview.zip
Hopefully it's pretty clear how it works but any questions please feel free.
Sample courtesy of Ian Bramford, btw.
Regards,
Dave
Last edited by Dave on Thu Apr 11, 2013 4:42 pm, edited 1 time in total.
0 x
-
- Ebase User
- Posts: 5
- Joined: Sun Mar 03, 2013 2:47 pm
Who is online
Users browsing this forum: No registered users and 5 guests