ScheduleView Headers Command

7 posts, 1 answers
  1. Aleksandar
    Aleksandar avatar
    6 posts
    Member since:
    Oct 2013

    Posted 26 Feb 2015 Link to this post

    Currently i am using Telerik 2014.1.224.1050 version for Silverlight, and i have one non-typical problem with Headers (GroupHeaderButton) in ScheduleView (above days). I created custom command for GoToView and that works great in all situations except when project is built and run in Release mode without debugging (which i need for production). In that situation GroupHeaderButtons doesn't work they are disabled, and CommandCanExecute is fired regulary and return true, but buttons are still disabled.
    I can't figure it out why this is happening and how to solve it, any suggestion would be appreciated!?
  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 27 Feb 2015 Link to this post

    Hello Aleksandar,

    I noticed you have opened support ticket (with ID 910669) regarding the same issue. I have already replied you there, however I'm also copying my answer below in order to be available to the community:

    Can you please provide a sample project so we can investigate the exact scenario on our side as we are not aware of such an issue?

    I'm looking forward to hearing from you.

    Regards,
    Kalin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Aleksandar
    Aleksandar avatar
    6 posts
    Member since:
    Oct 2013

    Posted 27 Feb 2015 in reply to Kalin Link to this post

    Hi,
    because of project robustness i recreated i problem on example project.
    Build and run project in all modes (Debug - with debug, Debug - without debug, Release - with debug, Release - without Debug) in last one you will probably get problem which i have.

    Also i have one more question about scheduleView, is it possible to select make selection for whole day ( all slots ) programmatically?!

    (Link to Project)
    https://drive.google.com/file/d/0B88wYxsf8qi7eUY5V0VJcFVWcUk/view?usp=sharing
  5. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 04 Mar 2015 Link to this post

    Hello Aleksandar,

    Thanks for the sample. However we would need some more time in order to find the reason for the observed behavior. I'll get back to you as soon as possible.

    As for the selected slots - you can select the whole day by simply setting the SelectedSlot property of the ScheduleView to Slot with the needed Start and End times:
    this.ScheduleView.SelectedSlot = new Slot { Start = DateTime.Today, End = DateTime.Today.AddHours(24) };

    Hope this helps.

    Regards,
    Kalin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Aleksandar
    Aleksandar avatar
    6 posts
    Member since:
    Oct 2013

    Posted 04 Mar 2015 in reply to Kalin Link to this post

    Thanks for selection. While i am waiting till you answer me about commands, i have one more question. Maybe it's not the best place, but if you think that it shouldn't be here put it in another thread.
    I have problem with Silverlight TimeBar VisiblePeriodEnd. I have noticed that if you change PeriodEnd, PeriodStart to more than one year period visible period doesn't work very well, it shows more than it needs to. Also i have noticed that you can't zoom out, like that MinZoom is coerced or something like that.

    How can i change that, to shows me right value for Period of 3 years (PeriodStart-PeriodEnd)?
  7. Answer
    Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 05 Mar 2015 Link to this post

    Hello Aleksandar,

    In order to get the RoutedUICommand to work correctly in Release Without Debugging - you should set it the following way:

    Command="{telerik:Static Member=local:MainPage.ScheduleHeaderButtonsCommand}"

    Where local is the default namespace of the Application. We will update the online documentation when possible to demonstrate that approach.

    As for the TimeBar question - we are not aware of such an issue. Can you please check the attached sample and try to reproduce it there? If you manage to reproduce it, I would like to ask you to open new Support Ticket for RadTimeBar with the sample attached - we will be glad to further investigate it and provide you with a possible solution.

    Hope this helps.

    Regards,
    Kalin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. Aleksandar
    Aleksandar avatar
    6 posts
    Member since:
    Oct 2013

    Posted 09 Mar 2015 in reply to Kalin Link to this post

    Thanks for your help and time Kalin, this resolved my issue with slot selection and with commands.
    Also i have edited you project for timebar and created a new ticket with it.


    Best regards
Back to Top
DevCraft banner