Telerik Forums
UI for WPF Forum
1 answer
72 views
I just upgraded to 2013 Q2 and am having trouble using RadDiagram. Previously working code now raises an exception with message:

Value cannot be null.
Parameter name: source

Please help.
Pavel R. Pavlov
Telerik team
 answered on 02 Jul 2013
1 answer
171 views
Hello!

I'm struggling from a few days with a problem in my wpf application:

I have to create a structure similar to the one in telerik demos of which I attach a screenshot. It is a RadGridView with hierarchy.

In child grid I have to add a RadComboBox Column and it works fine until I simply put some values in this combo. My task Is to modify the Data Template of the Comboboxcolumn and insert a radgridview.

I'm facing a lot of problem in  doing that and in binding data to the Grid. I succesfully create the structure but I'm not able to bind data in code behind.

This is a piece of my code, and attached is the example structure I want to upgrade.

<telerik:RadGridView  Margin="15,5,15,5" Name="gvRequest" Height="auto" Width="Auto"
                                 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  
                                 telerik:StyleManager.Theme="Simple" AutoGenerateColumns="False"  
                                 IsFilteringAllowed="False" FlowDirection="LeftToRight" ShowGroupPanel="False">
        <telerik:RadGridView.Columns>
            <telerik:GridViewDataColumn UniqueName="Codice" Header="Codice" Width="Auto" />
            <telerik:GridViewDataColumn UniqueName="UtenteCreazione" Header="UtenteCreazione" Width="Auto" />
            <telerik:GridViewDataColumn UniqueName="IDContatore" Header="IDContatore" Width="Auto" />
            <telerik:GridViewDataColumn UniqueName="ModuloStampa" Header="ModuloStampa" Width="Auto" />
        </telerik:RadGridView.Columns>
        <telerik:RadGridView.HierarchyChildTemplate>
            <DataTemplate>
                <StackPanel DataContext="{x:Null}">
                    <telerik:RadGridView CanUserReorderColumns="False" Name="gvOrder"  CanUserInsertRows="True" ShowInsertRow="True" CanUserDeleteRows="True"
                                             CanUserFreezeColumns="False" ShowGroupPanel="False" AutoGenerateColumns="False" ItemsSource="{Binding}"
                                             Loaded="OnChildGridLoaded" FlowDirection="LeftToRight" IsFilteringAllowed="False" ShowColumnHeaders="True" ColumnBackground="AliceBlue" HorizontalContentAlignment="Right" ClipToBounds="True">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn UniqueName="id" Header="id" Width="Auto" />
                            <telerik:GridViewDataColumn UniqueName="Data" Header="Data" Width="Auto" />
                            <telerik:GridViewDataColumn UniqueName="UtenteCreazione" Header="UtenteCreazione" Width="Auto" />
                            <telerik:GridViewComboBoxColumn UniqueName="numero" Header="Numero" Width="Auto"
                                                            DataMemberBinding="{Binding numero, Mode=TwoWay}"
                                                            DisplayMemberPath="NomeUtente"  SelectedValueMemberPath="IDUtente" SortMemberPath="NomeUtente" SortingState="Ascending" />
<telerik:GridViewComboBoxColumn UniqueName="numero2" Header="Numero2" Width="Auto"
                                                            DataMemberBinding="{Binding numero, Mode=TwoWay}"
                                                            ItemsSource="{Binding Source={StaticResource CustomersViewSourcefil}}"
                                                            DisplayMemberPath="{Binding Path=RadGrigliaUtenti.NomeUtente}">
                                <telerik:GridViewComboBoxColumn.ItemTemplate>
                                    <DataTemplate>
                                        <telerik:RadGridView FilteringMode="FilterRow" x:Name="RadGrigliaUtenti" AutoGenerateColumns="False" ShowGroupPanel="False" CanUserFreezeColumns="False"
                                             RowIndicatorVisibility="Collapsed" IsReadOnly="True" MinWidth="300" MaxWidth="600"
                                             IsFilteringAllowed="True" ItemsSource="{Binding Source={StaticResource CustomersViewSource}}"
                                             Height="150" SelectedItem="{Binding Path=numero}" >
                                            <telerik:RadGridView.Columns>
                                                <telerik:GridViewDataColumn Header="IDUtente" Width="120" DataMemberBinding="{Binding IDUtente}" IsReadOnly="True"></telerik:GridViewDataColumn>
                                                <telerik:GridViewDataColumn Header="NomeUtente" Width="*" DataMemberBinding="{Binding NomeUtente}" IsReadOnly="True"></telerik:GridViewDataColumn>
                                            </telerik:RadGridView.Columns>
                                        </telerik:RadGridView>
                                        
                                    </DataTemplate>
                                </telerik:GridViewComboBoxColumn.ItemTemplate>
</telerik:GridViewComboBoxColumn>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </StackPanel>
            </DataTemplate>
        </telerik:RadGridView.HierarchyChildTemplate>
    </telerik:RadGridView>
</Window>


Someone has a sample project or some suggestions to accomplish this task?
Yoan
Telerik team
 answered on 02 Jul 2013
1 answer
68 views
Are there some examples or hints to use the PersistenceFramework on a RadTabControl binded to a collection of the view model?
I would have to persiste the tabs and their contents.

Thanks in advance
Mauro
Pavel R. Pavlov
Telerik team
 answered on 02 Jul 2013
