Approved
Last Updated: 04 Dec 2019 14:54 by ADMIN
jakub kosmicki
Created on: 04 Dec 2019 12:21
Category: GanttView
Type: Bug Report
0
RadGanttView: GanttViewIntegrationProvider doesn't refresh after updating the data in RadScheduler

I have integration radscheduler and radganttview.

Load data

Dim ds as new DataSource

Dim dvAppointments As New DataView

Dim appointmentMappingInfo As New AppointmentMappingInfo()
        Dim SchedSource As New SchedulerBindingDataSource()
        appointmentMappingInfo.Mappings.Add(New SchedulerMapping("Kontrahent", "pln_kntakronim"))
        appointmentMappingInfo.Start = "pln_start"
        appointmentMappingInfo.End = "pln_stop"
        appointmentMappingInfo.Location = "pln_nr"
        appointmentMappingInfo.ResourceId = "pln_zamgidnumer"
        appointmentMappingInfo.Description = "pln_opis"
        appointmentMappingInfo.Resources = ""
        appointmentMappingInfo.Location = "pln_nrzam"
        appointmentMappingInfo.Summary = "pln_twrkod"
        appointmentMappingInfo.StatusId = "pln_status"

        dvAppointments.Table = ds.Tables("PlanowanieTamborow")
        SchedSource.EventProvider.Mapping = appointmentMappingInfo

        bsPlanowanie.DataSource = dvAppointments  'BindingSource
        SchedSource.EventProvider.DataSource = bsPlanowanie
    
        RadScheduler1.DataSource = SchedSource

        RadGanttView1.DataProvider = New GanttViewIntegrationProvider(RadScheduler1)

refresh data

Dim reader As System.Data.SqlClient.SqlDataReader = comm.ExecuteReader

 ds.Tables("PlanowanieTamborow").Clear()
 ds.Tables("PlanowanieTamborow").Load(reader)
 ds.Tables("PlanowanieTamborow").AcceptChanges()

 ds.Tables("PlanowanieTamborow")

 

If I refresh the Radscheduler then RadGanttView doesn't refresh

Radscheduleris working properly

 

1 comment
ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 04 Dec 2019 14:54

Hello, Jakub, 

Following the provided information, I have setup a sample project with RadScheduler-RadGanttView integration. If the scheduler is bound to a DataTable for example and you update a row in the DataTable, the scheduler is refreshed, but RadGanttView is not. 

I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

 

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to refresh the gantt view when the Appointments collection is changed:

AddHandler Me.RadScheduler1.Appointments.CollectionChanged, AddressOf AppointmentsCollectionChanged


    Private Sub AppointmentsCollectionChanged(sender As Object, e As Telerik.WinControls.Data.NotifyCollectionChangedEventArgs)
        RadGanttView1.DataProvider = Nothing
        RadGanttView1.Items.Clear()
        RadGanttView1.Links.Clear()
        RadGanttView1.Columns.Clear()
        RadGanttView1.DataProvider = New GanttViewIntegrationProvider(RadScheduler1)
    End Sub

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

 

Regards,
Dess | Tech Support Engineer, Sr.
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.