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

Where can i change the CurrentVisibleRangeText format?

5 Answers 70 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Annett
Top achievements
Rank 1
Annett asked on 09 Dec 2011, 02:28 PM
Hi,

in the toolbar with the buttons week, month and so on, there is a dateformat. In weekview for example its 5 - 11 December 2011. I want to change the format in 05.12.2011 - 11.12.2011. Where can i do this? I tested the property GroupHeaderDateStringFormat with:
GroupHeaderDateStringFormat="{}{0:dd.MM.yyyy} - {1:dd.MM.yyyy}
but nothing happend. And the CurrentVisibleRangeText property is get only.

Thanks
Annett

5 Answers, 1 is accepted

Sort by
0
Accepted
Dani
Telerik team
answered on 12 Dec 2011, 12:13 PM
Hi Annett,

Modify the following content control, which can be found in the RadScheduleViewControlTemplate:
<ContentControl x:Name="CurrentInterval" Content="{TemplateBinding CurrentVisibleRangeText}" HorizontalAlignment="Right" VerticalAlignment="Center">
...
</ContentControl>

Bind to VisibleRange instead of CurrentVisibleRangeText and in the style add the string formats in the control template of this content control.


Best wishes,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Annett
Top achievements
Rank 1
answered on 19 Jan 2012, 11:26 AM
Hi Dani,

sorry for the late answer. I was ill and then i have to work on an other project. I understand, that i must change the binding. But till this moment i only have the dll file. How can i connect the Template with my control? I got the sources of the scheduleview.

I searched for RadScheduleViewControlTemplate and found it in several files. (ScheduleView_style.xaml and Generic_OfficeBlack.xaml) I have added the ScheduleView_style.xaml in my project and when i opend the file there are 52 errors. At the moment i feel a little bit like a dummy. oO

Thanks
Annett
0
Accepted
Dani
Telerik team
answered on 20 Jan 2012, 09:01 AM
Hello Annett,

I attach here the latest version of the needed file for your convenience.

Nevertheless, you can find the ScheduleView.xaml file in the Themes folder of your RadControls installation directory. This file contains the resources you should use and modify.

If you do not find it, try opening and rebuilding the Themes project. Then, search for it again, it should be available.

I hope this helps.

Kind regards,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Annett
Top achievements
Rank 1
answered on 20 Jan 2012, 09:49 AM
Hello Dani,

thanks for the quick answer. I have the RadControls_for_WPF_Source_2011_2_0920.zip. I unziped this and rebuild the themes_wpf.sln. I searched for the file and found it. Added the ScheduleView.xaml and get the dlls out of the zip. Now i have 1 error.
Following tag he dont likes: <external:Windows7ThemeExternal x:Key="Theme" />
Error: the tag does not exist in namespace telerik.windows.controls.external.

If i delete this tag or set it in comment i can start my application. But he shows me already following error for the line:
xmlns:external="clr-namespace:Telerik.Windows.Controls.External"
The clr-namespace is not defined. The clr-namespace-uri refer to the namespace "telerik.windows.controls.external"

Should i ignore this? Or what have i done wrong?

Thanks again,
Annett
0
Annett
Top achievements
Rank 1
answered on 20 Jan 2012, 11:06 AM
Hi Dani,

i solved my problem. I added the Windows7ThemeExternal.cs file in my project, and now it works.

Thank you for your help.
Annett
Tags
ScheduleView
Asked by
Annett
Top achievements
Rank 1
Answers by
Dani
Telerik team
Annett
Top achievements
Rank 1
Share this question
or