Telerik Forums
UI for WPF Forum
27 answers
1.1K+ views

I'm using the RegionAdapter from the following article.

http://blogs.telerik.com/blogs/posts/09-08-31/using_the_raddocking_control_with_prism.aspx

However, I'm using PRISM 4 + MVVM + MefBootstrapper.
Has anybody successfully used the RegionAdapter with MefBootstrapper?

I'm getting the following error message... 

this

 

 

.Container.Resolve

Error 1 'System.ComponentModel.Composition.Hosting.CompositionContainer' does not contain a definition for 'Resolve' and the best extension method overload 'Microsoft.Practices.Unity.UnityContainerExtensions.Resolve<T>(Microsoft.Practices.Unity.IUnityContainer, params Microsoft.Practices.Unity.ResolverOverride[])'

Thank you

protected override RegionAdapterMappings ConfigureRegionAdapterMappings()
{
    var mappings = base.ConfigureRegionAdapterMappings();
    mappings.RegisterMapping(typeof(RadPaneGroup), this.Container.Resolve<RadPaneGroupRegionAdapter>());
    return mappings;
}
George
Telerik team
 answered on 24 Jan 2013
3 answers
242 views
Hi , i am in the process of converting the Datagrid to Telerik RadGrid , i am having grouping in the RadGrid and i want to change its style 

could any one help me in converting the below piece of datagrid code to Telerik

name using as  xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

<DataGrid.GroupStyle>
<GroupStyle>
<GroupStyle.ContainerStyle>

</GroupStyle.ContainerStyle>
</GroupStyle>
</DataGrid.GroupStyle>
Dimitrina
Telerik team
 answered on 24 Jan 2013
3 answers
268 views
I'm having issues with getting the IsExpandable property to be respected. Basically when my "Parent" has no children, I don't want the expand togglebutton to be shown. Below is some sample xaml that I am using. The resulting grid has the details column fully populated with the togglebuttons when there should be at least one without the button. I've stepped through my StyleSelector code and it is returning the proper style. But it doesn't appear to have any affect. What am I doing wrong?

<UserControl ...>
    <UserControl.Resources>
        <Style x:Key="NoChildrenRowStyle" TargetType="telerik:GridViewRow">
            <Setter Property="IsExpandable" Value="False"/>
        </Style>
  
        <Style x:Key="HasChildrenRowStyle" TargetType="telerik:GridViewRow">
            <Setter Property="IsExpandable" Value="True"/>
        </Style>
</UserControl.Resources>
  
 <local:RowStyleSelector x:Key="RowStyleSelector"
         NoChildrenStyle="{StaticResource NoChildrenRowStyle}"
         HasChildrenStyle="{StaticResource HasChildrenRowStyle}"/>
  
<telerik:RadGridView ItemsSource="{Binding ParentsCollectionView}"
        RowIndicatorVisibility="Collapsed"
        AutoGenerateColumns="False"
        RowStyleSelector="{StaticResource RowStyleSelector}">
            <telerik:RadGridView.Columns>
                <telerik:GridViewToggleRowDetailsColumn />
                <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}"/>
                <telerik:GridViewDataColumn Header="Age" DatatMemberBinding="{Binding Age}"/>
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>
                    <ListBox ItemsSource="{Binding Children}">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <Grid>
                                    <TextBlock Text="{Binding Name}"/>
                                </Grid>
                            </DataTemplate>
                        </ListBox.ItemTemplate>  
                    </ListBox>
                </DataTemplate>
            </telerik:RadGridView.RowDetailsTemplate>
        </telerik:RadGridView>
</UserControl>
Yoan
Telerik team
 answered on 24 Jan 2013
4 answers
248 views

In XAML, I try to bind the RoutingService of my diagram:

<telerik:RadDiagram ....... RoutingService="{Binding Router}" ... />

And I get this error:

'RoutingService' property is read-only and cannot be set from markup. Line 92 Position 45.

Why do I have to assign this router in code-behind? Makes sense to bind it since it can easily be a property of my viewmodel...

UPDATE: Basically, I'm trying to assign the Router to an instance of OrgTreeRouter.

Kristoffer
Top achievements
Rank 1
 answered on 24 Jan 2013
1 answer
102 views
Hi!
I recently installed "RadControls for WPF Q3 2012" and I see only WPF40 and WPF45 in the binaries folder. What about WPF35 that existed in the previous release? Not available? What does this mean for my projects?
Dimitrina
Telerik team
 answered on 24 Jan 2013
2 answers
273 views
Hi,

i have a view with two RadGridView, in both the Columns are autogenerated.
In the second one the property ShowColumnHeaders is set to false, so you don't see that there are two grids.
In the view you see a GridView, a black line and then the next GridView.

            <telerik:RadGridView x:Name="TodoGrid"
                                 Grid.Row="0"
                                 Width="auto"
                                 Height="auto"
                                 AutoGenerateColumns="True"
                                 CanUserDeleteRows="False"
                                 CanUserFreezeColumns="False"
                                 CanUserInsertRows="False"
                                 CanUserResizeColumns="True"
                                 ColumnWidth="*"
                                 IsReadOnly="True"
                                 SelectionUnit="Cell"
                                 ItemsSource="{Binding ToDoRows}"
                                 RowIndicatorVisibility="Collapsed"
                                 ScrollViewer.VerticalScrollBarVisibility="Visible"
                                 ShowGroupPanel="False" />
 
.
.
.
.
 
            <telerik:RadGridView x:Name="DoneGrid"
                                 Grid.Row="2"
                                 Width="auto"
                                 Height="auto"
                                 AutoGenerateColumns="True"
                                 CanUserDeleteRows="False"
                                 CanUserFreezeColumns="False"
                                 CanUserInsertRows="False"
                                 CanUserResizeColumns="False"
                                 ColumnWidth="*"
                                 SelectionUnit="Cell"
                                 IsReadOnly="True"
                                 ItemsSource="{Binding DoneRows}"
                                 RowIndicatorVisibility="Collapsed"
                                 ScrollViewer.VerticalScrollBarVisibility="Visible"
                                 ShowColumnHeaders="False"
                                 ShowGroupPanel="False" />

The user can resize the columns in the top grid and i want now that the columns on the bottom grid resize in the same way like the top ones. I try to handle this about the ResizingEvent but don't find a working solution.

Can somebody please support me by this issue.
Mark
Top achievements
Rank 1
 answered on 24 Jan 2013
2 answers
928 views
Hi,

I'm using MVVM and I want to control on the ViewModel which rows are selected.  To accomplish that I'm trying to bind the GridViewSelectColumn to a property, but that doesn't seem to work because it doesn't accept DataMemberBinding.  How can I accomplish that?

            <telerik:RadGridView.Columns> 
                <telerik:GridViewSelectColumn DataMemberBinding=""/> <!-- not valid -->

Thanks in advance,

Wagner
Lee Francis
Top achievements
Rank 1
 answered on 24 Jan 2013
5 answers
340 views
Hi,

I've looked at the demos of the ChartView control on how to create a bar chart and noticed that each bar is defined in xaml and bound to data. 

In my case the bars aren't known until runtime, so my question is how can one dynamically add barseries to a Chartview using MVVM ?

My data is defined as such:

class BarData // Represents one "item" on the x-axis
 
{
DateTime Date {get; set;} // X-Axis, works fine
 
Dictionary<string,double> Items = new Dictionary <string, double> ();  // string is the name of the category, and double is the value
 
}

I'm not sure if this is the best way to represent data for creating the Chart and I'm open to feedback for this.
Nikolay
Telerik team
 answered on 24 Jan 2013
9 answers
244 views
Good evening,

I keep experiencing a null reference exception when pressing Mouse Left Button Down. The event appears to be random (there must be a reason for it) but I am unable to determine if it is something I have caused or if it is the control itself.

I'm a bit of a newbie and I don't fully understand what details of the error message.
Below I have pasted the exception message generated in VS2010. Does this mean anything to anyone?

Thank you very much for your time,

Rob


Message

System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls
  StackTrace:
       at Telerik.Windows.Controls.Primitives.ListItem.OnMouseLeftButtonUp(MouseButtonEventArgs e) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\ListControl\ListItem.cs:line 91
       at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at TAS2.App.Main() in C:\TAS2\TAS2\obj\x86\Debug\App.g.cs:line 0
  InnerException:
Georgi
Telerik team
 answered on 24 Jan 2013
1 answer
148 views
I know in 2012 Q3 there is an example of ColorPicker and ColorEditor integration, however, it involves the requirement of a custom window plus a custom viewmodel. This is really not developer-friendly or MVVM-friendly.

I would like to see it integrated by default so that I can just declare something like the following instead of having to create a CustomColorViewModel for every color that I want to edit:
<telerik:RadColorPicker SelectedColor="{Binding FillColor, Mode=TwoWay}" EnableColorEditor="True" />

WPF toolkits from some other companies already has this feature, and IMO this should be a very basic feature of the ColorPicker control. Please add it into the next release.
Petar Mladenov
Telerik team
 answered on 24 Jan 2013
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?