Cell with custom data

Is it possible to have a custom cell, for each row, may be a set of icons which would perform different tasks like edit or delete or whatever we need?



Thanks

Vru

    There are few ways to achieve such effect

You can
- create custom excell ( most complex solution, but with most flexible result )
- use existing img excell which allow to show image as cell value
- use any king of excell and provide images as HTML value of cell

                <![CDATA[Text]]>
                <![CDATA[Delete Alert?]]>

Thanks for the reply, but am not very sure how to achieve this.
I do not want this custom cell to be part of the xml, for example i might want to have a checkbox against each row to select or deselect a row and this checkbox is not a part of the xml data. Can you provide with some code sample, so i could understand
And, is it possible to load the grid for a string rather than a xml file?

Thanks
Vru  

>>an you provide with some code sample, so i could understand
The documentation about custom excell creation can be found here
        dhtmlx.com/docs/products/dhtmlxG … excell_add
Also you can check attached sample

>>And, is it possible to load the grid for a string rather than a xml file?
Pro version of grid supports
    grid.loadXMLString(…
grid_custom_excell.ZIP (58 KB)

Hi there, thanks for the reply, was very helpful.
But being a beginner on this, i still have a few questions.
The example you provided gave me an idea on how to insert custom cell data, but again, the custom cell works on the xml data, what if i want a totally independent custom cell for each row and has nothing to do with the xml data. And if at all i could do that, i would like to have a check box on each row to select a set of rows and at the end of it would like to process all the checked rows, is that possible?
Sorry if my questions were lame, but any help is highly appreciated

Thanks
Vru  

the custom cell works on the xml data
Actually it works for any data, when column type defined - it will be applied to row created by any possible way.

>>what if i want a totally independent custom cell for each row
grid allows to redefine cell types , so you can have situation when same column will have different cell type in different rows
    grid.setCellExcellType(rowId,cellIndex,type)

>> would like to process all the checked rows, is that possible?
sure, you can define some column type as “ch” - so it will be rendered as checkbox, and you can get the IDs of checked row by next api call
    grid.getCheckedRows(INDEX);
where INDEX  - index of column where checkbox placed

Hi there, i finally purchased a copy of dhtmlxgrid yesterday :slight_smile:
Is it possible for you to give me a functional example so i dont have to fiddle with the api for my above queries?
a simple example for loading xml from string(since i have the professional version now).
an example for having a small button/image for each row which on click performs an action
an example for getCheckedRows, if the checkbox is a custom cell

I hope that’s not too much to ask for

Thanks