This is a migrated thread and some comments may be shown as answers.

Highlight destination row on Drag/Drop

4 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 2
Alex asked on 07 Mar 2011, 06:23 PM
Is there a way to highlight the destination row on the drag/drop (mouseover)?

Right now it's a dotted line and the users feel that that's not enough of a visual cue.

Thanks

4 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 11 Mar 2011, 06:48 AM
Hi Alex,

Attached is a small sample that should guide you on how to implement the requirement in question.

Hope it helps. 

Regards,
Tsvetoslav
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Alex
Top achievements
Rank 2
answered on 11 Mar 2011, 08:35 PM
I've downloaded the example (and thanks), I see what you are doing and I will do the same and see how it works.

Just to let you know that you're example errors out when I drag/drop in the Javascript section (Microsoft JScript runtime error: 'get_item()' is null or not an object):

function mouseOverRow(sender, args) {
  
    if (dragging) {
        args.get_tableView().clearSelectedItems();
        args.get_item().set_selected(true);
    }
}

Specifically the .set_selected(true);


0
Accepted
Tsvetoslav
Telerik team
answered on 14 Mar 2011, 09:42 AM
Hello Alex,

Please, upgrade to the latest version of the controls - this issue has been fixed - or instead try using the args.get_gridDataItem() method. 

All the best,
Tsvetoslav
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Alex
Top achievements
Rank 2
answered on 08 Jun 2011, 12:22 AM
Finally got around to upgrading and it fixed it.

Thanks
Tags
Grid
Asked by
Alex
Top achievements
Rank 2
Answers by
Tsvetoslav
Telerik team
Alex
Top achievements
Rank 2
Share this question
or