Re: [flexcoders] flex 2 editable datagridcolumn messingup with labelfunction

2008-03-28 Thread Jas Kaur
Thanks Alex for the rescue.



- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, March 27, 2008 10:04:01 PM
Subject: RE: [flexcoders] flex 2 editable datagridcolumn messingup with 
labelfunction

Columns with labelFunction normally need to have itemEditEnd handlers that 
figure out how to write the data back to the dataprovider.
 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of gur_sukh
Sent: Thursday, March 27, 2008 9:19 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] flex 2 editable datagridcolumn messingup with 
labelfunction
 
Hi,

I have a simple datagrid column which is editable and has a label
function. When users enters a value first time it works okay. But if
user comes to that cell and moves out of it the value is set to 0.
Does anyone have any idea what i am doing wrong?

Thanks in advance.

mx:DataGridColumn 
editable=true 
dataField=amount 
headerText= Value 
width=100 
labelFunction= {formatAmount}  /

private function formatAmount( item:Object, column:DataGridColu mn):String
{ 
return priceFormatter. format(IAttribut e(item).amount) ;
}
 


  __
Connect with friends from any web browser - no download required. Try the new 
Yahoo! Canada Messenger for the Web BETA at 
http://ca.messenger.yahoo.com/webmessengerpromo.php

Re: [flexcoders] editing Datefield itemrenderer

2007-10-17 Thread Jas Kaur
Thanks Alex,

I was using label function to display 10/17/2007 00:00:00 and then wanted the 
user to be able to change the time manually. But they can't edit the datefield. 
Do you think i should write a custom component for it or is there a way to make 
this editable.

Jas


- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, October 17, 2007 2:10:07 PM
Subject: RE: [flexcoders] editing Datefield itemrenderer

dateField doesn’t let you pick the time.  You’ll need a custom component as 
your itemEditor.
 



From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of gur_sukh
Sent: Wednesday, October 17, 2007 1:08 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] editing Datefield itemrenderer
 
Hi,

I need to add time to the date in a datagrid column. The code is as
following. I can't edit the time field.

mx:DataGridColumn dataField=startDat e
sortable=true 
resizable=true 
labelFunction= formatGridStart Date 
headerText= Start Date 
itemEditor= mx.controls. DateField 
editorDataField= selectedDate /
mx:DataGridColumn dataField=endDate 
sortable=true 
resizable=true 
labelFunction= formatGridEndDa te 
editable=true 
headerText= End Date 
itemRenderer= mx.controls. DateField 
rendererIsEditor= true 
editorDataField= selectedDate /



  Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca


Re: [flexcoders] Re: DataGrid in flex 2.0

2007-09-29 Thread Jas Kaur
I noticed one more thing, let me see if i can explain.

The canvas on which the datagrid is displayed is attached to a button i. When 
we click the button the canvas is displayed with datagrid on it. If we reassign 
the data to the dataprovider when the canvas is visible everthying works okay. 
If we reassign the data to the grid when the canvas is not displayed then it 
messes up. 


gur_sukh



- Original Message 
From: gur_sukh [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 29, 2007 7:48:21 AM
Subject: [flexcoders] Re: DataGrid in flex 2.0


What is happening is that i have this datagrid displayed on a canvas.
The dataprovider is binded to a data sampleDat. 

I click a button and in the event handler for the click i reassign the
dataprovider to new ArrayCollection( ); which is empty. Now when i look
at the datagrid there is previous data still visible in the datagrid. 

on another click i assign sampleData2 to the datagrid which over-
wrights on the previously visible data and is all craped out.

Another thing i noticed while performing different tests is that if
the reassigning data has more rows than the previous data then it all
works fine.

The datagrid works fine in panel or anyother container.

Also this is not issue with flex as this datagrid and canvas are
slightly modified of the original version. So probably something i am
doing wrong.

Either the canvas or the datagrid needs to be repainted.

I know this is hard to understand but any help is appreciated.

I have working on this from last 2 days and have no clue on what can
be done.

Not even sure if this is canvas problem or datagrid problem.

thanks for the reply.

gur_sukh

--- In [EMAIL PROTECTED] ups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Not sure what you mean by clear and why you think refresh() would
 help. Please provide more detail.
 
  _ _ __
 
 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of gur_sukh
 Sent: Thursday, September 27, 2007 2:01 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] DataGrid in flex 2.0
 
 
 
 When reassigning data to dataprovider the old data doesn't clear. So 
 there is overwriting. Anyone know how to fix this. refresh() doesn't 
 work.
 
 gur_sukh






  Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca


Re: [flexcoders] Re: DataGrid in flex 2.0

2007-09-29 Thread Jas Kaur
custom .

jas


- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: Jas Kaur [EMAIL PROTECTED]; flexcoders@yahoogroups.com; [EMAIL PROTECTED]
Sent: Saturday, September 29, 2007 2:50:31 PM
Subject: RE: [flexcoders] Re: DataGrid in flex 2.0

Custom renderers or default?
 



From: Jas Kaur [mailto:gur_ [EMAIL PROTECTED] ca] 
Sent: Saturday, September 29, 2007 6:54 AM
To: [EMAIL PROTECTED] ups.com ; Alex Harui; [EMAIL PROTECTED] com.mx
Subject: Re: [flexcoders] Re: DataGrid in flex 2.0
 
