Grid Rendering Problem and so on

  1. PROBLEM

I build a custom eXcell
This is code.

function eXcell_note(cell) {
if (cell) {
this.cell = cell;
this.grid = this.cell.parentNode.grid;
this.edit = function () { }
this.getValue=function () { }

this.setValue=function(val){
if (val==“”){
this.setCValue(“”);}
else {
this.setCvalue(“”);}
}
}
eXcell_note.prototype = new eXcell;

function showtext(v){
alert (v);}


What i’d like to do is pass to showtext function the text of note fields to show it onMouseOver.
The problem is passing the text.
i also try:

this.setCvalue(“”);}

but nothing happens the alert is not shown. I surely made a mistake but where ?

  1. PROBLEM

There are some grid rendering problem using Explorer 8 that is not shown using Explorer 6
see the attached pictures.

In the first one you can see the difference in text align of tree grid: correct in Explore 6 and Wrong in Explorer 8 (i try everything defining the text aligning with no results)

In the second one you can see strange artefacts in column Note where is active enableTooltips. Passing the mouse on cells they constricts. On the other columns with tooltips disable it doesn’t happen. All using Explorer 8 and not using Explore 6

Is it possible to solve this problems ? Could they depend on CSS ?

  1. PROBLEM
    In my grid i have a complex header with 2 lines + 1 line for filters.
    I’d like that order-arrows were active only on second line (the real column titles), not in first line (only grouping) and not on third line where there only the filters. Instead they are always active on all lines.
    What have i to do ?

Many Many thanks as always guardian angels !


Hi
to your firs problem have you tried this (just my tip)
this.setCvalue("showtext("+val+");");}

Thanks Pacific15 but the problem is not the event onMouseOver, that runs correctly if i don’t pass parameters - showtext(), but the sintax of parameter i think.

I hope in support !

Hi
I´m using setValue like this

this.setCValue("<span style='padding-right:2px;color:"+color+";font-weight: bold;'>"+addSeparatorsNF((parseFloat(val)).toFixed(2), '.', ',', ' ')+" Kč</span>", val)

and output is like this:

1 700,30 Kč
-300,50 Kč

so i guess that you need to set second parametr

this.setCvalue("<img src='icons/list.gif' onMouseOver='showtext("+val+");'/>",val);

Thanks again Pacific15.

I tried your suggestion but nothing happens !

the strange thing is that if i write:

this.setCvalue("");

Number 1 is passed to the showtext function that shows normally the alert with this number. When i substitute the number with text “try” or variable val using or not + is the same. I can’t understand.

Thanks the same for help.

Please Stanislav, i need help about my previous post.

Help Help !!

problem 1:
Please, try to send the additional data using the attributes of the cell:
docs.dhtmlx.com/doku.php?id=dhtm … attributes

problems 2,3 unfortunately cannot be reproduced locally.
Please, provide with a complete demo, where the issues can be reproduced.
Here is the tutorial:
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Hi Sematik,

I’m here again.

For 2 problem i will prepare a demo

For 1 st problem i didn’t find a solution yet

This is code

function eXcell_note(cell) {
if (cell) {
this.cell = cell;
this.grid = this.cell.parentNode.grid;
this.edit = function () { }
this.getValue=function () { }

this.setValue=function(val){
if (val==""){
this.setCValue("");}
else {
this.setCvalue("",val);}
}
}
eXcell_note.prototype = new eXcell;

function showtext(v){
alert (v);}

The strange thing is that if variable val is numeric all runs correctly, if is a text i’ve an error: val is undefined .

I tried to substitute the variable directly with a value. if i use a number: 1234 showtext runs correctly even if the number is delimited “1234”.
if i use a text “abcd” i’ve an error: abcd is not defined.

I tried everything but now i don’t know what else i can do.

Any idea please ??

Hi
I This works for me (see attached sample)

[code]function eXcell_note(cell) {
if (cell) {
this.cell = cell;
this.grid = this.cell.parentNode.grid;
this.edit = function () { }
this.getValue=function () { }

this.setValue=function(val){
if (val==“”){
this.setCValue(“”);}
else {
//alert(‘showtext("’+val+‘")’)
this.setCValue(“<img src=‘icons/list.gif’ onMouseOver='showtext("”+val+“")';/>”,val);}
}
}}
eXcell_note.prototype = new eXcell;

function showtext(v){
alert (v);}[/code]

I just added this code to dhtmlxgridcell.js
test.rar (294 KB)

Hi Sematik

i prepared my demo some time ago but i posted in another section of forum because there were also other problems.
This is the link to not repeat all in a new post.

viewtopic.php?f=23&t=31037

Thanks for your patience.

Unfortunately your issue with the cells align cannot be reconstructed locally.



Please, try to set a following doctype to your page:

Also, please, check the browser mode/document mode in Internet Explorer.

Thank you Sematik but i don’t understand !

i’ve to substitute the line

<!DOCTYPE html PUBLIC "-//W3C/DTD ...... with simply ??

if Yes i tried but the problem remains.

i didn’t understand the second suggestion ! where and how i have to verifiy ?

And for the other problems that i described: order Arrows, disalignement of icons in treegrid ?

have you suggestions ?? I remember to you that these problems are present in IE8 but not in IE6.

The issue with shifted rows cannot be reproduced with your provided demo for us in IE8.

disalignement of icons in treegrid ?
Unfortunately we cannot find a treegrid in your provided demo so the issue can be reproduced.

order Arrows
Unfortunately it’s not available to get the row of the clicked header to block an arror in a particular cell.

Hi Sematik,

I don’t know how it’s possible. The snapshot that i attached come from the same demo that i sent to you and happens olny on IE8 (IE6 run correctly) when you click some times on the rows randomly and move the mouse holding the button pressed.

I didn’t include the treegrid because i’ve not the pro version to build the demo. The snapshot that i sent come from an example that i built during the try-period of pro version. At the and i deleted the pro version but, with your authorization, i mantained the experiment that i built with it. As you can see the behaviour is different using ie6 or ie8. Why ?

About the problem of order-arrow i’d have a proposal of issue to develop:
It would be useful having a flag in “setHeader” and AttachHeader" to enable/disable order arrows in this header.

Many thanks as always

The described issue not reproduces for us in the provided demo after the page loading or after the provided steps:

when you click some times on the rows randomly and move the mouse holding the button pressed.

If I understood you correctly the treegrid have the same issue for you in IE8. so it also cannot be reproduced locally.

It would be useful having a flag in “setHeader” and AttachHeader" to enable/disable order arrows in this header.
Your suggestion will be considered. Thank you for your note.