1 answer
98 views
Hi there
My RadPanelBar Contains 5 Item. When an item is expanded, its Header and Content fill whole window height. I want RadPanelBar to Scroll automatically to Header and Content of the item i've just expanded. Is this possible?
Thanks
Pavel R. Pavlov
Telerik team
 answered on 02 Jul 2013
1 answer
127 views

Dear Telerik Team!

I am trying to use "implicit styling" as described in:
http://www.telerik.com/help/wpf/styling-apperance-implicit-styles-overview.html

I added the following files to the project:

Telerik.Windows.Controls.xaml
System.Windows.xaml
Telerik.Windows.Controls.Input.xaml
Telerik.Windows.Controls.Navigation.xaml
Telerik.Windows.Controls.GridView.xaml
Telerik.Windows.Controls.ScheduleView.xaml

I believe these files contain all the styles necessary in our project. I also added the necessary entries to Application.Resources dictionary, removed the "telerik:StyleManager.Theme=""" references from our controls XAML's and finally I removed the initialization of StyleManager.ApplicationTheme to ensure that we really use our "implicit styles".

Now - everything seems to work fine (controls like RadMenu, RadMaskedTextBox and other input controls, RadScheduleView! get the correct styles) except for RadGridView. The RadGridViewStyle doesn't get applied from Telerik.Windows.Controls.GridView.xaml. Any ideas? Are we missing some stylesheet files? Or is it something undocumented in the above article.

Many thanks in advance!
Best regards
Krzysztof Kaźmierczak

Dimitrina
Telerik team
 answered on 02 Jul 2013
4 answers
145 views
Hi

I have a question about DataAnnotation in PropertyGrid when the AutoGeneratedPropertyDefinition is set to false. I have tested the Q1 2013 SP1 for this functionality but no luck. I have VM and defined on each property the DataAnnotation. It is working when AutoGeneratedPropertyDefinition is set to true, but when AutoGeneratedPropertyDefinition is set to false I need to set the DisplayName, Description and so on in every property definition.

Are you planning to implement such function?

And it would be great to write the DataAnnotations which I can use in PropertyGrid to the help. There are some, but no all of them. For example the StringLength or Range are working but Required not and so on.

Thanks 

Vitalij

Vitalij
Top achievements
Rank 1
 answered on 02 Jul 2013
1 answer
180 views
Latest Build:  2013.2.611.45
It will not build,  Error I am getting when I try to build:
Error 1 Only public or internal classes can be used within markup. 'Tile' type is not public or internal. .... 13 20 ...

The Preview is showing up as expected in the design view.

<Window x:Class="Management.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="768" Width="1366" ResizeMode="NoResize" WindowStyle="None">
    <Grid Name="MainGrid">
        <Grid.Resources>
            <DataTemplate x:Key="GroupTemplate">
                <Border BorderThickness="1" BorderBrush="Black" Margin="5">
                    <TextBlock Text="{Binding}" Margin="5,0,0,5" FontWeight="Bold"/>
                </Border>
            </DataTemplate>
            <Style TargetType="telerik:Tile">
                <Setter Property="Margin" Value="5,15,0,0"/>
            </Style>
        </Grid.Resources>
        <telerik:RadTileList x:Name="LayoutSetup" GroupTemplate="{StaticResource GroupTemplate}">
 
            <telerik:Tile Group="Continent" Background="Green" TouchUp="Tile_TouchUp" >
                <TextBlock Text="Europe"/>
            </telerik:Tile>
            <telerik:Tile  Group="Country" Background="Blue">
                <TextBlock Text="Germany"/>
            </telerik:Tile>
            <telerik:Tile Group="Continent" Background="Green">
                <TextBlock Text="Asia"/>
            </telerik:Tile>
            <telerik:Tile  Group="Country" Background="Blue">
                <TextBlock Text="Italy"/>
            </telerik:Tile>
        </telerik:RadTileList>
    </Grid>
</Window>


update:  I am no longer looking to use this control,  moved to using a wrap panel and radbuttons instead.  Suits what I need it to do better.
Maya
Telerik team
 answered on 02 Jul 2013
3 answers
137 views
Hello Telerik Team,

I'm working on a project and I'm using the RadScheduleView with a custom appointment.
But, End-users can't set up a reminder to an appointment (via email or sms).
How would I go about doing that?

Any approaches?


Thank You,
hiwa
Hiwa
Top achievements
Rank 2
 answered on 02 Jul 2013
3 answers
322 views

Hi,

My WPF GridView use background color for give some information to user:

-          Green, row completed

-          Orange, row to be process

-          Yellow, row work in progress (WIP)

 

Actual color selection in grid is yellow. How I can change color selection?

 

Actualy, I use this RowStyle for change background color.

 

            <controls:RadGridView.RowStyle>

                <Style TargetType="gridView:GridViewRow">

                    <Setter Property="Background" Value="{Binding Color}"></Setter>

                </Style>

            </controls:RadGridView.RowStyle>           

 

I try with Style.Trigger for IsMouseOver and IsSelected, but the rectangle of selection is always yellow.

I read in your forum that it’s possible override default style.

Can you send me an example in C#?

Dimitrina
Telerik team
 answered on 01 Jul 2013
3 answers
42 views
but changed in editor
Kalin
Telerik team
 answered on 01 Jul 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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?