I noticed one more thing, let me see if i can explain.
 
The canvas on which the datagrid is displayed is attached to a button i. When 
we click the button the canvas is displayed with datagrid on it. If we reassign 
the data to the dataprovider when the canvas is visible everthying works okay. 
If we reassign the data to the grid when the canvas is not displayed then it 
messes up. 
 
 
gur_sukh
 
- Original Message 
From: gur_sukh [EMAIL PROTECTED] ca
To: [EMAIL PROTECTED] ups.com
Sent: Saturday, September 29, 2007 7:48:21 AM
Subject: [flexcoders] Re: DataGrid in flex 2.0
What is happening is that i have this datagrid displayed on a canvas.
The dataprovider is binded to a data sampleDat. 

I click a button and in the event handler for the click i reassign the
dataprovider to new ArrayCollection( ); which is empty. Now when i look
at the datagrid there is previous data still visible in the datagrid. 

on another click i assign sampleData2 to the datagrid which over-
wrights on the previously visible data and is all craped out.

Another thing i noticed while performing different tests is that if
the reassigning data has more rows than the previous data then it all
works fine.

The datagrid works fine in panel or anyother container.

Also this is not issue with flex as this datagrid and canvas are
slightly modified of the original version. So probably something i am
doing wrong.

Either the canvas or the datagrid needs to be repainted.

I know this is hard to understand but any help is appreciated.

I have working on this from last 2 days and have no clue on what can
be done.

Not even sure if this is canvas problem or datagrid problem.

thanks for the reply.

gur_sukh

--- In [EMAIL PROTECTED] ups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Not sure what you mean by clear and why you think refresh() would
 help. Please provide more detail.
 
  _ _ __
 
 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of gur_sukh
 Sent: Thursday, September 27, 2007 2:01 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] DataGrid in flex 2.0
 
 
 
 When reassigning data to dataprovider the old data doesn't clear. So 
 there is overwriting. Anyone know how to fix this. refresh() doesn't 
 work.
 
 gur_sukh

 
 
 
 



Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers. 



  Make free worldwide PC-to-PC calls. Try the new Yahoo! Canada Messenger 
at http://ca.messenger.yahoo.com/

Re: [flexcoders] how to change vertical scroll position with variable row height in datagrid

2007-06-09 Thread Jas Kaur
any thought on this one.
jas

- Original Message 
From: gur_sukh [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, June 8, 2007 10:40:44 PM
Subject: [flexcoders] how to change vertical scroll position with variable row 
height in datagrid









  



Hi,



I have a datagrid with variable row height( multiline rows). If the 

height of last row is bigger than the other rows, then only half of it 

is visible and half is below the visible area. 



I need to set the verticalScrollPosit ion so that the complete row is 

visible. My class inherits from DataGrid class. And the 

verticalscrollposit ion in datagrid is based on number of rows and not 

on piexels.



How do i set the complete last row fully visible, any ideas?



Jas 






  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a {
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc {
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
--








  Get a sneak peak at messages with a handy reading pane with All new 
Yahoo! Mail: http://mrd.mail.yahoo.com/try_beta?.intl=ca

Re: [flexcoders] Extended component on Datagrid breaks when using a XMLListCollection

2007-06-04 Thread Jas Kaur
any ideas?


- Original Message 
From: gur_sukh [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, June 4, 2007 10:24:52 PM
Subject: [flexcoders] Extended component on Datagrid breaks when using a 
XMLListCollection


I have extended datagrid to display an information canvas for a cell. 
The code works fine with ArrayCollection as data. But when testing this 
component with XMLlistColleciton it breaks. The image icon is not 
displayed at all.

Thanks
Jas





  Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca


Re: [flexcoders] Shouldn't this VBox have a scrollbar?

2007-05-05 Thread Jas Kaur
The value of height=200 is making this happen

mx:Canvas width=100% height=200 backgroundColor= green/
mx:Canvas width=100% height=200 backgroundColor= green/


- Original Message 
From: Tom Bray [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, May 5, 2007 5:36:08 PM
Subject: [flexcoders] Shouldn't this VBox have a scrollbar?

Shouldn't the height of the VBox below end up being 300?  Shouldn't 
height=100%  make it fill up the area allotted to it by it's parent?  Instead 
it ends up having a height of 612 and no scrollbar:


?xml version=1.0 encoding=utf- 8?
mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute 
horizontalScrollPol icy=off verticalScrollPolic y=off
mx:Canvas width=500 height=300 horizontalScrollPol icy=off 
verticalScrollPolic y=off
mx:VBox id=badVBox width=100% height=100%
mx:Canvas width=100% height=200 backgroundColor= green/
mx:Canvas width=100% height=200 backgroundColor= green/
mx:Canvas width=100% height=200 backgroundColor= green/
/mx:VBox
/mx:Canvas


mx:Button y=400 label=debug click=debug( )/


mx:Script
![CDATA[
public function debug():void
{
var v:VBox = badVBox;
}
]]
/mx:Script


/mx:Application


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com