So when is this checkbox supposed to apply?  Just when the item is created?  In that case you should just have a property on the object that you add to the dataProvider that you set based on the checkbox.  That way it won’t change the other values.  If you need each row to be different or store the value then you need to actually store it on the object or have it available some other way.

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of neha
Sent: Sunday, March 05, 2006 8:59 PM
To: [email protected]
Subject: RE: [flexcoders] regarding data Grid and remote Object

 

Thanx Matt...bt now another prob has cropped up...

chkBusyValue is a checkbox in my class...

whenver I drag a row in this grid....first row gets displayed correctly...

eg...Suppose checkbox is not selected...then value of the BusyValue Column gets displayed correctly...

bt after tht If  i select checkbox...and then drag a row...all the rows get updated...and the value of the busyValue column becomes "busy" for all the rows...

 

Can U tell me ..why is this so..? ny solution...

Matt Chotin <[EMAIL PROTECTED]> wrote:

This is 1.5?  And chkBusyValue is an object in your class?  You probably need a Delegate for ! the busyValueLabelFunc

 

col.labelFunction = mx.utils.Delegate(this, busyValueLabelFunc)

 

As for when you send it through a remote object, you’ll either need to convert it on the server-side or make sure you change the value in the object before you actually send it.  Or store the boolean as another value on the object and just send it that way.!

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of neha
Sent: Friday, March 03, 2006 10:45 PM
To: [email protected]
Subject: [flexcoders] regarding data Grid and remote Object

 



I added a DataGridColumn to my grid using the following code

*************************************

var col:DataGridColumn;

col = new DataGridColumn();

col.headerText = "Busy Value";

col.columnName = "busyValue";

col.labelFunction = busyValueLabelFunc;

selectedFieldsGrid.addColumnAt(4,col);

*************************************************

Label Function is:

**********************************************

function busyValueLabelFunc(item):String

{

if chkBusyValue.selected)

 {

   return "busy";

  }

 if (!chkBusyValue.selected)

  {

   return "-";

 }

}

**************************************

 

Whenevr I drag a row from another grid to this grid having busy Value column....

value in Busy Value column is always "-"...irrespective of state of checkBox...

 

Other problem is...when a row is added in the grid ...it is always saved in the session thru remote Object...

and the row is send to remote Object as a Java Class Object...

 

In java class object I want to set the busy Value as true or false....

 

If anybody knows how to do it...

plz help me!!!!!!!!!!!!!! Its really urgent!

 

 

 


Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

 


Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to