Spark Datagrid on a mobile application, handling scrolling problem

I have a datagrid spark on a mobile application, I put the

interactionMode="touch"

and the scroll of the dataGrid control is good, I had a few problems by adding a selectionChange eventListener, because the scroll dataGrid will automatically change the selection and instead, simply scroll it, binded function will begin...

How can I prevent this?

<s:DataGrid id="lista"  top="350" bottom="50" right="0" left="0"


dataProvider="{listaPdv}"


verticalScrollPolicy="auto"


rowHeight="100"


selectionColor="#b64947"


skinClass="skins.dataGridSkin"


itemRenderer="components.dataGridItemRendererText"


fontFamily="Verdana"


fontSize="30"


interactionMode="touch"


horizontalScrollPolicy="auto"



selectionChange="datagrid_select(event)">

Help... It's really annoying and I can't scroll datagrid...

I solved it by using workaround... bind the selectionChange event instead, I've linked the mouseDown and mouseUp and then check the time between the two actions and if the time is less then a defined value, the selectionChange event is dispatched...

sortableColumns = "false".

rowHeight = "100".

interactionMode = 'touch '.

mouseDown = "grigliaData_mouseDownHandler (event)" "

mouseUp = "grigliaData_mouseUpHandler (event)" "

Top = "230" left = "5" right = low "5" = "50".

dataProvider = "{listaEventi}" width = "100%" height = "100%" >

As a Code

private var _lastClickEvent:int;

protected function grigliaData_mouseDownHandler(event:MouseEvent):void

{

_lastClickEvent = getTimer();

}

protected function grigliaData_mouseUpHandler(event:MouseEvent):void

{

If (getTimer()< _lastclickevent="" +="" 200)="" 200="">

{

Back to selectedIndex

}

}

Tags: Flex

