Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Scheduler and Reminder > multi resource not saving ?

Not answered multi resource not saving ?

Feed from this thread
  • jeff357 avatar

    Posted on Oct 28, 2011 (permalink)

    Hi ALL,
       I am in need of some assistance. Software config first..
    Win 7 Ult 64, Visual Studio 2010 (VB.NET 2.0, Winforms
    Scheduler Q2 2011.2.831 (Latest), VistaDB (Supported
    by Telerik ORM) MS SQL 200X Compatible. I have now
    "Bound" the Scheduler and I can Create new appoint
    ments but save makes the "Appointments" disapear!.
    Has anyone ran across this with RadScheduler? (I am
    not using ORM) Just the sample .mdb database (used
    by telerik example) Converted to VistaDB Format. I
    added "User 1", "User2", "User 3", "User 4". to the
    resources part of the database and they come up
    properly but I Can't figure out the Colors Part Need
    Color.Transparent in all 4 spots. I am using the code
    "Ivan" Provided and it is in the samples. The "Samples"
    do not provide Multi - User Data Binding. It could be a
    very simple line of code to solve this problem.
                                                     Thanks in advance!,
                                                                    Jeff  :)     
    Dim colors() As Color = {Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent}
               Dim names() As String = {"User 1", "User 2", "User 3", "User 4"}
               For i As Integer = 0 To names.Length - 1
                   Dim resource As New Telerik.WinControls.UI.Resource()
                   resource.Id = New EventId(i)
                   resource.Name = names(i)
                   resource.Color = colors(i)
                   'resource.Image = Me.imageList1.Images(i)
                   Me.RadScheduler1.Resources.Add(resource)
               Next i
               Me.RadScheduler1.GroupType = GroupType.Resource
               Me.RadScheduler1.ActiveView.ResourcesPerView = 2
           Catch ex As Exception
    Attached files

    Reply

  • Ivan Todorov Ivan Todorov admin's avatar

    Posted on Nov 2, 2011 (permalink)

    Hello Jeff,

    Please find your answer in the support thread named "Multi-User Problem Example".

    Should you need further assistance, do not hesitate to contact us.

    Best wishes,
    Ivan Todorov
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

    Reply

  • nc avatar

    Posted on Jan 24, 2012 (permalink)

    You have the same problem as mine . The problem is that Resources are not saved , so when you group it according to recourses
    nothing is displayed . if you remove the grouping you can see the records with no resource . Let me know If you found a solution . 

    Reply

  • Ivan Todorov Ivan Todorov admin's avatar

    Posted on Jan 27, 2012 (permalink)

    Hi nc,

    Thank you for writing.

    Usually, this is caused by incorrectly set mappings when binding RadScheduler to a data source. The solution to this may vary depending on the details of your case, but generally when using a many-to-many relation between appointments and resources, you should set the Resources property of the AppointmentMappingInfo to the name of the relation and the ResourceId property to the name of the resources column in your intermediate table:
    appointmentMappingInfo.Resources = "Appointments_AppointmentsResources"
    appointmentMappingInfo.ResourceId = "ResourceID"

    More information can be found in the Data Binding Walkthrough help article.

    If you send me a code snippet or a sample project that demonstrates your approach, I will be able to provide you with more concrete answers.

    I hope you find this helpful.

    All the best,
    Ivan Todorov
    the Telerik team

    SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Scheduler and Reminder > multi resource not saving ?
Related resources for "multi resource not saving ?"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]