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

Problem with new build DLLS

2 Answers 128 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Hardik
Top achievements
Rank 1
Hardik asked on 06 Jul 2011, 12:23 PM
Hi support,

With old DLLs of schedulerView I had implemented a functionality that if user double click in week mode then schedulerView day mode will open for that particular day in which user had clicked.

Now with new DLLs I am getting an error in this functionality. The error comes in one condition only when i use keyboard. If I double click using mouse in week mode then it simply redirected to that particular day and day mode is open.

But if I use keyboard and press key in week mode then it creates a appointment there and then as per my logic it redirect to day mode, But I am using my custom appointment class. So Appointment is not type cast to my custom appointment till there isn't any entry for the temporary created appointment in DB.

Problem occurs is this temporary appointment created. But one thing I have noticed there if I use mouse and double click in week then it redirects to day mode but just for a second temporary appointment seen there but it will gone after that and not getting any error.
 If I use keyboard for such functionality then it gives error and temporary appointment is shown there on scheudlerView.


Edit:

As I debug the code find out that If I use mouse to redirect from week to day mode then two methods called creating and created.

For keyboard its called 4 events. creating,created,editing and edited. In editing and edited event I use type cast of my own class. So there it gives an error.

Can you give me any idea y it call editing event when I press enter and why editing not called if i use mouse double click? How can I prevent it.

2 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 07 Jul 2011, 08:02 AM
Hello Hardik,

To prevent the ScheduleView from creating an appointment when the user presses any key you need to set IsInlineEditingEnabled="false" on RadScheduleView.

I think that you asked about the same thing in another ticket - please, let's keep the same questions in the same thread, because it is very hard to keep track on the requests we have.

Kind regards,
Valeri Hristov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Hardik
Top achievements
Rank 1
answered on 07 Jul 2011, 08:06 AM
Thanks
Tags
ScheduleView
Asked by
Hardik
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Hardik
Top achievements
Rank 1
Share this question
or