Radgridview drag drop issue in Chrome browser

5 posts, 0 answers
  1. Ratan
    Ratan avatar
    3 posts
    Member since:
    Jul 2015

    Posted 13 Jul 2015 Link to this post

    in RadGrid_RowDrop event, I am fetching the index of row dragged, the index of the row dropped and then doing further operations on the grid.

     it's working absolutely fine in Mozilla firefox 39.0 and IE10 but in Google Chrome 43.0 its throwing an exception(System.NullReferenceException). 

     In the front end I noticed that exception is because

        Dim idxDestRow = e.DestDataItem.ItemIndex line as we get "nothing" value for e.DestDataItem,e.DestinationGrid and E.destinationTableView

    but getting valid values in other browsers.

     

     

    Below are the code used:

     Protected Sub RadGrid_RowDrop(ByVal sender As Object, ByVal e As GridDragDropEventArgs)

                     Dim idxRowToMove = e.DraggedItems(0).ItemIndex
                    Dim idxDestRow = e.DestDataItem.ItemIndex
             'doing the stuff

     End Sub

     

    Please help!!!!!

  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 13 Jul 2015 Link to this post

    Hello,

    As you posted your request under the Telerik Platform forums, I cannot tell for sure which RadGrid component you're using. We provide a RadGrid for multiple platforms - WPF, WinForms, Silverlight, ASP.NET AJAX and therefore we would need to know which component you're inquiring about.

    I would also recommend that you post your queries under the forum of the specific product as this will ensure that your questions reach the respective development community and our support specialists. You can also take advantage of our support plans to be able to submit support requests directly for the DevTools products and have a guaranteed 24hour response time.


    Regards,
    Tina Stancheva
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Ratan
    Ratan avatar
    3 posts
    Member since:
    Jul 2015

    Posted 13 Jul 2015 in reply to Tina Stancheva Link to this post

    Thanks for your quick reply. 

    it is used in ASP.NET(aspx page) platform without ajax implementation. 

  4. Ratan
    Ratan avatar
    3 posts
    Member since:
    Jul 2015

    Posted 13 Jul 2015 in reply to Ratan Link to this post

    I have found below thread which i guess match my case. My code also work fine when I set zoom level to 100%.

    http://www.telerik.com/forums/rad-grid-drag-and-drop-feature-is-not-working-in-chrome-browser-when-zoom-level-is-not-100

    So Could you please let us know if it is resolved.if yes please provide us with necessary information.

     

    Regards.

    Ratan



  5. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 16 Jul 2015 Link to this post

    Hello Ratan,

    Note that the zoom feature of the browsers is not supported. This is because the feature is implemented differently in every browser and that produces inconsistent behavior.

    Moreover when dragging items on a zoomed page the DOM events do not have the correct arguments. That breaks the script logic that is used in the drag-drop functionality.

    Regards,
    Viktor Tachev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top