Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by haritha on Sep 22, 2008 06:34
open dhtmlx forum
links in html table

hi Support,

I intialized the grid data from html table. Now i want one column value to be displayed as a link so that on click of that value need to call a jsp page. So may i know how can add links to the table

Thanks
haritha
Answer posted on Sep 23, 2008 00:52
The simpliest way is to create links in your HTML table. They will be transfered to dhtmlxGrid.
Answer posted by haritha on Sep 23, 2008 00:56
Hi,

How to create that links in html table.

<table name="myGrid" id="tblToGrid" onbeforeinit="doBeforeInit()" oninit="doAfterInit()" forceCellTypes="true"     style="width:400px"  border="1" lightnavigation="true">
        <tr>
            <td >Column 2</td>      
            <td type="link"> column4 </td>
        </tr>
        <tr>
            <td>value 12</td>
            <td></td>           
        </tr>

where should i give the url ,target .

Thanks
Haritha
Answer posted by dhtmlx support on Sep 24, 2008 07:30
"link" value is a "^" delimited list of following values:
1st - Link Text
2nd - URL (optional)
3rd - target (optional, default is _blank)

For example:
<td type="link">column4^http://www.some.com/^_blank</td>

Also dhtmlxgrid_excell_link.js should be included