Hi Deepak,

.       You can check the online documentation, that also includes examples:
http://flex.apache.org/asdoc/index.html

Unfortunately, the "frame" asdoc does not support links, so I will provide 
links in the "no frame" view.  Click on "Frames" to the top right to display 
the navigation panes.

http://flex.apache.org/asdoc/spark/components/MobileGrid.html
http://flex.apache.org/asdoc/spark/components/supportClasses/MobileGridColumn.html

.       Regarding the header styleName, I think I forgot to implement the 
functionality (remember, that's an experimental component): the property does 
nothing.
Please file a JIRA so that it's fixed.

.       Regarding renderers, you cannot subclass labelitemrenderer, because 
that's a whole line renderer.  
Actually MobileGrid uses the new notion of "sub-line renderer", with no default 
implementation so that any UIComponent can be used, for best performance.

you sub-renderer must implement the following interfaces:
general renderer:  
http://flex.apache.org/asdoc/spark/components/itemRenderers/IMobileGridCellRenderer.html
   
text based renderer :  
http://flex.apache.org/asdoc/spark/components/itemRenderers/IMobileGridTextCellRenderer.html
 

You have several example implementations:
http://flex.apache.org/asdoc/spark/components/itemRenderers/MobileGridTextCellRenderer.html
http://flex.apache.org/asdoc/spark/components/itemRenderers/MobileGridBitmapCellRenderer.html

and one in the MobileGrid second example: 
MyActionButtonPartRenderer.as

Have fun and don't hesitate if you have other questions.

Maurice

-----Message d'origine-----
De : Deepak MS [mailto:[email protected]] 
Envoyé : jeudi 6 mars 2014 12:51
À : [email protected]
Objet : MobileGrid Usage Example

Hello,


I started using MobileGrid. But ran into some problems:

I am not able to change header color and header text color.
I wanted to use a itemrenderer on one of the column and I extended 
labelitemrenderer but I got error saying I need to use IMobileGridCellRenderer, 
not quite sure what that does.
In same renderer, I was trying to draw background with red or green based on 
value, but this hides the labels and it completely colours the cell.
While sorting, it sometimes shifts entire grid on top, leaving lot of blank 
space below.

I have just started using it, but not sure if I am using it in a way it is 
supposed to be used.

It would be great if I can get a sample usage example(if you already have
one) with itemrenderer (changing background color based on values or changing 
font size and font color based on value) and a way to change header background 
color and header text font color and font size, as I couldn't find it anywhere.

Thank you for your time.

Cheers!

Reply via email to