Telerik RadMenu with Csla Navigation Provider

Telerik RadMenu with Csla Navigation Provider

Old forum URL: forums.lhotka.net/forums/t/10122.aspx


CyclingFoodmanPA posted on Tuesday, March 01, 2011

Has anyone used the Telerik RadMenu Control with the Csla Navigation Provider?  And if so, what did you do to get things working?

I have used the RadButton as follows:
<telerik:RadButton x:Name="countyRadButton" Content="Counties"
csla:NavigatorProvider.ControlTypeName="BelAir.Views.CountyListView,BelAir"
csla:NavigatorProvider.NavigatorProvider="{StaticResource NavProvider}"
csla:NavigatorProvider.TriggerEvent="Click"
Width="100"/>

However, my views are increasing and a form with over 200 buttons for navigation would look pretty crappy!
Here is a sample of what I have so far, but am not sure if the RadMenu and Csla Navigation Provider will play nice together:
<telerik:RadMenu x:Name="mainMenuRadMenu" ClickToOpen="True"
VerticalAlignment="Top"
Margin="8">
<telerik:RadMenuItem Header="Administration">
  <telerik:RadMenuItem Header="Counties" 
                       Command="Click"
     csla:NavigatorProvider.ControlTypeName="BelAir.Views.CountyListView,BelAir"
     csla:NavigatorProvider.NavigatorProvider="{StaticResource NavProvider}"
     />
  </telerik:RadMenuItem>
</telerik:RadMenu>

Currently, no error is produced, but it does not work.
When I had csla:NavigationProvider.TriggerEvent="Click" things did NOT go right and I received the following message:
Message=Object of type 'System.Windows.RoutedEventHandler' cannot be converted to type 'Telerik.Windows.RadRoutedEventHandler'.

Any ideas, any advice would be greatly appreciated.

CyclingFoodmanPA

RockfordLhotka replied on Thursday, March 03, 2011

The CSLA navigation provider is obsolete. SL3 introduced an official navigation framework, and you should use that.

The CSLA one was left in for backward compatibility, but will be removed (or maybe was in CSLA 4?).

CyclingFoodmanPA replied on Friday, March 04, 2011

Hey Rocky,

Thanks.  I figured out how to do navigation via the SL navigation framework using the Telerik controls.  They had a great example that I downloaded.

CyclingFoodmanPA

Copyright (c) Marimer LLC