:: Forum >>

How do i display the grid in an html table column?

Hi i have been trying to display the grid in an html table and the data becomes a scroll box. How do i embed the grid into a table?
Wednesday, March 30, 2005
The easiset way is to use an IFRAME:

<div id="cash" style="margin-left:16px; border:1px #819FBB solid; height:400px; width:990px">
<table cellspacing=0 cellpadding=0>
<tr bgcolor="#ECE9D8"><td height="15" width="641"></td>
<td width="1" bgcolor="#000000"></td>
<td width="365" align="center" class="colheader" style="color:#666666">Performance</td></tr>
<tr><td colspan=3>

<div id="Layer1" style="position:absolute; left:18px; top:284px; width:990px; height:80px; z-index:1; overflow:hidden"><iframe width="985" height="80" scrolling="yes" src="assetclass.html" marginHeight="0" marginWidth="0" frameborder="0"></iframe>

If you don't want to do that, you should be able to wrap the entire grid in a DIV and position it as you like (adding the required css & js files above the </head> tag):

<table cellspacing=0 cellpadding=0>
<tr bgcolor="#ECE9D8"><td width="990">

<div id="Layer1" style="position:absolute; left:18px; top:284px; width:990px; height:80px">

<script Language="JavaScript">
var obj = new Active.Controls.Grid;

// set number of columns... rows float til EOF
obj.setColumnProperty("count", 12);
obj.setModel("data", table);
obj.setColumnProperty("text", function(i){return myColumns[i]});

blah, blah, blah

// write grid html to the page

Thursday, March 31, 2005
i need to create an registration form in which i have the fallowing details ie Name Age Gender Lang,
i have four buttons ie ADD DELETE UPDATE CLEAR

when i click ADD --> all the details in the registration form should get filled in the table below which is created dynamically.

when i click Delete --> if i click any one of the record of the table, then the tat record details should be displayed in the above registration form fields and when i click delete button then the particular record should get deleted from the tabel.

when i click update --- > then the particular fields should get updated in table below,

i should do all in only one html page,.using HTML DHTML & JAVASCRIPTS

i'll be waiting for your reply., plz help me out.

Mail the code to prashanthjain@gmail.com
Tuesday, July 12, 2005

This topic is archived.

Back to support forum

Forum search