Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tuhin on Apr 16, 2008 20:37
open dhtmlx forum
problem with getCellContent

Hi,
<xml id="xmlUserInfo" type="xml/data">
<row id ="1">        
             <cell name="id">1</cell>
             <cell name="pwd">pwd</cell>
             <cell name="userNm" >abc</cell>
             <cell name="sex" >male</cell>
             <cell name="address">JP</cell>
             <cell name="phone">123</cell>
             <cell name="email">ss@ss.ss</cell>
             <cell name="level">2</cell>
             </row>
<row id="2">
..................
</row>
        </rows>
    </xml>
<script>
mygrid.parseXML("xmlUserInfo");


function check(){
my code....... here I want to check the format of email
}
</script>
On button click( like "SAVE" ) I want to get the value of email and check it with my way.
How can I get the value of the email cell of edited row.

please helpme asap.

Tuhin
Answer posted by Support on Apr 17, 2008 02:17
The grid will ignore unknown attributes of cell tag, such as name
( if you need to set unique names for grid columns you can use  grid.setColumnIds command )

>>How can I get the value of the email cell of edited row.
var email = grid.cells(grid.getSelectedId(),6).getValue();   // 6 - index of email column
Answer posted by tuhin on Apr 20, 2008 16:39

Sir,

thx for ur answer.

Tuhin