Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by CHW on May 22, 2008 18:19
open dhtmlx forum
HTML

Hi,

In the version 1.6 of the Grid there is the use of SmartRendering??? How???

Best regards,

CHW
Answer posted by Support on May 23, 2008 02:46

The SmartRendering works in this version basically the same as in version 1.5

Same as in 1.5 you need
a) include codebase/ext/dhtmlxgrid_srnd.js
b) use next command grid.enableSmartRendering(true);

Answer posted by CHW on May 23, 2008 08:36

With the use of the dhtmlXGridFromTable?

Regards

CHW

Answer posted by Support on May 23, 2008 09:27
It possible starting from 1.6
a) height of grid must be fixed
b) smartRendering mode need to be enabled through onbeforeinit attribute

Please check attached sample.
Attachments (1)
Answer posted by CHW on May 26, 2008 10:46

Hi,

Thanks.

But some exist problems:

If I use: dragAndDrop="myDragHandlerGrid"

<CENTER><TABLE id="gridbox" name="mygrid" class="dhtmlxGrid" dragAndDrop="myDragHandlerGrid" onbeforeinit="mygrid.enableSmartRendering(true);" gridHeight='425px' CELLSPACING=0 CELLPADDING=1 VALIGN=CENTER BGCOLOR=#FFFFFF BORDERCOLOR=#010000 BORDER=1 style="visibility:hidden;">

It happens mistake in the dhtmlxgrid_start.js, line: if (drag) windowf.enableDragAndDrop(true); ->Object doesn't support this property or method

If I remove: dragAndDrop="myDragHandlerGrid", OK in IE

If I remove: dragAndDrop="myDragHandlerGrid" and to put:

function doOnLoad(){

mygrid = new dhtmlXGridFromTable('gridbox');

mygrid.attachEvent("dragAndDrop",myDragHandlerGrid);

mygrid.enableDragAndDrop(true); -> Object doesn't support this property or method

The enclosed sample is based on his sample.

He works in IE but in very different way in FF.

Note: / / in the line: mygrid.enableDragAndDrop(true);  and no put: dragAndDrop="myDragHandlerGrid".

 Best regards.

CHW

Attachments (1)
Test2.zip3.01 Kb
Answer posted by Support on May 27, 2008 01:29
To work with d-n-d you need to include
    codebase/ext/dhtmlxgrid_drag.js
Answer posted by CHW on May 27, 2008 16:05

Hi,

Ok, forgives me my error.

But continuing the implantation of its new version:
It follows new example:
It is not functioning colspan and rowspan.
If activated setSkin -> XP occurs problems when we roll the screen.

You it will be able to see the execution normal, in the previous version, my site of test. In the address:
http://www.envision.com.br/VerumWEB20/
Forgives me but the help and metadata in Portuguese, for the time being.
You must choose the option:: "Mensal por categorias e clientes" (“Monthly for categories and customers”) in "Faturamento" (“Invoicing”).

Other problems exist some in dhtmlxTree.
But it is subject for new questions.

Best regards,

CHW

 

Attachments (1)
Question.zip64.73 Kb
Answer posted by Support on May 28, 2008 01:53
Colspan feature available only in pro version of grid.
The sample, attached to your post contains standard version of grid, which not supports such feature.
Answer posted by Support on May 29, 2008 05:30
Problem caused by complex content inside HTML table.
Please try to use attached js file instead of original one - with it all must work correctly.
Attachments (1)