Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting look of a desktop app on the web, help would be very appreciat

Status
Not open for further replies.

Maim

Programmer
Jun 25, 1999
106
CA
Here's the thing. I'm trying to move some desktop applications to be web based.

Most things aren't difficult to move but grids and lists are giving me a head ache.

I've posted a few times about setting the height and limiting cell wrapping in tables, and I'm grateful for the suggestions, but I wish html/css/javascript could do just a bit more...

Question 1.
What would be the best way to get the look and feel of a datagrid control in vb for example?
I've tried a few ways to do this but the best I found is using a table with two embedded tables, one on its own row. The lower table has a div defined to give it a specific height so this kinda gives me what I need. I also added some css to keep the columns the same width. It still looks weird.

Does the table have a tag I may have missed that can use just one table element?

Question 2.
This sort of deals with the above question. I wish for my grid to resize with the client but only up to a point. Using my above example, I would have the 2nd table's height adjust with the available client height but only to a point.
I'd like the div to resize only if the client height is greater than 400px for example.

Code:
<style type=&quot;text/css&quot;>
.GridHeight{height:expression(theBody.clientHeight - 154;)}
</style>
<body id=theBody>
<table>
<tr>
<td><table>
    <tr>
    <td width=100>mycolumn1</td><td width=100>mycolumn2</td>
    </tr>
    </table>
</td>
</tr>
<tr>
<td>
<div class=GridHeight>
    <table>
    <tr>
    <td>d1</td><td>d2</td>
    </tr>
    </table>
</div>
</td>
</tr>
</table>
</body>
-----------------------------------
&quot;Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.&quot; - Rich Cook
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top