3.2.0

AW.UI.Button in grid cell

Hi all,

when Clicking on the AW.UI.Button inserted in grid cell,
- currentRow moves to 0
- Button's click() event is called twice

Any hint, another method?
Thanks,
thn

/* '<<>>' are server-side substitutions */
var ctp = AW.Templates.ImageText.subclass();
ctp.create = function(){
    	AW.Templates.ImageText.create.call(this);
    	var btn = new AW.UI.Button;
    	btn.setSize(<<.Width>>, <<.Height>>);
    	btn.setControlText('<<.Caption>>');
    	btn.setControlTooltip('<<.ToolTipText>>');
    	btn.setStyle('cursor', 'pointer');
    	btn.setEvent('onclick', function(){
    		alert('stop');
    	});
      this.prototype.setContent('box/text', btn);
    };
setCellTemplate(new ctp, <<m.tcCol>>);
Thierry Nivelet (FoxInCloud)
June 18,

This topic is archived.

See also:


Back to support forum