1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    22
    Vote Rating
    0
    david.p is on a distinguished road

      0  

    Question How to get the row index of a grid having only a XY position ?

    How to get the row index of a grid having only a XY position ?


    I'm trying to get the row index of a grid when I drag&drop an image into it.
    For esthetic reasons, the drag element has no offset, so when I move it, it sticks right under the mouse cursor. This is not negociable.
    Consequently on the nodeDrop event, the result of event.getTarget() is actually the dragged image

    So basically I only have got the event.getXY() to know where the image is dropped.

    So I need to know how to get the rowIndex of a grid having only an XY position ? (Unless someone know how to get the event target beyond the dragged image ?)

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi,

    Could you please send a piece of your code in order to understand your problem more specificly.

    Thx
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Sep 2008
    Posts
    23
    Vote Rating
    0
    robertocarvajal is on a distinguished road

      0  

    Default


    try with gridview.indexOf(node) it will return the index of that particular node, you can get the node either by doing something like gridview.getSelectedNodes()[0] (first selected node) or if you are using the dragdrop plugin, the drop event of the plugin also passes the affected node.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi