3.2.0

Replacing record number column with an image

Hi is it possible to replace the numbers in the first row (record numbers) with an image?

I have tried some code that I found in the examples but nothing happens.

Thanks
Christian
Christian - very impressed with grid so far
June 24,
Here is the code to show Word "doc" icon in all rows:
obj.setRowProperty("text", function(i){return ""});
    obj.setRowProperty("image", function(i){return "doc"});

You should look at /source/styles/xp/images.css and /source/styles/xp/icons.png to see how you can define multiple images. You can use one image per file, but you still have to 'declare' images in CSS (assign image URL to class code name 'active-image-...').

There is also example file (icons in cells): /examples/grid/images.htm
Alex (ActiveWidgets)
June 24,

This topic is archived.

See also:


Back to support forum