Strange issue with grouping

2 posts, 1 answers
  1. Martin Gartmann
    Martin Gartmann avatar
    54 posts
    Member since:
    Apr 2004

    Posted 25 Mar 2011 Link to this post

    Hi All,

    i use


    Me.rsMain.GroupType = GroupType.Resource


    to group my appointments in Scheduler.

    When i try to add an appointment in a view with is grouped by resources, my appointment is stored without the resourceID an because of this when i rebind this appotment is not visible in this grouped view.

    When i change my code using

    me.rsMain.GroupType = GroupType.None

    i will see this appointments who has no resouces values.

    When i use

    me.rsMain.GroupType = GroupType.None

    for inserting new appointments the resourceID is stored as planned.

    As far as i know the update/Insert should use in the Update oder Insert Command in both cases

    Any suggestions what this may cause ?

    my insert command looks like this:

    INSERT INTO Appointments   (Summary, Start, [End], RecurrenceRule, MasterEventID, Location, Description, BackgroundID, StatusID, ParentID, Visible, KundenID, ResourceID, Personen, Preis, RaceID)
    VALUES        (@Summary,@Start,@End,@RecurrenceRule,@MasterEventID,@Location,@Description,@BackgroundID,@StatusID,@ParentID,@Visible,@KundenID,@ResourceID,@Personen,@Preis,@RaceID)

    Kind regards

    Martin Gartmann
  2. Answer
    Dobry Zranchev
    Dobry Zranchev avatar
    353 posts

    Posted 30 Mar 2011 Link to this post

    Hi Martin,

    Thank you for writing.

    As far as I understand, you added an appointment directly to the Appointments collection of the view. If I am correct, this is the reason for which you get this strange behavior. You have to add the appointment in the Appointments collection of the RadScheduler. This will solve your case.

    In case that you have other related questions, do not hesitate to write back.

    Dobry Zranchev
    the Telerik team
Back to Top