I disabled horizontal scrolling on purpose, because that's not the way it's 
expected to work.
When horizontal and vertical scrolling are enabled,  the user can scroll freely 
through the grid like it is a large "map" or an "image".
What is needed is EITHER horizontal OR vertical scrolling but not both. The 
direction of the scroll would be given by the first finger move.
The behavior described above is not implemented in Mobile Flex.

In the meantime, you can just set horizontalScrollPolicy back to default, and 
you will get the default behavior (that is H+V scrolling).

Deepak, I am sorry, but could you proceed with this conversation on the public 
space ([email protected]).  There is no reason it should be private.

Put your initial question on the mailing list, and I will copy my answer as if 
it was the first time ;-)

Maurice

PS: I have a strange feeling of deja-vu ;-)

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

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/MobileGri
> dColumn.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/IMobileGri
> dCellRenderer.html
> text based renderer :
> http://flex.apache.org/asdoc/spark/components/itemRenderers/IMobileGri
> dTextCellRenderer.html
>
> You have several example implementations:
>
> http://flex.apache.org/asdoc/spark/components/itemRenderers/MobileGrid
> TextCellRenderer.html
>
> http://flex.apache.org/asdoc/spark/components/itemRenderers/MobileGrid
> BitmapCellRenderer.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