3.0.5

Top selector

Hi Alex,
How can I put an image in the top selector box?
I mean in the cell that is empty.
Thanks.
super
June 26,
This can be done with setTopImage() method -

var obj = new AW.UI.Grid;
obj.setSelectorVisible(true);
obj.setTopImage("favorites");
document.write(obj);


or

var obj = new AW.Grid.Extended;
obj.setSelectorVisible(true);
obj.setHeaderCount(2);
obj.setTopImage("favorites", 0); // top row
document.write(obj);

Alex (ActiveWidgets)
June 26,
Thanks for your reply Alex.
But I need to insert an image tag
Example:
<img src="imagex.gif" onclick="functionx();" id="idx">
super
June 27,
Forget the last question. This works fine:

<style>
.aw-image-topselectorStyle{background:url("checkbox.png") -125px -3px }
</style>

var selectorImg='topselectorStyle" title="titleX" onclick="functionX();';
obj.setTopImage(selectorImg);
obj.refresh();

Note that this: 'topselectorStyle" , is not an error because its added to the string: .aw-image- .
super
July 3,
And how I can insert image in selector box?
Thanks
July 5,

This topic is archived.

See also:


Back to support forum