Re: [Flashcoders] hiding datagrid columns?

2006-02-12 Thread srishti
ya,got it.Thanks.
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] hiding datagrid columns?

2006-02-09 Thread Srishti Bhatia
yes,the user selects the checkboxes labelled with the column names in a
pop-up window.
Only,those column names should be made visible in the datagrid present on
the stage.
  Any suggestion would be highly appreciated.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dave
Mennenoh
Sent: Wednesday, February 08, 2006 7:55 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] hiding datagrid columns?


Could you set the column's width to 0? Are you trying to hide on a button
click or something?

Dave -
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] hiding datagrid columns?

2006-02-09 Thread Srishti Bhatia
thanks for the help provided.
Actually,can anyone tell me how to know that which are 
the checkboxes labelled with the column names which the user 
has selected in the pop-up window? 
i mean which checkboxes have been ticked? 
Should the event handler(click) be on the checkbox ? 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Nathan
Derksen
Sent: Wednesday, February 08, 2006 9:43 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] hiding datagrid columns?


Use removeColumnAt() and addColumn()/addColumnAt()

var dataArray:Array = new Array();
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});

myDG.dataProvider = dataArray;

myDG.removeColumnAt(2);
// Later call the following to get the column back:
myDG.addColumnAt(2, baz);

Note that the third column of data is not removed from the data  
provider when you call removeColumnAt(2), it just removes the visual  
representation of the data.

Nathan
http://www.nathanderksen.com


On Feb 8, 2006, at 1:47 AM, [EMAIL PROTECTED]  
[EMAIL PROTECTED] wrote:

 Does anyone know a way to hide a datagrid column.
 The information contained in this electronic message and any  
 attachments to this message are intended for the exclusive use of  
 the addressee(s)and may contain confidential or privileged  
 information. If you are not the intended recipient, please notify  
 the sender or [EMAIL PROTECTED]
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] hiding datagrid columns?

2006-02-09 Thread srishti
Thanks ...
 
Actually,i need the datagrid only once the whole pop-up 
containing checkboxes is 
closed.Function for attaching checkboxes in the scroll 
pane is as follows:But this event for checkbox click is not 
working. 
function vek() { 
this.attachMovie 
(ScrollPane, scrollpane1, 520); 
scrollpane1.vScrollPolicy = on; 
scrollpane1.setSize(500, 200); 
scrollpane1.vPosition = 50; 
scrollpane1.hPosition = 20; 
scrollpane1.move(20, 20); 
scrollpane1.contentPath = empty_mc; 
var y:Number; 
y = 10; 
var depth:Number; 
depth = 530; 
for (var i = 0; idatagrid.columnCount; i++) { 
var clip = 
scrollpane1.content.attachMovie(CheckBox, cb1, depth); 
depth++; 
clip._x = 10; 
clip._y = y; 
y = y+20; 


clip.addEventListener(click, 
Delegate.create(this, chk_func)); 
} 

} 
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] hiding datagrid columns?

2006-02-08 Thread Dave Mennenoh
Could you set the column's width to 0? Are you trying to hide on a button 
click or something?


Dave -
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/ 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] hiding datagrid columns?

2006-02-08 Thread Merrill, Jason
Please stop cross-posting!  Thank you.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, February 08, 2006 4:47 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] hiding datagrid columns?

Does anyone know a way to hide a datagrid column.
The information contained in this electronic message and any
attachments to this
message are intended for the exclusive use of the addressee(s)and may
contain
confidential or privileged information. If you are not the intended
recipient,
please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] hiding datagrid columns?

2006-02-08 Thread Nathan Derksen

Use removeColumnAt() and addColumn()/addColumnAt()

var dataArray:Array = new Array();
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});
dataArray.push({foo:1, bar:2, baz:3});

myDG.dataProvider = dataArray;

myDG.removeColumnAt(2);
// Later call the following to get the column back:
myDG.addColumnAt(2, baz);

Note that the third column of data is not removed from the data  
provider when you call removeColumnAt(2), it just removes the visual  
representation of the data.


Nathan
http://www.nathanderksen.com


On Feb 8, 2006, at 1:47 AM, [EMAIL PROTECTED]  
[EMAIL PROTECTED] wrote:



Does anyone know a way to hide a datagrid column.
The information contained in this electronic message and any  
attachments to this message are intended for the exclusive use of  
the addressee(s)and may contain confidential or privileged  
information. If you are not the intended recipient, please notify  
the sender or [EMAIL PROTECTED]

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders