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

radscheduler - radgrid drag & drop Refresh

10 Answers 133 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mehmet
Top achievements
Rank 1
Mehmet asked on 23 Feb 2015, 02:18 AM
Hi there,

I have got a scheduler and a grid on the page and I basically drag an item from the grid and drop onto the scheduler.
The controls are working on the server-side. 

The scheduler involves the assigned appointments and the grid involves the unassigned appointments. The scheduler is also grouped by the staff list which ultimately shows that staff list and the staff's appointment based on the date.

So, the problem occurs once I drag and drop onto the scheduler control. The scheduler and the grid are refreshing (the loading circle comes up) however, the data are on the same spot at the end. I have to refresh the page to see the right result which the data has moved from the grid to the scheduler.

Here is my server side code which does the last thing in order to refresh the controls, however, that doesn't work.
Appreciate your help and time.

1.private void BindData()
2.        {
3.            RadScheduler2.DataSource = Appointments;
4. 
5.            RadGrid1.DataSource = UnassignedAppointments;
6.            RadGrid1.DataBind();
7.        }

10 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 25 Feb 2015, 04:33 PM
Hello,

Please review our Drag-and-Drop From RadGrid to RadScheduler demo that illustrates such functionality. After the drag and drop operation both controls are refreshed.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mehmet
Top achievements
Rank 1
answered on 26 Feb 2015, 03:49 AM
Hi Boyan,

Thank you for replying my question.

In my case, The controls are populated on the server-side. I do not also have "RadScheduler1_AppointmentCommand" event. I have got "RadScheduler2_AppointmentUpdate" event.

Basically, I cannot replicate your example and make the same scenario on my end.
What could be any other solution ?
0
Mehmet
Top achievements
Rank 1
answered on 02 Mar 2015, 02:00 AM
Hi, any other solution for that?
cheers
0
Boyan Dimitrov
Telerik team
answered on 02 Mar 2015, 10:17 AM
Hello,

Please note that the "RadScheduler1_AppointmentCommand" event is used only for unschedule (remove the appointment from the RadScheduler control and its data source).

Please find a sample page attached to this response that implements very similar scenario.When you drag and drop appointment from the RadGrid to the RadScheduler the appointment will be removed from the grid data source.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mehmet
Top achievements
Rank 1
answered on 03 Mar 2015, 04:09 AM
Hi Boyan,

I cannot see any attachment.
0
Boyan Dimitrov
Telerik team
answered on 05 Mar 2015, 01:30 PM
Hi,

Indeed there was a problem with the attached file. I reattached the file and now it should be fine. 

Please excuse me for any inconveniences caused. 

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mehmet
Top achievements
Rank 1
answered on 06 Mar 2015, 12:16 AM
Hi Boyan,

I appreciate that you've done a sample for me.
However, the big differences is that you always / every time bind the scheduler on Page OnInit. I cannot do that. My page firstly comes up with a different view of scheduler and it contains some other data. The page has also a drop down list where you can pick the scheduler which comes up with a grid then you can drag an drop it. So, I have to bind the scheduler as well as the grid once the drop down selected index changed. It also forces me to not to bind data on the grid using "NeedDataSource" , because it should not be bind once the page loads. According to all, do you believe I can still achieve the case ? I am happy to provide all code via the support ticket.





0
Mehmet
Top achievements
Rank 1
answered on 10 Mar 2015, 03:49 AM
Hi, any response that I can get?
0
Boyan Dimitrov
Telerik team
answered on 10 Mar 2015, 03:54 PM
Hello,

In order to investigate your specific case it would be better if you open a support ticket and attach sample runnable project so we can test your case. 

Also you can set the RadScheduler data source only the first time when the page loads. If you make any changes to the data source, rebind the RadScheduler control by calling Rebind()
//code behind
protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
 
            if (!IsPostBack)
            {
                Session.Remove(AppointmentsKey);
 
                InitializeResources();
                InitializeAppointments();
                RadScheduler1.DataSource = Appointments;
            }
 
             
        }


Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mehmet
Top achievements
Rank 1
answered on 12 Mar 2015, 03:48 AM
Hi Boyan,

I've created a support ticket in order to attach my sample which is definitely replicating what I've got at the moment.
I am looking forward to hearing from you asap. thank you 
Tags
Scheduler
Asked by
Mehmet
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Mehmet
Top achievements
Rank 1
Share this question
or