My Books

  • Follow me on Twitter
My Photo

Subscribe my blog

  • Get this widget from Widgetbox
  • Add to Google
  • RSS FEEDS
  • Enter your Email here to subscribe :



    Powered by FeedBlitz

Blog Widget by LinkWithin

« JSEclipse an Adobe Javascript plug in for Eclipse | Main | A new version of Flex.org has been uploaded by Adobe »

Comments

Jiben

Well, why not adding a listener on ItemClick?
I feel it is quite simpler than this.
I also think that your datagrid will badly react to a mouse click on a column header...

AA

//Well, im using this over AS3 for Flash
//
myDatagrid.addEventListener(Event.CHANGE, selectItemEvent);
function selectItemEvent(e:Event) {
trace("# selectItemEvent");
select_btn.enabled=true;
drawNow()

}
// as you can see, after user selects, a button comes available (select_btn.enabled=true) to the user.
// Try exploring all the events possible, overall the events that are inherited from other classes.

Emanuele

Hi, I've tried your method but it doesn't work for me.
The variable where I try to store the selectedItem object is null!!
I'm using the Flex + Cairngorm framework + WebOrb.

this my VO:

package com.adobe.cairngorm.samples.login.vo
{
import com.adobe.cairngorm.vo.IValueObject;
[RemoteClass(alias="com.adobe.cairngorm.samples.login.vo.MenuTableVO")]
[Bindable]
public class MenuTableVO implements IValueObject
{
public var language_id : int;
public var language_value : String;
}
}

and this is my mxml file:

import com.adobe.cairngorm.samples.login.vo.MenuTableVO;
...
[Bindable]
private var selectedRecord : MenuTableVO;
...
private function fillSelectedRecordset(e : MouseEvent):void
{
selectedRecord = MenuGrid(e.currentTarget).selectedItem as MenuTableVO;
}
...




Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment