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?



   



[flexcoders] spark DataGrid

2012-02-01 Thread Wouter Schreuders
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?


[flexcoders] Spark Datagrid - Show all rows using requestedRowCount variableRowHeight=true

2011-11-16 Thread sdl1326
I have a Flex Spark Datagrid that has variableRowHeight set to true. I also 
have the requestedRowCount set to the length of the dataProvider. So, in theory 
the rows shown should be the same number in the dataprovider(Arraycollection). 
However, the problem is that due to having variableRowHeight=true and some rows 
being multiline, in some instances, all of the rows are not getting shown.

Suggestions on how I can fix this issue?

Thanks, in advance.




[flexcoders] spark datagrid drag drop question

2011-10-12 Thread bhaq1972
Does anyone know if the drag drop functionality will feature in the next 
release of spark datagrid? 




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



 

[flexcoders] Spark DataGrid and DefaultGridHeaderRenderer

2011-09-28 Thread jitendra jain
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

[flexcoders] Spark Datagrid / IGridItemEditor.save() issue when using the tab key

2011-09-02 Thread bhaq1972
I have problem with the IGridItemEditor.save() method. 

According to the docs for save()...if the data isn't valid, then the data isn't 
saved and the editor is not closed.

So I setup an example to test this, and its seems ok. However, once I enter 
valid data and hit the Tab key, I expect the next column to contain the 
itemEditor. Instead its the column after that (which isnt correct).

Maybe i'm going about this the wrong way, so any advice would be great.
--
heres a little example demonstrating the problem.

?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; 
   xmlns:s=library://ns.adobe.com/flex/spark 
   xmlns:mx=library://ns.adobe.com/flex/mx 
minWidth=955 minHeight=600
 s:layout
  s:VerticalLayout horizontalAlign=center paddingTop=10/
 /s:layout


 !--
  problem: select first cell ...enter rubbish...then enter valid value...then 
tab = this
  doesnt tab to the next cell instead it tabs to the next one after that.   

  whats going on?
 --

 fx:Script
  ![CDATA[
   import mx.collections.ArrayCollection;

   [Bindable]
   private var myDP:ArrayCollection = new ArrayCollection([
{col0:something, col1:4, col2:'goes', col3:'in', col4:'here'},
{col0:maybe, col1:3, col2:'this', col3:'one', col4:'as well'},
{col0:what, col1:1, col2:'about', col3:'this', col4:'one'},
{col0:sean paul, col1:3, col2:'red', col3:'temperature', col4:'um'},
{col0:chaka demus, col1:3, col2:'green', col3:'and pliers', 
col4:'um'} 
]); 

  ]]
 /fx:Script

 s:Label text=Edit a cell in col0. Enter rubbish, then tab. This will 
highlight error. Then enter 'hello' and tab againI expect to tab to col1 
not col2/

 s:DataGrid id=dg editable=true dataProvider={myDP} width=50%
  s:columns
   s:ArrayList
s:GridColumn dataField=col0 headerText=col0
 s:itemEditor
   fx:Component
 s:DefaultGridItemEditor
  fx:Script
![CDATA[

  override public function save():Boolean 
  {
if(this.value == hello)
{
  this.textArea.errorString = ;

  super.save();
  return true;
}
else
{
  this.textArea.errorString = Please enter: hello;

  return false;
}
  }

   ]]
  /fx:Script
 /s:DefaultGridItemEditor
/fx:Component
  /s:itemEditor
/s:GridColumn
s:GridColumn dataField=col1 headerText=col1/
s:GridColumn dataField=col2 headerText=col2/
s:GridColumn dataField=col3 headerText=col3/
s:GridColumn dataField=col4 headerText=col4/
   /s:ArrayList 
  /s:columns
 /s:DataGrid

/s:Application




[flexcoders] Spark Datagrid selectedItem question

2011-08-24 Thread bhaq1972
How would I go about making the datagrid.selectedItem the ONLY editable row?

A bit like making individual columns editable by setting GridColumn.editable.

Thanks

BH