Treeview widget (control)

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

zoltan
Ebase User
Posts: 5
Joined: Sun Mar 03, 2013 2:47 pm

Treeview widget (control)

#1

Postby zoltan » Mon Mar 04, 2013 2:34 pm

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!
0 x

Dave
Ebase Staff
Posts: 89
Joined: Mon Sep 10, 2007 11:48 am

#2

Postby Dave » Tue Mar 05, 2013 11:13 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
0 x

zoltan
Ebase User
Posts: 5
Joined: Sun Mar 03, 2013 2:47 pm

#3

Postby zoltan » Tue Mar 05, 2013 12:05 pm

Hi Dave,

That would be helpful, thanks in advance.

All the best,
Zoltan
0 x

Dave
Ebase Staff
Posts: 89
Joined: Mon Sep 10, 2007 11:48 am

#4

Postby Dave » Wed Mar 20, 2013 10:45 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
0 x

zoltan
Ebase User
Posts: 5
Joined: Sun Mar 03, 2013 2:47 pm

#5

Postby zoltan » Fri Mar 22, 2013 8:22 am

Hi Dave,

Thanks for keeping me up to date with the progress. I'm waiting patiently :)

Regards,
Zoltan
0 x

Dave
Ebase Staff
Posts: 89
Joined: Mon Sep 10, 2007 11:48 am

#6

Postby Dave » Sun Apr 07, 2013 7:14 pm

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
Last edited by Dave on Thu Apr 11, 2013 4:42 pm, edited 1 time in total.
0 x

zoltan
Ebase User
Posts: 5
Joined: Sun Mar 03, 2013 2:47 pm

#7

Postby zoltan » Mon Apr 08, 2013 7:20 am

Hi Dave/Ebase team,

Thanks a lot for your help. It is more than I expected.
I will look at the sample more thoroughly, but so far it looks very helpful.

All the best!
Zoltan
0 x


Who is online

Users browsing this forum: No registered users and 17 guests