[flexcoders] Re: how to delay headerRenderer ?

2005-04-25 Thread viraf_bankwalla


We have the same situation.  Once we receive data from a service we 
create the columns (as it is based on the data in our case) and 
assign the data provider to the grid.  NOTE - if you assign a data 
provider when there are no columns created Flex will try to create 
columns based on the objects attributes.  So you need to take care
 of this

- viraf

--- In flexcoders@yahoogroups.com, sanjayd [EMAIL PROTECTED] wrote:
 
 Hi.
 
 I have a 'headerRenderer' that creates dynamic column headers 
based on
 the results from a webService dataprovider. The problem is that 
when I
 load the app on my browser for the first time, the result of the
 dataProvider is still 'undefined', so the column headers do not 
render
 properly. However, when I reload the app by pressing 'refresh' on 
my
 browser, the column headers look good. How can I solve this 
problem ?
 Thanks in advance.
 
 Sanjay
 here is the webService tag:
 
 mx:WebService id=ws
 
wsdl=http://localhost:8080/axis/services/PositionsRepoRatesService?
wsdl
 fault=faultHandler(event.fault.faultstring)
 concurrency=single load=runRepoRateServices() useProxy=false
 mx:operation name=getRepoRates
 result=repoRateResultHandler(event.result)
   mx:request
   date{soapRequest_mmdd_date}/date
   /mx:request
   /mx:operation
 /mx:WebService





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: how to delay headerRenderer ?

2005-04-25 Thread sanjayd


Viraf: Thanks for your response. Are you saying that the dataGrid
should not have any dataProvider assigned to it in the beginning and
then dynamically assign a dataProvider to the dataGrid only after the
data has been obtained ?

Sanjay

--- In flexcoders@yahoogroups.com, viraf_bankwalla
[EMAIL PROTECTED] wrote:
 
 We have the same situation.  Once we receive data from a service we 
 create the columns (as it is based on the data in our case) and 
 assign the data provider to the grid.  NOTE - if you assign a data 
 provider when there are no columns created Flex will try to create 
 columns based on the objects attributes.  So you need to take care
  of this
 
 - viraf
 
 --- In flexcoders@yahoogroups.com, sanjayd [EMAIL PROTECTED] wrote:
  
  Hi.
  
  I have a 'headerRenderer' that creates dynamic column headers 
 based on
  the results from a webService dataprovider. The problem is that 
 when I
  load the app on my browser for the first time, the result of the
  dataProvider is still 'undefined', so the column headers do not 
 render
  properly. However, when I reload the app by pressing 'refresh' on 
 my
  browser, the column headers look good. How can I solve this 
 problem ?
  Thanks in advance.
  
  Sanjay
  here is the webService tag:
  
  mx:WebService id=ws
  
 wsdl=http://localhost:8080/axis/services/PositionsRepoRatesService?
 wsdl
  fault=faultHandler(event.fault.faultstring)
  concurrency=single load=runRepoRateServices() useProxy=false
  mx:operation name=getRepoRates
  result=repoRateResultHandler(event.result)
  mx:request
  date{soapRequest_mmdd_date}/date
  /mx:request
  /mx:operation
  /mx:WebService





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: how to delay headerRenderer ?

2005-04-25 Thread viraf_bankwalla


That is what I am doing as the data that I receive from the service 
includes the column and row information.

- viraf

--- In flexcoders@yahoogroups.com, sanjayd [EMAIL PROTECTED] wrote:
 
 Viraf: Thanks for your response. Are you saying that the dataGrid
 should not have any dataProvider assigned to it in the beginning 
and
 then dynamically assign a dataProvider to the dataGrid only after 
the
 data has been obtained ?
 
 Sanjay
 
 --- In flexcoders@yahoogroups.com, viraf_bankwalla
 [EMAIL PROTECTED] wrote:
  
  We have the same situation.  Once we receive data from a service 
we 
  create the columns (as it is based on the data in our case) and 
  assign the data provider to the grid.  NOTE - if you assign a 
data 
  provider when there are no columns created Flex will try to 
create 
  columns based on the objects attributes.  So you need to take 
care
   of this
  
  - viraf
  
  --- In flexcoders@yahoogroups.com, sanjayd [EMAIL PROTECTED] 
wrote:
   
   Hi.
   
   I have a 'headerRenderer' that creates dynamic column headers 
  based on
   the results from a webService dataprovider. The problem is 
that 
  when I
   load the app on my browser for the first time, the result of 
the
   dataProvider is still 'undefined', so the column headers do 
not 
  render
   properly. However, when I reload the app by pressing 'refresh' 
on 
  my
   browser, the column headers look good. How can I solve this 
  problem ?
   Thanks in advance.
   
   Sanjay
   here is the webService tag:
   
   mx:WebService id=ws
   
  
wsdl=http://localhost:8080/axis/services/PositionsRepoRatesService?
  wsdl
   fault=faultHandler(event.fault.faultstring)
   concurrency=single load=runRepoRateServices() 
useProxy=false
   mx:operation name=getRepoRates
   result=repoRateResultHandler(event.result)
 mx:request
 date{soapRequest_mmdd_date}/date
 /mx:request
 /mx:operation
   /mx:WebService





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/