radscheduler - radgrid drag & drop Refresh

11 posts, 0 answers
  1. Mehmet
    Mehmet avatar
    100 posts
    Member since:
    Jun 2014

    Posted 22 Feb 2015 Link to this post

    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.        }

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 25 Feb 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mehmet
    Mehmet avatar
    100 posts
    Member since:
    Jun 2014

    Posted 25 Feb 2015 in reply to Boyan Dimitrov Link to this post

    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 ?
  5. Mehmet
    Mehmet avatar
    100 posts
    Member since:
    Jun 2014

    Posted 01 Mar 2015 in reply to Mehmet Link to this post

    Hi, any other solution for that?
    cheers
  6. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 02 Mar 2015 Link to this post

    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.

     
  7. Mehmet
    Mehmet avatar
    100 posts
    Member since:
    Jun 2014

    Posted 02 Mar 2015 in reply to Boyan Dimitrov Link to this post

    Hi Boyan,

    I cannot see any attachment.
  8. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 05 Mar 2015 Link to this post

    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.

     
  9. Mehmet
    Mehmet avatar
    100 posts
    Member since:
    Jun 2014

    Posted 05 Mar 2015 in reply to Boyan Dimitrov Link to this post

    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.





  10. Mehmet
    Mehmet avatar
    100 posts
    Member since:
    Jun 2014

    Posted 09 Mar 2015 in reply to Mehmet Link to this post

    Hi, any response that I can get?
  11. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 10 Mar 2015 Link to this post

    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.

     
  12. Mehmet
    Mehmet avatar
    100 posts
    Member since:
    Jun 2014

    Posted 11 Mar 2015 in reply to Boyan Dimitrov Link to this post

    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 
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017