Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tomek on Jun 19, 2007 22:17
open dhtmlx forum
Math formulas from html table

for the grid control, one can create a grid from an html table with the basic types (ed, ro..etc). Can the html table also support math formulas? If not, is there a way to add it in via script?
Answer posted on Jun 20, 2007 14:33
The math can be used in such mode as well, but instead of percolumn math formulas, the math need to be specified for each cell
For example, sample below will create a grid , where third column autocalculated

<table class="dhtmlxGrid" forceCellTypes="true">
    <tr><td type="ed">A</td><td type="ro">B</td><td type="math">A*B</td></tr>
    <tr><td>2</td><td>3</td><td>=c1*c0</td></tr>
    <tr><td>4</td><td>5</td><td>=c1*c0</td></tr>
</table>
Answer posted on Jun 20, 2007 14:36
>>If not, is there a way to add it in via script?
The type of column can be redefined later with help of setColumnExcellType
Answer posted by sematik (Support) on Dec 11, 2014 09:08

To find more precise comments upon this issue, we can offer you read about dhtml tab and ajax upload progress bar.