Telerik Forums
UI for WPF Forum
1 answer
194 views

Hello,

I am working on a custom datagrid for my application and I want to have a custom column where the cell has a Textbox and a small button. When the user clicks the button a small screen must be shown where the user can enter some values. The total of the inputting values need to be displayed back in the gridview.
I am looking at implementing this, but have a hard time doing. I like to have the same style for the button and the subscreen as the datepicker/Calculatorpicker.
The content of the dropdown screen need to be replacable by other content using a usercontrol.

Whats the best way to implement this, should I create a custom control for this? And then create a custom column according to the approach below?

Or is there a better way to implement this?

http://docs.telerik.com/devtools/wpf/controls/radgridview/columns/how-to/create-date-time-picker-column.html

Thank in advance.

Marcel

Stefan
Telerik team
 answered on 11 Aug 2015
1 answer
281 views

I have used the wizard events to control my wizard navigation but once I cancel the navigation for one step using e.Cancel, The SelectionChanging/ SelectionChanged events doesn't  get fired. 

I was using the UI for WPF Q1 2015 and now updated to UI for WPF Q2 2015 but still the same problem exists.

 

check this code sample

 

using System.Windows;
using Telerik.Windows.Data;
using Telerik.Windows.Controls;

namespace WizardNavigation
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private ObservableItemCollection<WizardPage> collection;
        private int cancelCounter = 1;
        public MainWindow()
        {
            InitializeComponent();

            collection = new ObservableItemCollection<WizardPage>();

            var firstPage = new WizardPage {Content = "My First Page Content"};

            var secondPage = new WizardPage {Content = "My Second Page Content"};

            var thirdPage = new WizardPage {Content = "My Third Page Content"};

            var fourthPage = new WizardPage {Content = "My Fourth Page Content"};

            myWizard.WizardPages.Add(firstPage);
            myWizard.WizardPages.Add(secondPage);
            myWizard.WizardPages.Add(thirdPage);
            myWizard.WizardPages.Add(fourthPage);

            myWizard.Next += myWizard_Next;
            myWizard.SelectionChanging += myWizard_SelectionChanging;
        }

        void myWizard_SelectionChanging(object sender, SelectedPageChangingEventArgs e)
        {
            if (cancelCounter != 2) return;
            e.Cancel = true;
            MessageBox.Show("Cancelled, Click again to navigate");
        }

        void myWizard_Next(object sender, NavigationButtonsEventArgs e)
        {
            // You will need to click the next twice for to move to step 3.
            // SelectionChanging will not be called on the second click
            //SelectionChanging will be called when moving to forth step.
            cancelCounter++;

            var wizard = sender as RadWizard;
            
            if (wizard.SelectedPage.Content == "My First Page Content")
            {
                e.SelectedPageIndex = 2;
            }
        }
    }
}

​

Yoan
Telerik team
 answered on 11 Aug 2015
1 answer
291 views

Hi,

I ​have loaded multiple polygons from SQL on a bing map and have a context menu for the polygons on the information layer.

However, I cant find any way to bind and get the unique id of the clicked polygon.

<telerik:InformationLayer x:Name="infoLayer" >
                <telerik:InformationLayer.Reader>
                    <telerik:SqlGeospatialDataReader Source="{Binding SpatialData}" x:Name="Data"
                                                     GeospatialPropertyName="Polygon"
                                                     ToolTipTemplate="{StaticResource ToolTipDataTemplate}"
                                                     />
                </telerik:InformationLayer.Reader>
                <telerik:InformationLayer.ContextMenu>
                    <ContextMenu x:Name="PolygonMenu">
                        <MenuItem Header="Menu Item 1" Command="{Binding Path=PolygonSelectedCommand}"
                                  CommandParameter="{Binding ElementName=infoLayer,Path=????}"/>
                    </ContextMenu>
                </telerik:InformationLayer.ContextMenu>
                 
                <telerik:InformationLayer.ShapeFill>
                    <telerik:MapShapeFill Fill="Transparent"  Stroke="Red" StrokeThickness="1" />
                </telerik:InformationLayer.ShapeFill>
                <telerik:InformationLayer.HighlightFill>
                    <telerik:MapShapeFill Fill="#b2FFFFFF"  Stroke="Red" StrokeThickness="1" />
                </telerik:InformationLayer.HighlightFill>
            </telerik:InformationLayer>

Thanks,

Evgenia
Telerik team
 answered on 11 Aug 2015
