Categories | Question details Back To List | ||||||||
Custom excell I have written a custom excell. I will paste the code here. Its working fine in fire fox but in IE the height of the cell is not proper. How can i set height to it? function eXcell_txtlink(cell) { this.cell = cell; this.grid = this.cell.parentNode.grid; this.edit = function(){} this.isDisabled = function(){return true} this.getValue = function() {var temp=this.cell._rval.split('~');return temp[0];} this.getTitle=function() {var temp=this.cell._rval.split('~');return temp[1];} this.setValue=function(val) { var txtVal=val.split('~'); var text = txtVal[0].split(','); var values=txtVal[1].split(','); var size = values.length; this.cell.innerHTML="<select id='freqComp' multiple STYLE='width: 150px' size='5'>"; for(i=0;i<size;i++) { this.cell.childNodes[0].options[i]=new Option(values[i],text[i]); } this.cell.innerHTML+="</select> <a id='freqAddEdit' href='#' style='cursor: pointer;' onClick='showFreqPopUp(this.id,freqComp)'>Add / Edit </a>" this.cell._rval =val; } } eXcell_txtlink.prototype = new eXcell; Answer posted by dhxSupport on Mar 26, 2009 04:33 This is feature of IE. It cant increase row's height if it contain any html tags. To prevent such behaviour you can enable multiline mode: mygrid.enableMultiline(true); Answer posted by Suganya on Mar 26, 2009 04:42 Sorry but it is not fixing my pbm. Answer posted by dhxSupport on Mar 26, 2009 05:35 enableMultiline(true) increase row height depending on the it's content. Who does it not work? Answer posted on Mar 26, 2009 05:37 I m not able to view the Add/Edit button in IE. Even after enabling the multi line property i m not able to see it. If i do the same thing as normal HTML the height is fine. (Even in IE). When i make it custom excell and convert into grid. its creating a problem. Answer posted by dhxSupport on Mar 26, 2009 06:59 Please see example at the attachment. Attachments (1)
|