Where can i change the CurrentVisibleRangeText format?

6 posts, 2 answers
  1. Annett
    Annett avatar
    24 posts
    Member since:
    Sep 2011

    Posted 09 Dec 2011 Link to this post

    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
  2. Answer
    Dani
    Admin
    Dani avatar
    848 posts

    Posted 12 Dec 2011 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Annett
    Annett avatar
    24 posts
    Member since:
    Sep 2011

    Posted 19 Jan 2012 Link to this post

    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
  5. Answer
    Dani
    Admin
    Dani avatar
    848 posts

    Posted 20 Jan 2012 Link to this post

    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 >>
  6. Annett
    Annett avatar
    24 posts
    Member since:
    Sep 2011

    Posted 20 Jan 2012 Link to this post

    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
  7. Annett
    Annett avatar
    24 posts
    Member since:
    Sep 2011

    Posted 20 Jan 2012 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready