Re: [flexcoders] spark DataGrid

2012-02-02 Thread Tandon, Rishi
http://stackoverflow.com/questions/5900231/flex-4-5-hero-sdatagrid-rowcount 




 From: Wouter Schreuders wschreud...@gmail.com
To: flexcoders@yahoogroups.com 
Sent: Wednesday, February 1, 2012 6:05 PM
Subject: [flexcoders] spark DataGrid
 

  
Hi All

Does anyone know how I can get the actual number of visible rows for a spark 
datagrid similar to the mx datagrid which had the handy feature rowCount. 

Basically I want my last itemrenderer to do something different if it's the 
last itemrenderer. I thought I had this licked with the code:

if(rowIndex == dataProvider.length) 

since I don't have a scrollbar and display all itemrenderers at once in the 
datagrid I thought that the dataprovider's length and the total number of rows 
would work, but this is not the case, sometimes there are 1 or 2 more 
itemrenderers than displayed?

 

Re: [flexcoders] spark DataGrid

2012-02-02 Thread Wouter Schreuders
Thanks, I actually decided to just rebuild the entire thing using spark
lists. DataGrid seems very problematic.

On 2 February 2012 10:19, Tandon, Rishi rishitandon...@yahoo.com wrote:

 **


 http://stackoverflow.com/questions/5900231/flex-4-5-hero-sdatagrid-rowcount


   --
 *From:* Wouter Schreuders wschreud...@gmail.com
 *To:* flexcoders@yahoogroups.com
 *Sent:* Wednesday, February 1, 2012 6:05 PM
 *Subject:* [flexcoders] spark DataGrid


 Hi All

 Does anyone know how I can get the actual number of visible rows for a
 spark datagrid similar to the mx datagrid which had the handy feature
 rowCount.

 Basically I want my last itemrenderer to do something different if it's
 the last itemrenderer. I thought I had this licked with the code:

 if(rowIndex == dataProvider.length)

 since I don't have a scrollbar and display all itemrenderers at once in
 the datagrid I thought that the dataprovider's length and the total number
 of rows would work, but this is not the case, sometimes there are 1 or 2
 more itemrenderers than displayed?



   



Re: [flexcoders] Spark DataGrid and DefaultGridHeaderRenderer

2011-09-29 Thread jitendra jain
I have resolved this by extending DefaultGridItemRenderer

 
Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



From: jitendra jain jitendra_jain_2...@yahoo.com
To: flex group flex flexcoders@yahoogroups.com
Sent: Wednesday, 28 September 2011 5:35 PM
Subject: [flexcoders] Spark DataGrid and DefaultGridHeaderRenderer


  
Hi Guys,

  I want to set the css for the TextSelectedColor, TextRollOverColor and 
Underline the selected or roll over text for the both DataGrid and 
DefaultGridHeaderRenderer..? Please help.. which are the style to look into?

 
Thanks,

with Regards,
Jitendra Jain