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

After setting "AlternationCount", the drag is stopped working for alternate rows.

1 Answer 18 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Parthiv
Top achievements
Rank 1
Parthiv asked on 01 Oct 2019, 01:09 PM

Hello,

In our application, when we set the "AlternationCount", the alternate rows stopped dragging. If I remove the AlternationCount then all the rows start dragging.

I have demo project showcasing the behavior, but I can not upload that here.

Kindly let me know if you able to reproduce this issue at your end ?

Thanks,

Parthiv

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 02 Oct 2019, 02:46 PM

Hi Parthiv,

To make an element draggable, you need to set the DragDropManager.AllowDrag property to true. I believe that you have it set in the RowStyle, or in an implicit style that targets GridViewRow. However, alternated rows are styled through a different style property - AlternateRowStyle. If you are using an implicit style that targets all rows, things should be working fine. However, if you have the RowStyle set, you will need to set AlternateRowStyle too, so that you can propagate the AllowDrag value to the alternate rows.

Regards,
Ivan Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Parthiv
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or