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

A bug of calendar in silverlight?

4 Answers 32 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
wang zhong
Top achievements
Rank 1
wang zhong asked on 01 Apr 2010, 09:01 AM

I put the silverlight into html
I disabled the mousewheel event by following function.
///////////
At xaml

<telerikScheduler:RadScheduler MouseWheel="scheduler_MouseWheel" MouseEnter="scheduler_MouseEnter".../>

At CS

private void scheduler_MouseWheel(object sender, MouseWheelEventArgs e)

{
  //keep the ability of scrolling at whole html page
  System.Windows.Browser.HtmlPage.Window.Eval(string.Format("window.scrollBy({0},{1});", 0, -e.Delta));

  //disable the ability of scrolling at current schedule
  e.Handled = true;
}
//////

It work well when the focus at silverlight,
But when the mouse operate at html(such as click html page)
Then comes back silverlight side without any click,
Just enter the calendar,and wheel the mouse,
Method MouseWheel does not work,but Calendar  responds the event.
It looks the Calendar can't capture the event but responds the event.

I add MouseEnter="scheduler_MouseEnter"  to the calendar,
///////////////////////////////
 
private void scheduler_MouseEnter(object sender, MouseEventArgs e)
{
this.scheduler.Focus(); 
}

///////////////////////////////

this method is triggered every time,but useless.

Is this a bug of calendar or bug of silverlight?
And how can i solve this question?

4 Answers, 1 is accepted

Sort by
0
wang zhong
Top achievements
Rank 1
answered on 02 Apr 2010, 01:11 AM
0
Rosi
Telerik team
answered on 05 Apr 2010, 08:55 AM
Hi Wang,

The article that you found describes how to disable scrolling in month view.
We will also try to improve our API and implement an easier way how to do that.

Kind regards,
Rosi
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
wang zhong
Top achievements
Rank 1
answered on 06 Apr 2010, 02:13 AM
Hi Rosi
Do you have any idea about disable wheel absolutely?
Even if the focus out of silverlight,
If mouse wheel over calendar,disable the wheel?

Thanks
0
Accepted
Konstantina
Telerik team
answered on 08 Apr 2010, 04:04 PM
Hello wang,

Thank you for your question.

Unfortunately, this is not possible in the current implementation of the control. I have added your request in PITS. You can view the threat here. You can vote for it, follow its status and see when it is going to be implemented.

If you have any other questions please let us know.

Best wishes,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Calendar
Asked by
wang zhong
Top achievements
Rank 1
Answers by
wang zhong
Top achievements
Rank 1
Rosi
Telerik team
Konstantina
Telerik team
Share this question
or