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

Kendo grid drag and drop

5 Answers 583 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jesil
Top achievements
Rank 2
Jesil asked on 20 Nov 2019, 06:58 AM

https://stackblitz.com/edit/react-zbhrxe?file=Hello.js   

how can i drag a particular field in the same row, in the grid with using the reorder function.

in my grid i have star icon, which drags the entire column vertically but my requirement is to drag that star horizontally with in a particular grid column.    

5 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 20 Nov 2019, 08:52 AM

Hello,

The Grid has a built-in column reordering functionality. Please take a look at the following article and demo:

https://www.telerik.com/kendo-react-ui/components/grid/columns/reordering/

Regards,
Stefan
Progress 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
0
Jesil
Top achievements
Rank 2
answered on 20 Nov 2019, 09:50 AM

that's helps!. but i don't need like that. actually i have to re-arrange the values of the entire row,  Example i have an start  icon on my grid i want move that icon to under the job title  field.. like an calendar scheduler(not mean that.) 

https://stackblitz.com/edit/react-zbhrxe?file=Hello.js

 

0
Stefan
Telerik team
answered on 21 Nov 2019, 07:02 AM

Hello,

I would like to clarify some things before proceeding.

1) Does only the icon(star) element has to be moved across the columns?

2) If the entire column value has to be moved, would that create an incorrect Grid as we will have cases from the example the "Equipment Code" will be under the "Equipment Name"?

I will be expecting the additional details and proceed with suggesting how it can be done.

Regards,
Stefan
Progress 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
0
Jesil
Top achievements
Rank 2
answered on 22 Nov 2019, 06:09 AM

Please see the attachment, that's what i'm trying to achieve.

In my attachment there is a rounded icon which corresponds to a date(Monday).And i want to drag and drop the icon to a new date(Tuesday) within the same row.Column wise drag and drop is not allowed.....This is what i'm trying to achieve and i'm eager to know whether this can be achieved using kendo.

https://stackblitz.com/edit/react-zbhrxe?file=Hello.js

Any help is appreciated.

Thankyou

0
Stefan
Telerik team
answered on 22 Nov 2019, 07:46 AM

Hello,

There are a couple of approaches that can be used in this case:

1) Use the dragEnd event to get the element where the icon was dropped. Then programmatically append the icon element inside the td where it was dropped.

2) Render icons inside all cells and show and hide them based on dynamically changed classes which will make them visible.

Additionally, as based on the picture this seems like scheduling functionally, please check our Scheduler component, which has this drag and drop supported out of the box and has a view that covers the days of the week. It can prove as a better solution in this case:

https://www.telerik.com/kendo-react-ui/components/scheduler/

 

Regards,
Stefan
Progress 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
Tags
General Discussions
Asked by
Jesil
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Jesil
Top achievements
Rank 2
Share this question
or