Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by shaffi baig on May 18, 2009 22:20
open dhtmlx forum
Object doesn't support this propery in mygrid.getAttribute

Hi,
thanx ur response...i try to use the solution u had provided,but i'm getting object doesn't support this property error..here is the code which i had used...please provide the solution for this...any js file which i need to include...if possible plese provide a sample for this


<table class="dhtmlxGrid" id="some_table" imgpath="imgs/" gridHeight="150" onbeforeinit="" lightnavigation="true" oninit="">
<tr class="bodyCopy" >
<td sort="str" width="100%">Model</td><td type="ra" width="100%">Qty</td><td width="100%">Price</td> <td sort="str" width="100%">Model1</td><td type="co" width="100%">Qty1</td><td width="100%">Price1</td> <td sort="str" width="100%">Model2</td><td type="co" width="200%">Qty2</td><td width="200%">Price2</td>
        
</tr>
<tr class="bodyCopy" attr1="hi" attr2="shaffi">
<td>sss</td><td>dddd</td><td>33</td><td>sss</td><td>dddd</td><td>33</td>
        <td>sss</td><td>dddd</td><td>33</td>
        
</table>
.......................

function doOnInit(){

grid.attachEvent("onEditCell",function(stage,id,index){ /*this event wil be called when cell is edited (radio is clicked)*/

if(stage==1) some(grid.getAttribute(id,"attr1"),grid.getAttribute(id,"attr2"));

return true

})
Answer posted by Alex (support) on May 19, 2009 03:36

Hello, 

sorry for the misleading information the correct name of the method is getRowAttribute.

Please, see attached sample 

Attachments (1)