[flex_india:26398] // advanceddatagridcolumn header renderer query //

View: New views
4 Messages — Rating Filter:   Alert me  

[flex_india:26398] // advanceddatagridcolumn header renderer query //

by Arindam Dhar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a header renderer class(CompaniesHeaderRenderer) which extends mx.controls.advancedDataGridClasses.Advanced DataGridHeaderRenderer, and use it the following way,

<mx:AdvancedDataGrid Column headerText=" Companies" dataField="Companies"
 headerRenderer= "CompaniesHeader Renderer" />

I have declared a variable inside CompaniesHeaderRenderer class, which must be set from outside. How  do I populate this var from outside? Anyone knows ?

regards,

Arindam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_india@...
To unsubscribe from this group, send email to flex_india+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---


[flex_india:26454] Re: // advanceddatagridcolumn header renderer query //

by flexorz group of flex corders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

you can have the varriable declaried in the parent app , and refer it with outerDocument.variable name
google it ,there are plenty of examples. :-)

Dinukx



On Thu, Nov 5, 2009 at 12:18 PM, Arindam Dhar <arin.dhar@...> wrote:
Hi,

I have a header renderer class(CompaniesHeaderRenderer) which extends mx.controls.advancedDataGridClasses.Advanced DataGridHeaderRenderer, and use it the following way,

<mx:AdvancedDataGrid Column headerText=" Companies" dataField="Companies"
 headerRenderer= "CompaniesHeader Renderer" />

I have declared a variable inside CompaniesHeaderRenderer class, which must be set from outside. How  do I populate this var from outside? Anyone knows ?

regards,

Arindam



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_india@...
To unsubscribe from this group, send email to flex_india+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---


[flex_india:26499] Re: // advanceddatagridcolumn header renderer query //

by Arindam Dhar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the reply.

outerDocument could be used with inline renderers. But what if item renderers are reusable components? afaik, you cant use outerDocument in the second scenario. you too think so ?

regards,

Arindam

On Fri, Nov 6, 2009 at 3:42 PM, flexorz group of flex corders <flexcodrz@...> wrote:
you can have the varriable declaried in the parent app , and refer it with outerDocument.variable name
google it ,there are plenty of examples. :-)

Dinukx



On Thu, Nov 5, 2009 at 12:18 PM, Arindam Dhar <arin.dhar@...> wrote:
Hi,

I have a header renderer class(CompaniesHeaderRenderer) which extends mx.controls.advancedDataGridClasses.Advanced DataGridHeaderRenderer, and use it the following way,

<mx:AdvancedDataGrid Column headerText=" Companies" dataField="Companies"
 headerRenderer= "CompaniesHeader Renderer" />

I have declared a variable inside CompaniesHeaderRenderer class, which must be set from outside. How  do I populate this var from outside? Anyone knows ?

regards,

Arindam






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_india@...
To unsubscribe from this group, send email to flex_india+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---


[flex_india:26507] Re: // advanceddatagridcolumn header renderer query //

by flexorz group of flex corders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

yes , if the renderes are reusable , you may have to have it on the value object (or what every object that you use in the dataprovider this will be passed along with super.data) and have it accessed in your overriding methods.

cheers
dinukx


On Mon, Nov 9, 2009 at 1:20 PM, Arindam Dhar <arin.dhar@...> wrote:
Thanks for the reply.

outerDocument could be used with inline renderers. But what if item renderers are reusable components? afaik, you cant use outerDocument in the second scenario. you too think so ?

regards,

Arindam


On Fri, Nov 6, 2009 at 3:42 PM, flexorz group of flex corders <flexcodrz@...> wrote:
you can have the varriable declaried in the parent app , and refer it with outerDocument.variable name
google it ,there are plenty of examples. :-)

Dinukx



On Thu, Nov 5, 2009 at 12:18 PM, Arindam Dhar <arin.dhar@...> wrote:
Hi,

I have a header renderer class(CompaniesHeaderRenderer) which extends mx.controls.advancedDataGridClasses.Advanced DataGridHeaderRenderer, and use it the following way,

<mx:AdvancedDataGrid Column headerText=" Companies" dataField="Companies"
 headerRenderer= "CompaniesHeader Renderer" />

I have declared a variable inside CompaniesHeaderRenderer class, which must be set from outside. How  do I populate this var from outside? Anyone knows ?

regards,

Arindam









--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_india@...
To unsubscribe from this group, send email to flex_india+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---