A bug of calendar in silverlight?

5 posts, 1 answers
  1. wang zhong
    wang zhong avatar
    29 posts
    Member since:
    Jan 2010

    Posted 01 Apr 2010 Link to this post

    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?

  2. wang zhong
    wang zhong avatar
    29 posts
    Member since:
    Jan 2010

    Posted 01 Apr 2010 Link to this post

  3. DevCraft banner
  4. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 05 Apr 2010 Link to this post

    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.
  5. wang zhong
    wang zhong avatar
    29 posts
    Member since:
    Jan 2010

    Posted 05 Apr 2010 Link to this post

    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
  6. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 08 Apr 2010 Link to this post

    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.
Back to Top
DevCraft banner