[Laszlo-user] handler "ondblclick" does not work in <grid>

Marc Bachstein bachstein at visus-tt.com
Tue Jun 24 08:31:08 PDT 2008


Hello,

the handler ondblclick does not work in the <grid>-component.

I am using openlaszlo release 4.0.12 (Servlet) from 14-April-2008.

What can I do?

Kind Regards,
Marc

Here is an example code, which demonstrates the problem:

------------------------------

<canvas debug="true" >
	<dataset name="DataDS">
		<Itemlist>
			<Item>
	
<ItemContentA>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</ItemContentA>
				<ItemContentB>BBBBBBBBBBBBBB</ItemContentB>
	
<ItemContentC>CCCCCCCCCCCCCCCCCC</ItemContentC>
			</Item>
			<Item>
	
<ItemContentA>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</ItemContentA>
				<ItemContentB>BBBBBBBBBBBBBB</ItemContentB>
	
<ItemContentC>CCCCCCCCCCCCCCCCCC</ItemContentC>
			</Item>
			<Item>
	
<ItemContentA>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</ItemContentA>
				<ItemContentB>BBBBBBBBBBBBBB</ItemContentB>
	
<ItemContentC>CCCCCCCCCCCCCCCCCC</ItemContentC>
			</Item>
			<Item>
	
<ItemContentA>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</ItemContentA>
				<ItemContentB>BBBBBBBBBBBBBB</ItemContentB>
	
<ItemContentC>CCCCCCCCCCCCCCCCCC</ItemContentC>
			</Item>
			<Item>
	
<ItemContentA>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</ItemContentA>
				<ItemContentB>BBBBBBBBBBBBBB</ItemContentB>
	
<ItemContentC>CCCCCCCCCCCCCCCCCC</ItemContentC>
			</Item>
			<Item>
	
<ItemContentA>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</ItemContentA>
				<ItemContentB>BBBBBBBBBBBBBB</ItemContentB>
	
<ItemContentC>CCCCCCCCCCCCCCCCCC</ItemContentC>
			</Item>
		</Itemlist>
    </dataset>
    
	<class name="myGridColumnA" extends="gridcolumn">
		<view clip="true" width="${parent.width}">

			<text clip="true" name="myText"
datapath="ItemContentA/text()" />
		</view>
	</class>
	<class name="myGridColumnB" extends="gridcolumn">

		<view clip="true" width="${parent.width}">
			<text clip="true" name="myText"
datapath="ItemContentB/text()" />
		</view>
	</class>
	<class name="myGridColumnC" extends="gridcolumn">

		<view clip="true" width="${parent.width}">
			<text clip="true" name="myText"
datapath="ItemContentC/text()" />
		</view>
	</class>


	<view name="View">
		<grid name="myGrid" datapath="DataDS:/Itemlist"
contentdatapath="Item" width="600"
		 showvlines="true" showhlines="true">
			<method name="init">
				var columnobj = new
lz.myGridColumnA(this,{text:"AAAA"});
				var columnobj = new
lz.myGridColumnB(this,{text:"BBBBBBBBBBB"});
				var columnobj = new
lz.myGridColumnC(this,{text:"CCCCCCCCCCCCCCCCCCCCCCCC"});
				
				super.init();
		    </method>
			<handler name="ondblclick">
				<![CDATA[
					Debug.write("dobble click");
				]]>
			</handler>				    
	    </grid>			
	</view>
</canvas>




More information about the Laszlo-user mailing list