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
make indent for some of table row
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 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
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