Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by mongkol on Jul 06, 2008 00:50
open dhtmlx forum
how to disable arranged in header row 2 ?

In my grid have header 2 rows.It have header text on row 1 and text box on row 2. from this xml.
----------------------------------------- XML -------------------------------------------
<head>
<column width="50" type="dyn" align="right" sort="str">Sales</column>
<column width="150" type="ed" align="left" sort="str">Book Title</column>
<column width="100" type="ed" align="left" sort="str">Author</column>
<column width="80" type="price" align="right" sort="str">Price</column>
<settings>
<colwidth>px</colwidth>
</settings>
        <afterInit>
<call command="attachHeader"><param><![CDATA[<input type='text'>,<input type='text'>,<input type='text'>,<input type='text'>]]></param></call>
</afterInit>
</head>
----------------------------------------- XML -------------------------------------------
I don't want to arranged data in grid when i click on text box,How i can do ?
Answer posted by Support on Jul 07, 2008 01:42
you can disable such behavior, by using direct DOM access

grid.loadXML(url,function(){
    grid.hdr.rows[2].onclick=function(e){
       (e||event).cancelBubble=true;   // block click event for second header row
    });
});