Similar Questions

  • Microsoft Mobile Mouse 3500, scrolling problems

    I bought a Microsoft Mobile Mouse 3500 target a few months ago and it works great so far. When I scroll it jumps a long distance and is not smooth. I tried to lower the speed of scrolling in the mouse settings, but it does not fix it. The only way I can break free, it is by downloading an app on the app store for Google Chrome (I don't know the name of the application). Help, please. Thanks in advance.

    Unplug the receiver to the usb port.   Plug it in again.

    I can only conclude this is a bug in the firmware/hardware and the receiver must be restarted.   It has nothing to do with the drivers because it happens with windows, osx and linux.
  • the 1000 mobile wireless mouse scrolling problem

    Hello everyone.

    Recently, I bought a 1000 wireless mobile mouse to work with my laptop. I very often work in Netbeans (7.0). As OS, I have windows 7 ultimate 64B.

    I have a problem with scrolling wheel. In windows Explorer, Commander total and other applications, it works fine. But in Netbeans does'nt works as it should.

    To scroll the value default 3 rows of scrolling instead of the one step of scroll whell I have to scroll ~ 10 steps and very fast speed. :(.

    This is a big drawback. Any ideas to fix this?

    Thanks in advance.

    Hello

    If you have the problem of scrolling with a single program is Netbeans 7.0, this could be a possible bug.

    There could be some applications that do not support the features of fledge full of some of the equipment.

    I also suggest that you connect a different mouse (USB) and check if you have any questions scrolling with these applications.

    This will help to understand if it's bug or is related to the wireless mouse

  • Export datagrid offline mobile application file able to open in Excel

    I created a mobile application offline using Flash and I have a datagrid I want to export/save as a file (perhaps csv) which later opens in Excel.  I appreciate all help.

    I modified the file, you sent me, is simple to understand:

    1 - Addition of two variables 'CSVData' and 'csvHeader '.

    2. whenever you call a 'stop' event, you add data to the variable "CSVData" (variable that stores data in the body).

    3 added the "writeCSV" function when you want to save the file simply call this function.

    Note: I just added the variable 'CSVData' the event 'stopTimeCount1' for the test, do not forget to add other events.

  • Why are there not more tutorials or information on mobile applications

    Today, I tried a bit of the creation of mobile applications and photoshop express and ran into issues but found no support. am I missing something? is there a guide somewhere? more tutorials? I have not found a single tutorial for photoshop express. I just wanted to add that text to a picture should be pretty easy, I am a very good user of the psp but could not understand it at all. frustrating and tedious. also with first clip I tried to cut an of my clips but could not accurate at all so I wanted to zoom in or on the side or do soemthing but it doesn't seem to be a way to do it properly. If disappointing. What is the problem? are these real-world applications? Why is there no supported no documentation and apparently no discussion online thereon

    Hi Marni,

    Sorry you had trouble finding support and tutorial content. Here are a few links for Clip first you might find useful:

    Thanks for letting us know that you had difficulty with trimming. The team noted the request to improve the cutting. In the meantime, try splitting a clip using the read head rather than adjust the handles: Cup vs Clip splitting | First Clip: Made with Clip

    Good luck and don't hesitate to reach out if you have any questions or ideas on how to improve the application.

    Bronwyn

  • When will we see mobile applications on android?

    Hi, new mobile applications CC I received emails on today look great, but when will see us android versions?

    Get a rating 4 Galaxy this week and relay want these applications. It seems a bit of a bad shot and make them only available to apple users. I understand the devs are working on room light mobile for android, but at least give us droid users any word on what is planned out and maybe even some rugged time.

    News welcome.

    Thank you.

    You can scroll down in the following links to see what the system requirements are as for what Android devices, they will work on.

    Note that they list Adobe on the app as the developer:

    Adobe Creative Cloud - Android applications on Google game

    Adobe Illustrator Draw - Android applications on Google game

    https://play.Google.com/store/apps/details?ID=com.Adobe.creativeapps.gather

    https://play.Google.com/store/apps/details?ID=com.Adobe.photoshopmix

    https://play.Google.com/store/apps/details?ID=com.Adobe.lrmobile

    https://play.Google.com/store/apps/details?ID=com.Adobe.premiereclip

    http://www.Adobe.com/products/catalog/mobile._sl_id-contentfilter_sl_catalog_sl_mobiledevi ces.html

    This site shows who is available for Android. First Clip and Illustrator draw still need to be updated to show that they are now available on Android.

    Related links more mobile app:

    FAQ: What mobile applications are available for users of creative Cloud?

  • What equivalent of mx datagrid.editedItemPosition in spark datagrid?

    Hello

    I use spark datagrid in my application. Basically porting of the sdk 3.1 to 4.5.

    There is a use case where a cell in the grid to focus on the particular event.

    In the case of mx datagrid, the next thing works for her 0

    myMxDatagrid. editedItemPosition = {columnIndex: 1, rowIndex: 0};

    How to implement using same behavior using spark datagrid.

    ----------------------------------------------------------------------------

    Thanks in advance,

    Prithveesingh Zankat.

    MySparkDataGrid.startItemEditorSession (0, 1)

  • Spark datagrid GridItemRenderer cannot access a property or method of a null object reference

    Hello

    I created a spark datagrid with a griditemrender, but when my application startup and the dataprovider is null and have not given.

    At the error

    "Cannot access a property or a method of a null object reference.

    When have given do not have problem

    I was used to the griditemrender:

    prepare method, creationComplete, updateComplete, and all have the same aplication error begins

    any idea of this error?

    +++ My itemrender +++

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:GridItemRenderer ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark" >

    < fx:Script >

    <! [CDATA]

    override public function prepare(hasBeenRecycled:Boolean):void

    {

    valueDisplay.selected = data [column.dataField] as Boolean;

    }

    []] >

    < / fx:Script >

    < s:CheckBox id = "valueDisplay" / >

    < / s:GridItemRenderer >

    Maybe you can try a preliminary validation before the award of 'data '.

    Of

    valueDisplay.selected = data[column.dataField] as Boolean;
    

    TO:

    if(data)
    {
        valueDisplay.selected = data[column.dataField] as Boolean;
    }
    

    I would like to know if it works.

    Best regards

    Pablo Souza

  • Spark Datagrid columnheader click

    Hello!

    With the next Eventlistener I can detect a click on the Spark Datagrid header.

    dg.sortableColumns = false;
    dg.columnHeaderGroup.addEventListener (MouseEvent.CLICK, headerClickListener);
    ……………..
    Event handler header
    private void headerClickListener(event:MouseEvent):void {}
    Alert.Show ("something");

    But how do I detect the current column of the user clicked Headeritem?

    In my view a Build-In Header-Click-event and a Build-In Columnlocking is a "Must Have" of a professional Datagrid.

    Will there be a Flexupdate with a Datagrid improved spark in next time?

    Greetings

    Uwe

    Instead of listening for the GridEvent.GRID_CLICK event. The GridEvent will be the index of the column in it. We return all the events of the mouse on the DataGrid as GridEvents.

    -Kevin

  • Question of selection with editable Spark DataGrid

    Hello world

    I'm evaluating new Spark DataGrid and I am having a very strange problem with the selection behavior in an editable instance.

    Here is my test application: http://www.playcalliope.com/flex/DataGridSelectionIssue.html (code here: https://gist.github.com/1129160)

    And here are the steps to reproduce the problem:

    1. Select the first cell in the upper left corner of the grid (the one with 'Gabriele');
    2. click it once more, the Editor appears;
    3. now, click on the cell just to the right (the one with "Genta").

    You should see that edition ends as he supposed to do, but the selection is placed on the third cell (the one with a 5 in it) on the one you clicked on. Play a bit with the grid, you will see that this is not the only case, but selection really behaves randomly.

    I use SDK 4.5.1.21328.

    I think that it is a very basic use case... I can't believe that this does not work, what don't get me?

    Thank you very much

    Gabriele Genta

    Message was edited to add the living example

    Your race in a bug known, https://bugs.adobe.com/jira/browse/SDK-30088.

    The bug will be fixed in the Mega version. To work around the bug, you can create a custom editor and delete the "dataGrid.validateNow ()"; call to DataGridEditor.save ().

    Here's how I modified your example to work around the bug:


    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx".
    minWidth = "955" = "600" minHeight
    backgroundColor = "#E7E7E7."
    creationComplete = "application1_creationCompleteHandler (event)" > "
       
           
       

       
       
            Import mx.collections.XMLListCollection;
    Import mx.events.FlexEvent;
    protected function application1_creationCompleteHandler(event:FlexEvent):void
    {
    testGrid.dataProvider = new XMLListCollection (testData.item);
    }
    ]]>
       

       
       
           
               
                   
                        1
                        Gabriele
                        Genta
                        5
                        molto
                   

                   
                        10
                        Weill
                        Pallino
                        10
                        poco
                   

               

           

           
           
               
                   
                        Import mx.collections.ICollectionView;
    Import mx.collections.ISort;
                           
    public void save (): Boolean
    {
    If (! validate())

    Returns false;
                               
    newData:Object var = value;
    var property: String = column.dataField;
    Object: data var = data;
    var typeInfo:String = "";
    for each (var variable: XML in describeType (data) .variable)
    {
    If (property == [email protected] ())
    {
    typeInfo = [email protected] ();
    break;
    }
    }
                               
    If (typeInfo is "String")
    {
    If (!) (newData) is String))
    newData = newData.toString ();
    }
    ElseIf (typeInfo == 'As')
    {
    If (!) () newData is uint))
    newData = uint (newData);
    }
    ElseIf (typeInfo == 'int')
    {
    If (!) (newData) is int))
    newData = int (newData);
    }
    ElseIf (typeInfo == "Number")
    {
    If (!) (newData) is number))
    newData = Number (newData);
    }
    ElseIf (typeInfo == "Boolean")
    {
    If (!) (newData) is Boolean))
    {
    var strNewData:String = newData.toString ();
    If (strNewData)
    {
    newData = (strNewData.toLowerCase () == 'true')? true: false;
    }
    }
    }
                               
    If (property & data [property]! == newData)
    {
    If the data is sorted, disable sorting for published data.
    var sort: ISort = null;
    If (dataGrid.dataProvider ICollectionView)
    {
    var dataProvider:ICollectionView = ICollectionView (dataGrid.dataProvider);
    If (dataProvider.sort)
    {
    type = dataProvider.sort;
    dataProvider.sort = null;
    }
    }
                                   
    var oldData:Object = data [well];
    data [property] = newData;
    dataGrid.dataProvider.itemUpdated (data, property, oldData, newData);
                                   
    Restoration of the kind. The data will be not sorted due to this change.
    If (out)
    . Fate ICollectionView (dataGrid.dataProvider) = classification;
    }
                               
    Returns true;
    }
    ]]>
                                   
               
               
           
       
       
       
    Editable = "true" selectionMode = "single-cell".
    itemEditor = "{ClassFactory (MyDefaultEditor) new}" >
           
               
                   
                   
                   
                   
               

           

       

  • Need example JSON for mobile application

    Hello, everyone.  I'm looking for a simple example of a mobile application built in heroes who can hit a service JSON and parse the output.  I thank very you much in advance!

    Try the following code:


    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark" creationComplete = "init ()" "
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >
       
           
           
           
           
           
           
           
           
    resultFormat = "text".
    "URL ="http://geocoding.cloudmade.com/8ee2a50541944fb9bcedded5165f09d9/geocoding/find_structured/ house:80;+street:Linienstra%C3%9Fe;+city:Berlin.js"
    result = "ParseJSONDirections (Event)" "
    showBusyCursor = "true" >
           
           
           
           
       

       
       
       
            Import mx.rpc.events.ResultEvent;

    private void ParseJSONDirections(event:ResultEvent):void
    {
    var rawData:String = String (event.result);
    lblTest.text = rawData;
    }
    private function init (): void
    {
    DirectionGetter.send ();
    }
    ]]>
           
       

  • Counting of mobile applications with Image

    Hey everybody.  We thank you in advance to research.

    I tried for hours to get a look on my mobile application view and had no luck.  When I run the application, the image I use completely covers the screen and all the parts I have in view.

    Here is part of the Mobile App .mxml file just in case it is useful to all:

    <?xml version="1.0" encoding="utf-8"?>
    <s:MobileApplication
    
     xmlns:fx="http://ns.adobe.com/mxml/2009"  xmlns:s="library://ns.adobe.com/flex/spark"                     xmlns:mx="library://ns.adobe.com/flex/mx"
    firstView="views.HomePage" skinClass="skins.appskin">

    And here's my .mxml skin: (it's very simple for the moment, I just want to get a basic version of work.)

    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" 
              xmlns:s="library://ns.adobe.com/flex/spark">
         <!-- host component -->
         <fx:Metadata>
              [HostComponent("spark.components.MobileApplication")]
         </fx:Metadata>
         
         <!-- states -->
         <s:states>
              <s:State name="disabled" />
              <s:State name="normal" />
         </s:states>
         
         <s:BitmapImage source="@Embed('Cereal.jpg')"
                           fillMode ="scale" left="0" right="0"  top="0" bottom="0"/>
         
              <s:ViewNavigator id="Navigator" left="0" right="0" top="0" bottom="0" minWidth="0" minHeight="0"/>
         
    </s:Skin>

    Any help is very appreciated.  Thank you!

    In the pre-release version of MAX view extends group and has no skin, but in the view latest prolonged SkinnableContainer now so you can skin directly the view.  Is that what helps what you're trying to do?

  • No visible profile pictures on the mobile application

    My friends profile pictures do not appear on the mobile application where, as they are visible on the desktop application. I tried to reinstall it. Did not work.

    Profile photos do not appear on Skype for Windows Phone.

  • Manually remove the iOS App files in the folder "Mobile Applications" on a Mac.

    In my eagerness, trying to save valuable disk space, I deleted all the files (40 GB) in the mobile apps on my mac. This folder has accumulated over 900 files app over the years. I am currently using only 160 apps on my iPhone. I deleted all the files (and emptied the Recycle Bin). After having to remove it, I was unable to download, only the applications that I use currently on the phone (160 of them), in my iTunes again (from the app store in iTunes). This is because iTunes App store thinks that I have already downloaded these applications; where I have deleted just manually in the Mobile Applications folder.

    After reading on the web that it is a mistake, I got cold feet and began a restoration of my time Machine to all 900 app files back.

    I started the process of restoring time Machine is because the thinning app is NOT allowing me to transfer my iTunes on mac purchases. I first thought I can "put" just the 160 apps from my phone, Mobile Applications to iTunes folder. Now, I realize that I can do is not "transfer purchases". I am on iOS 9.2.1 (6s iPhone Plus) and OS X El Captain (10.11.3) (Macbook Air).

    Moreover, I have a PDF file with a list of all the files in the Mobile Applications (900 application files) folder. I did it using an application called Print window. So I did not have a detailed list of all the files (apps) that I never downloaded. This is so that I can download the Apps on my iPhone directly (from the cloud) in case I need an app on my phone, in the future

    Critical how's this for keep the files in the folder of Mobile Applications on my Mac? In which case I have to restore my iPhone, applications will only download from the Cloud? If the answer is Yes to this question, I can go ahead and delete all the files in the folder of Mobile Applications manually to recover a good amount of disk space?

    I hope I'm clear in my question and description.

    Thank you!

    You have more need to keep a local copy of the apps. Any application that you do not have at the time of a restoration is downloaded from the cloud provided that it is always available. You can view your list of 160 apps for everything you'd be really sad to lose and keep a copy of those. You don't necessarily need in the library. As long as you have the file .ipa somewhere you can add new in your library at a later date.

    TT2

  • The mobile application HP ePrint and print server

    Can I print from the mobile application HP ePrint for HP Officejet 4500 g510a printer connected to the router via TP-Link PS110U print server?

    HP Officejet 4500 HP ePrint mobile app supports only, but has no wireless or Ethernet capabilities. Can I use TP-Link PS110U for Officejet 4500 to connect to a home network? Can I use HP ePrint mobile Android app?

    What do I need enter instead of the email address printer ePrint mobile application for network printer without support ePrint (only the HP ePrint mobile app support)? Do I need to use the printer IP-adress?

    Hi Xaron,

    Welcome to the Forums of HP's Support.

    The printer model that you gave in your post, HP Officejet 4500 G510A made unsupported wireless or ethernet connectivity.  Without one of these methods of connectivity being available, there is no way taken in charge for the printer to communicate with a wireless device using the HP ePrint app. I've included a link to your printer's specifications.

    HP Officejet 4500 (G510) all-in-One printer Series product specifications

    http://support.HP.com/us-en/document/c01954185

Maybe you are looking for

  • How to install the plugin silverlight for samsung s5 andriod phone on firefox mobile

    website says silverlight required to view GIS maps. How can I install on my Samsung S5?

  • HP dv8t-1000 Bluetooth on Win8 does not

    After installing Win8, bluetooth does not work. According to the info on your website, it seems he does not intend to support Win8 on my device. Just to let you know, I have install Win8 on my laptop, I did HP recovery, then upgraded to Win8. Everyth

  • How to build an application to queue?

    I want to apply for the queue using labview. If I have a list of data, for example 100,200,300,400,500,600 and 700 stored on table or matrix, and then using a queue function it process the data one by one after each other. How I do that? I'm using la

  • V570 with WIndows 7 mute button?

    I just bought a Lenovo V570 with WIndows 7. One thing I don't see is a mute button. Is there such a thing? Or a shortcut? Any help is appreciated.

  • Linksys wireless x 1000 ip problem

    Hello I installed the Linksys x 1000 modem replaces the old modemModem gateway ip 192.168.1.1 192.168.5.100 I change it (it was my network infrastructure) I have a network printer on my network address 192.168.5.40192.168.5.XX goes as my address in t