Oh! That's great. That's really very kind of you. I'll go through those
links and try to get a hang of this component.
While  I was going through one of the link, I came across this limitation:
MobileGrid does not scroll horizontally, even when the column widths
exceeds the component's width.

Is there a work around to get rid of this limitation? As I need to display
dynamic columns, which would range from 10-20 :( Without horizontal scroll
it would be too difficult.

Thank you once again Maurice.

Cheers!


On Thu, Mar 6, 2014 at 5:28 PM, Maurice Amsellem <
[email protected]> wrote:

> 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