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,332
    Vote Rating
    83
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar