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

ScheduleView Headers Command

6 Answers 49 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Aleksandar
Top achievements
Rank 1
Aleksandar asked on 26 Feb 2015, 10:11 AM
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!?

6 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 27 Feb 2015, 08:53 AM
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.

 
0
Aleksandar
Top achievements
Rank 1
answered on 27 Feb 2015, 11:59 AM
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
0
Kalin
Telerik team
answered on 04 Mar 2015, 08:53 AM
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.

 
0
Aleksandar
Top achievements
Rank 1
answered on 04 Mar 2015, 02:48 PM
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)?
0
Accepted
Kalin
Telerik team
answered on 05 Mar 2015, 03:19 PM
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.

 
0
Aleksandar
Top achievements
Rank 1
answered on 09 Mar 2015, 11:58 AM
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
Tags
ScheduleView
Asked by
Aleksandar
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Aleksandar
Top achievements
Rank 1
Share this question
or