RadScheduler CustomTheme not working anymore

11 posts, 0 answers
  1. Steffen
    Steffen avatar
    77 posts
    Member since:
    Mar 2009

    Posted 29 Jun 2010 Link to this post

    Hi,
    again my RadScheduler's CustomTheme stopped working after upgrading to the new version. Its just dark-grey. No appointments or anything. And no error!
    The theme.xaml has 3200 lines of code and its very frustrating and time-consuming to make it work again without having a clue why it stopped working. I already did that a couple of times. Could you please post a working custom-theme (or the default theme) so I can find the differences? I can't post my theme.xaml because your website hangs when I try to paste it into the code-block.


    Best Regards
    Steffen
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 02 Jul 2010 Link to this post

    Hi Steffen,

    Thank you for sharing your concerns.

    We apologize if the theming mechanism has caused you inconvenience. Naturally, with each release there might be issues fixed on RadScheduler and  you might end up with some compatibility issues.

    Please, write to us any time you face a problem or when in doubt, we would be glad to assist you. Or if you prefer, you can send us a sample project illustrating the problem you are experiencing and we can help you on that.

    Attached is a custom theme which contains the RadScheduler default theme for WPF for our latest release. You can merge your changes inside it.

    Also, when trying to send large files, I suggest that you attach them as a sample project or even as loose XAML files rather than pasting everything in here.

    Please, do not hesitate to contact us if you need further assistance with this issue.

    Regards,
    Dani
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Steffen
    Steffen avatar
    77 posts
    Member since:
    Mar 2009

    Posted 02 Jul 2010 Link to this post

    Hi,

    thank you very much for the sample.
    At first it didn't compile because  TimeSlotToStringConverter was not found.
    Then I recognized that there were not the 603-assemblys linked but an older version. After changing the references to the new dlls
    it compiled. But as soon as you click or scroll something it crashes because of a NullreferenceException caused by  Telerik.Windows.Controls.TimeSlotToStringConverter (which seems to be null).
    Could you please help me out with that?


    Best Regards
    Steffen
  5. Dani
    Admin
    Dani avatar
    848 posts

    Posted 06 Jul 2010 Link to this post

    Hi Steffen,

    Thank you for your reply.

    Just to be sure, when you describe the problem with the TimeSlotToStringConverter, are you referring to the sample I sent you or to your merged version ?

    The TimeSlotToStringConverter  is in the following assembly and the project should run with no  problem after compilation (and using the updated assembly references as you mention):

    clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler

    If you are still experincing the problem, please send us a sample on which we can reproduce the problem.

    Looking forward to your reply.

    Kind regards,
    Dani
    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
  6. Steffen
    Steffen avatar
    77 posts
    Member since:
    Mar 2009

    Posted 06 Jul 2010 Link to this post

    Hi,

    I can not run the provided sample. I have VS 2010 and tried wpf-versions 603 + 609. Because it seems to find the TimeSlotToStringConverter at compile time but not at runtime I deinstalled all other Terlerik versions and checked that they are not in the GAC. Then I installed 609 (before I used the zipped version).
    But it still crashes as soon as I click something, So I used reflection to print out the referenced assemblies at runtime - thats the only code I changed in the sample. The weird thing is that NO teleriik-assembly is showing up at all???
    Here is what I did:
    public MainWindow() 
            { 
                InitializeComponent(); 
     
                this.Loaded += new RoutedEventHandler(MainWindow_Loaded); 
            } 
     
            void MainWindow_Loaded(object sender, RoutedEventArgs e) 
            { 
                System.Reflection.AssemblyName[] names = System.Reflection.Assembly.GetExecutingAssembly().GetReferencedAssemblies(); 
     
                foreach (var a in names) 
                { 
                    // if(a.FullName.ToUpper().Contains("TELERIK")) 
                    { 
                        MessageBox.Show(a.FullName + " " + a.Version.ToString()); 
                    } 
     
                } 
            } 

    Do they show up on your machine?
    I also tried to set "use specific version" to true for all telerik-dlls to make sure it uses the right version - but still no change.
    Any idea what I can try to find out wht's wrong - I'm out of ideas.


    Best Regards
    Steffen


  7. Steffen
    Steffen avatar
    77 posts
    Member since:
    Mar 2009

    Posted 06 Jul 2010 Link to this post

    Update:

    I tried the WPF4 hotfix 610 because I recognized that you sent me a .NET4 solution. But still no change...

  8. Dani
    Admin
    Dani avatar
    848 posts

    Posted 08 Jul 2010 Link to this post

    Hello Steffen,

    Thank you for the detailed explanation.

    There should be no reason why the project cannot find the TimeSlotToStringConverter. I have attached a video showing how the project works on our side.

    You can see that it builds successfully and that the TimeSlotToStringConverter is available in both of these namespaces:

    xmlns:schedulerConverters="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler"

    Also, with a small correction on the code , all assemblies get listed including the Telerik ones.

    The only thing that might turn out as a predicament here is if you have a Culture other than English. I assume if you have employed a German culture, this might cause problems with the TimeSlotToStringConverter.  This issue, however, was fixed in the Latest Internal Build.

    Please, get the Latest Internal Build assemblies and let me know if the problem still persists. Also, a video illustrating the issue will be quite helpful.

    Looking forward to your reply.
     
    All the best,
    Dani
    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
  9. Steffen
    Steffen avatar
    77 posts
    Member since:
    Mar 2009

    Posted 08 Jul 2010 Link to this post

    Hi,

    thank you for investing so much time!
    I'm sorry for not telling you which culture I use (its german). I didn't thought that it may be important.
    But it is! Changing the current culture (to en-US) makes it work!
    I'll upgrade my real project to the latest build in the next days (maybe next week) and fix the theme.

    Thanks again.

    Best Regards
    Steffen



     
  10. Yugank
    Yugank avatar
    3 posts
    Member since:
    Aug 2013

    Posted 06 Nov 2013 Link to this post

    Hi support team,
    I am using RadScheduler to display appointments. But while loading appointments it gives an error " Unable to Cast object of type 'MS.Internal.NamedObject' to type 'System.String' at  at Telerik.Windows.Controls.TimeSlotToStringConverter.Convert(Object[] values, Type targetType, Object parameter, CultureInfo culture).
    I have added the namespace in my xaml file
    xmlns:SchedulerConverters="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler".
    But still I am getting an error at runtime.
    Please find the error attachment.
    
    
  11. Yugank
    Yugank avatar
    3 posts
    Member since:
    Aug 2013

    Posted 06 Nov 2013 Link to this post

    Hi support team,
    I am using RadScheduler to display appointments. But while loading appointments it gives an error " Unable to Cast object of type 'MS.Internal.NamedObject' to type 'System.String' at  at Telerik.Windows.Controls.TimeSlotToStringConverter.Convert(Object[] values, Type targetType, Object parameter, CultureInfo culture).
    I have added the namespace in my xaml file
    xmlns:SchedulerConverters="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler".
    But still I am getting an error at runtime.
    Please find the error attachment.
    
    
  12. Yugank
    Yugank avatar
    3 posts
    Member since:
    Aug 2013

    Posted 06 Nov 2013 Link to this post

    Hi support team,
    I am using RadScheduler to display appointments. But while loading appointments it gives an error " Unable to Cast object of type 'MS.Internal.NamedObject' to type 'System.String' at  at Telerik.Windows.Controls.TimeSlotToStringConverter.Convert(Object[] values, Type targetType, Object parameter, CultureInfo culture).
    I have added the namespace in my xaml file
    xmlns:SchedulerConverters="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler".
    But still I am getting an error at runtime.
    Please find the error attachment.
    
    
Back to Top
UI for WPF is Visual Studio 2017 Ready