:: Forum >>

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
Tuesday, June 26, 2007
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)
Tuesday, June 26, 2007
Thanks for your reply Alex.
But I need to insert an image tag
Example:
<img src="imagex.gif" onclick="functionx();" id="idx">
super
Wednesday, June 27, 2007
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
Tuesday, July 3, 2007
And how I can insert image in selector box?
Thanks
Thursday, July 5, 2007

This topic is archived.


Back to support forum

Forum search