Slider in grid?

Hello,

is it posiible to use the dhtmlxSlider in a dhtmlxGrid (cell)?

Sincerely Carsten

You can create any custom eXcell type you need docs.dhtmlx.com/doku.php?id=dhtm … creation&s[]=custom&s[]=excell

I know but i hoped there’s a special cell type like ‘coro’ or so… :cry:

Unfortunately , there is no ready to use solution.
Also, if you have a lot of rows in grid, beware that usage of complex objects in the grid’s cells can slowdown grid rendering a lot.

There are maximum 10 rows per grid so that’s not the problem. My problem is do create a slider in a cell so can you please post an example!? :open_mouth:
This doesn’t work:

function eXcell_testSlider(cell) 
{
    if (cell) 
    {
        this.cell = cell;
        this.grid = this.cell.parentNode.grid;
    }
    this.edit = function(){}
    this.isDisabled = function(){ return true; }
    this.setValue=function(val) 
    {
        var row_id=this.cell.parentNode.idd;
        this.setCValue(new dhtmlxSlider("sld"+row_id, 200, 'simplesilver', null, 0, 100));
    }
}

(...)
eXcell_testSlider.prototype = new eXcell;
(...)
mygrid.setColTypes("ro,ed,testSlider,ro");
(...)
mygrid.init();

Has nobody any example for me?