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

Strange issue with grouping

1 Answer 41 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Martin Gartmann
Top achievements
Rank 2
Martin Gartmann asked on 25 Mar 2011, 03:20 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Dobry Zranchev
Telerik team
answered on 30 Mar 2011, 11:58 AM
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.

Greetings,
Dobry Zranchev
the Telerik team
Tags
Scheduler and Reminder
Asked by
Martin Gartmann
Top achievements
Rank 2
Answers by
Dobry Zranchev
Telerik team
Share this question
or