moran
August 1, 2011, 9:53am
#1
Hi,
In IE,
For an XML object parsed dhtmlxGrid,
When attaching a grid header with input fields in it,
It’s impossible to mark/select the values entered to it as customary in most input fields.
(Try double click on the text in the input field in the header).
Do you have any suggestion how to solve this?
(Attached please find a sample code.)
Thanks.
moran
August 1, 2011, 9:53am
#2
Sample code:
Loading from XML
</head>
<body>
<div class="content">
<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxgrid.css">
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxgrid_dhx_skyblue.css">
<script src="../../codebase/dhtmlxcommon.js"></script>
<script src="../../codebase/dhtmlxgrid.js"></script>
<script src="../../codebase/dhtmlxgridcell.js"></script>
<script src="../../codebase/ext/dhtmlxgrid_mcol.js"></script>
<script src="../common/data.js"></script>
<p>Load data from xml file</p>
<div id="gridbox" style="width:400px; height:270px; background-color:white;"></div>
<br><br>
<br>
<textarea id ="xml_text" name="xml_text" style="display:none;">
<rows>
<row id = "1">
<cell>0</cell>
<cell>1 loaded from xml object</cell>
</row>
<row id = "2">
<cell>1</cell>
<cell>2 loaded from xml object</cell>
</row>
<row id = "3" selected = "1">
<cell>2</cell>
<cell>3 loaded from xml object</cell>
</row>
</rows>
</textarea>
</div>
</body>
I’ve got the same problem. Could anybody help with this problem?
moran
September 6, 2011, 5:59am
#4
The answer I got at last was this:
Selection is blocked in grid by default, to re-enable it use
grid.entBox.onselectstart=function(){
return true;
};
It works for me.