1 answer
278 views

Hi,

I am trying to replace TextBox that had CharacterCasing="Upper" with RadMaskedTextInput.

I do not want to have placeholders, so I cannot use Mask="&gt;a10"

Is there any other way to change charaters to upper when typing into RadMaskedTextInput?

Thanks,

Lukasz

Petar Mladenov
Telerik team
 answered on 11 Aug 2015
1 answer
181 views

Hi,

i love the DataForm Control, but is there a way to create the Fields and Layout in Codebehind? We want to create somethinfg like a Form-Designer,
where the user can ​layout the form himself. First Step is to read from a File which fields, position, length,... and 2 Step is to create the field on the form.

 

Thanks

Best Regards

Rene

Ivan Ivanov
Telerik team
 answered on 11 Aug 2015
2 answers
133 views

 Hi,

I am using a customized control derived from TileListPanel. and I have overriden ArrangeOverride() in this control. I am using this control in two different windows and those two windows are being shown at a time on UI.

I am seeing a crash whose callstack is origination from Mycontrols' ArrangeOverride(). Below is the callstack. could you please help me out in fixing this issue.

Object reference not set to an instance of an object.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Telerik.Windows.Controls.TilesPlacementLocator.MarkTakenPlaceHolders(Int32 row, Int32 column, Tile tile)
   at Telerik.Windows.Controls.TileListPanel.DistributeTiles(Size availableSize, List`1 tiles, Int32 firstColumnIndex)
   at Telerik.Windows.Controls.TileListPanel.ArrangeOverride(Size finalSize)

 

Thanks,

Nausheen

 

Kareem
Top achievements
Rank 1
 answered on 11 Aug 2015
1 answer
216 views

Hi,

 i get an Error after updating to Win10.

"ContextMenuTemplate should contain a RadContextMenu as root element."

<UserControl x:Class="flexCRM_Adressen.Pages.Adresse"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="1200">
    <UserControl.Resources>
        <XmlDataProvider x:Key="Lang" Source="../lng/deutsch.xml" XPath="CrypTool"/>
        <Style TargetType="{x:Type telerik:PaneHeader}">
            <Setter Property="FontSize" Value="15" />
            <Setter Property="BorderThickness" Value="0,0,0,1"/>
            <Setter Property="BorderBrush" Value="#FFA0A0A0"/>
            <Setter Property="Background" Value="#e9e9e9" />
            <Setter Property="Height" Value="40" />
            <Setter Property="Padding" Value="5"/>
        </Style>
        <Style TargetType="{x:Type telerik:DocumentHost}">
            <Setter Property="FontSize" Value="15" />
            <Setter Property="BorderThickness" Value="0,0,0,1"/>
            <Setter Property="BorderBrush" Value="#FFA0A0A0"/>
            <Setter Property="Background" Value="#e9e9e9" />
            <Setter Property="Height" Value="40" />
            <Setter Property="Padding" Value="5"/>
        </Style>
        <Style TargetType="{x:Type telerik:GridViewColumn}" x:Key="VorgaengeRowStyle">
             
        </Style>
         
        <DataTemplate x:Key="MyTemplate">
            <GroupBox Margin="10">
                <GroupBox.HeaderTemplate>
                    <DataTemplate>
                        <Border Background="LawnGreen" CornerRadius="5,5,0,0">
                            <TextBlock Text="Kunde" Margin="5" Width="100"/>
                        </Border>
                    </DataTemplate>
                </GroupBox.HeaderTemplate>
                <Border Margin="10" ScrollViewer.VerticalScrollBarVisibility="Auto">
                    <Grid x:Name="ReadOnlyGrid">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"  />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="40" />
                            <ColumnDefinition Width="300" />
                            <ColumnDefinition Width="50" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                         
                        <Image Grid.Column="0" Grid.Row="0" Source="/flexCRM_Adresssen;component/Style/Images/adressenr.png" Height="20" Margin="10,0,5,0"/>
                        <telerik:DataFormDataField Label="" DataMemberBinding="{Binding Identnummer, Mode=TwoWay}" Padding="0" Name="IdentnummerText" Grid.Row="0" Grid.Column="1" Height="Auto" FontSize="10" IsReadOnly="True" Margin="5"/>
                        <Image Grid.Column="0" Grid.Row="1" Source="/flexCRM_Adresssen;component/Style/Images/adresseninfo.png" Height="20" Margin="10,0,5,0"/>
                        <telerik:DataFormDataField Label="" DataMemberBinding="{Binding Name, Mode=TwoWay}" Padding="0" Name="NameText" Grid.Row="1" Grid.Column="1" Height="Auto" FontSize="10" HorizontalAlignment="Left" HorizontalContentAlignment="Left" VerticalContentAlignment="Stretch" FontWeight="SemiBold" Margin="5" MaxWidth="400"/>
                        <telerik:DataFormDataField Label=""  DataMemberBinding="{Binding Ans, Mode=TwoWay}" Padding="0" Name="AnschriftText" Grid.Row="2" Grid.Column="1" Height="Auto" FontSize="10" Margin="5" HorizontalAlignment="Left" HorizontalContentAlignment="Left" VerticalContentAlignment="Stretch" MaxWidth="400"/>
                        <telerik:DataFormDataField Label=""  DataMemberBinding="{Binding Str, Mode=TwoWay}" Padding="0" Name="StrasseText" Grid.Row="3" Grid.Column="1" Height="Auto" FontSize="10"  Margin="5" HorizontalAlignment="Left" HorizontalContentAlignment="Left" VerticalContentAlignment="Stretch" MaxWidth="400"/>
                        <StackPanel Grid.Row="4" Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Stretch">
                            <telerik:DataFormDataField Label=""  DataMemberBinding="{Binding Plz, Mode=TwoWay}" Width="70" Padding="0" Name="PlzText" Height="Auto" FontSize="10" HorizontalAlignment="Left" HorizontalContentAlignment="Left" VerticalContentAlignment="Stretch"  Margin="5"/>
                            <telerik:DataFormDataField Label="" DataMemberBinding="{Binding Nort, Mode=TwoWay}" Padding="0" Name="OrtText" Height="Auto" FontSize="10" HorizontalAlignment="Left" HorizontalContentAlignment="Left" VerticalContentAlignment="Stretch"  Margin="10,5,5,5" />
                        </StackPanel>
                        <telerik:DataFormDataField Label="" DataMemberBinding="{Binding Staat, Mode=TwoWay}" Padding="0" Name="StaatText" Grid.Row="5" Grid.Column="1" Height="Auto" FontSize="10" HorizontalAlignment="Left" HorizontalContentAlignment="Left" VerticalContentAlignment="Stretch" Margin="5" MaxWidth="400"/>
                         
                        <Image Grid.Column="2" Grid.Row="0" Source="/flexCRM_Adresssen;component/Style/Images/telefon.png" Height="20" />
                        <telerik:DataFormDataField DataMemberBinding="{Binding Tele, Mode=TwoWay}" Padding="0" Name="TelefonText" Grid.Row="0" Grid.Column="3" FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="5" MaxWidth="400" />
                        <Image Grid.Column="2" Grid.Row="1" Source="/flexCRM_Adresssen;component/Style/Images/mobiltelefon.png" Height="20" />
                        <telerik:DataFormDataField DataMemberBinding="{Binding Mtele, Mode=TwoWay}" Padding="0" Name="MobilText" Grid.Row="1" Grid.Column="3" MaxWidth="400" Height="Auto" FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Left" VerticalContentAlignment="Stretch" Margin="5" />
                        <Image Grid.Column="2" Grid.Row="2" Source="/flexCRM_Adresssen;component/Style/Images/email.png" Width="20" />
                        <telerik:DataFormDataField DataMemberBinding="{Binding Email, Mode=TwoWay}" Padding="0" Name="EmailText" Grid.Row="2" Grid.Column="3" MaxWidth="400" Height="Auto" FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Left" VerticalContentAlignment="Stretch" Margin="5" />
                        <Image Grid.Column="2" Grid.Row="3" Source="/flexCRM_Adresssen;component/Style/Images/www.png" Width="20" />
                        <telerik:DataFormDataField DataMemberBinding="{Binding Urlt, Mode=TwoWay}" Padding="0" Name="UrlText" Grid.Row="3" Grid.Column="3" MaxWidth="400" Height="Auto" FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Left" VerticalContentAlignment="Stretch" Margin="5" />
                        <Button Grid.Column="2" Grid.Row="4" HorizontalContentAlignment="Left" Padding="0" Margin="5" Width="40" HorizontalAlignment="Left" BorderBrush="{x:Null}" BorderThickness="0">
                            <Image Source="/flexCRM_Adresssen;component/Style/Images/googlemaps.png" Stretch="Uniform" />
                        </Button>
                    </Grid>
                </Border>
            </GroupBox>
        </DataTemplate>
 
        <DataTemplate x:Key="MyEditTemplate">
            <GroupBox Margin="10">
                <GroupBox.HeaderTemplate>
                    <DataTemplate>
                        <Border Background="LawnGreen" CornerRadius="5,5,0,0">
                            <TextBlock Text="Kunde" Margin="5" Width="100"/>
                        </Border>
                    </DataTemplate>
                </GroupBox.HeaderTemplate>
                <Border Margin="10" ScrollViewer.VerticalScrollBarVisibility="Auto">
                    <Grid x:Name="ReadOnlyGrid">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"  />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="40" />
                            <ColumnDefinition Width="320" />
                            <ColumnDefinition Width="50" />
                            <ColumnDefinition Width="320" />
                        </Grid.ColumnDefinitions>
 
                        <Image Grid.Column="0" Grid.Row="0" Source="/flexCRM_Adresssen;component/Style/Images/adressenr.png" Height="20" Margin="10,0,5,0"/>
                        <telerik:DataFormDataField Label="" DataMemberBinding="{Binding Identnummer, Mode=TwoWay}" Padding="0" Name="IdentnummerText" Grid.Row="0" Grid.Column="1" Height="Auto" FontSize="12" IsReadOnly="True" Margin="5"/>
                        <Image Grid.Column="0" Grid.Row="1" Source="/flexCRM_Adresssen;component/Style/Images/adresseninfo.png" Height="20" Margin="10,0,5,0"/>
                        <telerik:DataFormDataField Label="" DataMemberBinding="{Binding Name, Mode=TwoWay}" Padding="0" Name="NameText" Grid.Row="1" Grid.Column="1" Height="Auto" FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" FontWeight="SemiBold" Margin="5" />
                        <telerik:DataFormDataField Label=""  DataMemberBinding="{Binding Ans, Mode=TwoWay}" Padding="0" Name="AnschriftText" Grid.Row="2" Grid.Column="1" Height="Auto" FontSize="12" Margin="5" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"  />
                        <telerik:DataFormDataField Label=""  DataMemberBinding="{Binding Str, Mode=TwoWay}" Padding="0" Name="StrasseText" Grid.Row="3" Grid.Column="1" Height="Auto" FontSize="12"  Margin="5" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"  />
                        <StackPanel Grid.Row="4" Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Stretch">
                            <telerik:DataFormDataField Label=""  DataMemberBinding="{Binding Plz, Mode=TwoWay}" Width="70" Padding="0" Name="PlzText" Height="Auto" FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"  Margin="5"/>
                            <telerik:DataFormDataField Label="" DataMemberBinding="{Binding Nort, Mode=TwoWay}" Padding="0" Name="OrtText" Height="Auto" FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"  Margin="10,5,5,5" />
                        </StackPanel>
                        <telerik:DataFormDataField Label="" DataMemberBinding="{Binding Staat, Mode=TwoWay}" Padding="0" Name="StaatText" Grid.Row="5" Grid.Column="1" Height="Auto" FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"  Margin="5"/>
 
                        <Image Grid.Column="2" Grid.Row="0" Source="/flexCRM_Adresssen;component/Style/Images/telefon.png" Height="20" />
                        <telerik:DataFormDataField DataMemberBinding="{Binding Tele, Mode=TwoWay}" Padding="0" Name="TelefonText" Grid.Row="0" Grid.Column="3" FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="5" Width="300"/>
                        <Image Grid.Column="2" Grid.Row="1" Source="/flexCRM_Adresssen;component/Style/Images/mobiltelefon.png" Height="20" />
                        <telerik:DataFormDataField DataMemberBinding="{Binding Mtele, Mode=TwoWay}" Padding="0" Name="MobilText" Grid.Row="1" Grid.Column="3" MaxWidth="350" Height="Auto" FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="5" Width="300"/>
                        <Image Grid.Column="2" Grid.Row="2" Source="/flexCRM_Adresssen;component/Style/Images/email.png" Width="20" />
                        <telerik:DataFormDataField DataMemberBinding="{Binding Email, Mode=TwoWay}" Padding="0" Name="EmailText" Grid.Row="2" Grid.Column="3" MaxWidth="350" Height="Auto" FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="5" Width="300"/>
                        <Image Grid.Column="2" Grid.Row="3" Source="/flexCRM_Adresssen;component/Style/Images/www.png" Width="20" />
                        <telerik:DataFormDataField DataMemberBinding="{Binding Urlt, Mode=TwoWay}" Padding="0" Name="UrlText" Grid.Row="3" Grid.Column="3" MaxWidth="350" Height="Auto" FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="5" Width="300"/>
                        <Button Grid.Column="2" Grid.Row="4" HorizontalContentAlignment="Left" Padding="0" Margin="5" Width="40" HorizontalAlignment="Left" BorderBrush="{x:Null}" BorderThickness="0">
                            <Image Source="/flexCRM_Adresssen;component/Style/Images/googlemaps.png" Stretch="Uniform" />
                        </Button>
                    </Grid>
                </Border>
            </GroupBox>
        </DataTemplate>
    </UserControl.Resources>
 
    <Grid x:Name="AdressenGrd">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="50" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
 
        <Border Grid.Row="0" Grid.Column="1" Background="White" Margin="5,0,0,0">
            <Grid x:Name="AdressenHeaderGrid">
                <Grid.RowDefinitions>
                    <RowDefinition Height="50" />
                    <RowDefinition Height="50" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <telerik:RadButton VerticalAlignment="Center" BorderThickness="0" Height="Auto" HorizontalAlignment="Center" x:Name="LoadlayoutButton" Background="{x:Null}" Width="Auto" BorderBrush="Transparent"
                                           Margin="5" Grid.Row="0" Click="ButtonLoad_Click">
                    <StackPanel Orientation="Vertical">
                        <Image Width="35" Height="35" Source="/flexCRM_Adresssen;component/Style/Images/resetlayouttn.png"   />
                    </StackPanel>
                    <telerik:RadButton.Template>
                        <ControlTemplate TargetType="Button">
                            <ContentPresenter Content="{TemplateBinding Content}" Cursor="Hand" />
                        </ControlTemplate>
                    </telerik:RadButton.Template>
                </telerik:RadButton>
                <telerik:RadButton VerticalAlignment="Center" BorderThickness="0" Height="Auto" HorizontalAlignment="Center" x:Name="SavelayoutButton" Background="{x:Null}" Width="Auto" BorderBrush="Transparent"
                                           Margin="5" Grid.Row="1"  Click="ButtonSave_Click">
                    <StackPanel Orientation="Vertical">
                        <Image Width="35" Height="30" Source="Style/Images/savelayoutbtn.png"  />
                    </StackPanel>
                    <telerik:RadButton.Template>
                        <ControlTemplate TargetType="Button">
                            <ContentPresenter Content="{TemplateBinding Content}" Cursor="Hand" />
                        </ControlTemplate>
                    </telerik:RadButton.Template>
                </telerik:RadButton>
            </Grid>
        </Border>
         
        <telerik:RadDocking x:Name="RadDocking1" Grid.Row="0" Grid.Column="0" Margin="0,0,10,0" BorderThickness="0" Padding="0">
            <telerik:RadDocking.DocumentHost >
                <telerik:RadSplitContainer MinWidth="300" Height="490">
                    <telerik:RadPaneGroup telerik:RadDocking.SerializationTag="Group0">
                        <telerik:RadDocumentPane Header="Document 1" Title="Document 1" telerik:RadDocking.SerializationTag="pane0" CanUserClose="False" CanFloat="False" CanUserPin="False">
 
                            <telerik:RadDataForm x:Name="AdresseDataForm" ItemsSource="{Binding Adressen}" telerik:StyleManager.Theme="Windows8Touch" AutoGenerateFields="False"
                                                 ReadOnlyTemplate="{StaticResource MyTemplate}" EditTemplate="{StaticResource MyEditTemplate}" EditEnded="AdresseDataForm_OnEditEnded"
                                                 CommandButtonsVisibility="Cancel,Commit,Edit,Add,Delete"/>
                        </telerik:RadDocumentPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
 
            <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedRight">
                <telerik:RadPaneGroup  telerik:RadDocking.SerializationTag="Group1">
                    <telerik:RadPane Header="Vorgänge" Title="Vorgänge" CanUserClose="False" CanDockInDocumentHost="False" telerik:RadDocking.SerializationTag="pane1">
                        <Grid x:Name="VorgaengeGrid" Background="Transparent">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <wpfx:BusyIndicator Name="BusyBar" Margin="0" Grid.Row="0">
                                <telerik:RadGridView telerik:StyleManager.Theme="Windows8" ShowGroupPanel="False" CanUserSortGroups="False" FontSize="14"
                                                     ShowColumnHeaders="False" BorderThickness="0" x:Name="VorgaengeRadGridViewRgv" SnapsToDevicePixels="True" IsFilteringAllowed="False"
                                                     CanUserDeleteRows="False" CanUserInsertRows="False" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False" BorderBrush="{x:Null}"
                                                     HorizontalGridLinesBrush="{x:Null}" VerticalGridLinesBrush="{x:Null}" FrozenColumnsSplitterVisibility="Collapsed" Margin="0,10,0,0" IsReadOnly="True"
                                                     SelectionMode="Single" FontFamily="Tahoma">
                                    <telerik:RadGridView.Columns>
                                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Gruppe}" Width="*" IsVisible="False" Style="{StaticResource VorgaengeRowStyle}"   />
                                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Type}" Width="auto"  />
                                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Anzahl}" Width="*" />
                                    </telerik:RadGridView.Columns>
                                </telerik:RadGridView>
                            </wpfx:BusyIndicator>
                        </Grid>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
 
                <telerik:RadPaneGroup telerik:RadDocking.SerializationTag="Group2" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" >
                    <telerik:RadPane Header="Kalender" Title="Kalender" CanUserClose="False" CanDockInDocumentHost="False" telerik:RadDocking.SerializationTag="pane2">
                        <Frame x:Name="KalenderFrame" NavigationUIVisibility="Hidden" />
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
 
            </telerik:RadSplitContainer>
 
            <telerik:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedBottom">
                <telerik:RadPaneGroup telerik:RadDocking.SerializationTag="Group4">
                    <telerik:RadPane Header="Pane Bottom 1" CanUserClose="False" CanDockInDocumentHost="False" telerik:RadDocking.SerializationTag="pane4" IsPinned="False">
 
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 
            <telerik:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedBottom">
                <telerik:RadPaneGroup  telerik:RadDocking.SerializationTag="Group3">
                    <telerik:RadPane Header="Umsatz" Title="Umsatz" CanUserClose="False" CanDockInDocumentHost="False" telerik:RadDocking.SerializationTag="pane3" Height="400">
                        <Frame x:Name="FinzanzenFrame" NavigationUIVisibility="Hidden" />
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
    </Grid>
</UserControl>

Where is the Problem?

 

Thanks
Best Regards
Rene

ITA
Top achievements
Rank 1
 answered on 11 Aug 2015
1 answer
249 views

Hi,

 Can we have a way to get all the child nodes selected just by selecting a parent node. It is possible through checkbox in treeview. But can we acheive the same through selection?

 

Thanks,

pelli

Milena
Telerik team
 answered on 11 Aug 2015
1 answer
120 views

I have a grid view where in one column I need to have two radio buttons defined (yes and no), but If I try that I get an error about "The property "Visual Tree" can only be set once.".  What I'm wanting is for user to be able to change a selection for that row if he makes a mistake.  I'm rather new at all of this so I might be going about this the wrong way, just using examples I've found and trying to piece together something to work.

Thanks,

-- Jim

 

<telerik:GridViewDataColumn Header="Products Coverage"  DataMemberBinding="{Binding UnderwritingFactor}">              

          <telerik:GridViewDataColumn.CellTemplate>                                                             

             <DataTemplate>                <RadioButton GroupName="ProductsCoverage" Content="Yes" IsChecked="{Binding PropertyLiability.HasProductsCoverage, Mode=TwoWay}"  IsEnabled="{Binding PropertyLiability.HasFarmLiability, Mode=OneWay}"/>                <RadioButton GroupName="ProductsCoverage" Margin="5, 0, 0, 0" Content="No" IsChecked="{Binding PropertyLiability.HasEProductsCoverage, Converter={StaticResource BoolInverseConverter}, Mode=TwoWay}" IsEnabled="{Binding PropertyLiability.HasFarmLiability, Mode=OneWay}"/>                                                             

           </DataTemplate>       

       </telerik:GridViewDataColumn.CellTemplate>                                                        

 </telerik:GridViewDataColumn>

Jim
Top achievements
Rank 1
 answered on 10 Aug 2015
3 answers
305 views

Hi,

How can I dismiss the rightclick Context menu by pressing "ESC" key in Treeview? Please provide your inputs.

Thanks,

Subhashini

 

 

Martin Ivanov
Telerik team
 answered on 10 Aug 2015
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
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?