make indent for some of table row

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

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

make indent for some of table row

#1

Postby xren » Wed Jul 24, 2013 3:52 pm

Hi,

I have a table displayed. I like to have some of them indent and some of them not. Can this be done?

Thanks,
Xiaoli
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Wed Jul 24, 2013 4:44 pm

Xiaoli,

If you are using a Table Control, then the data is presented using an HTML <table> which is a grid structure, so it's pretty limited on what you can do. The best you can achieve is to change the alignment of the columns from left to right and that might give you the look of indentation, though you are not really indenting the whole row.

Other than that, you would need to use a Repeater Control which gives you much more flexibility. Then you can set up each row to contain a Panel Control with your content inside this, then dynamically indent it by setting the left margin. The trouble with this is that it's hard to keep the vertical alignment - to do this you need to set explicit widths for each of the columns.

If this doesn't answer your question, can you add an example of what you want it to look like - you can email this to support@ebasetech.com.

Regards
Jon
0 x


Who is online

Users browsing this forum: No registered users and 21 guests