Telerik Forums
UI for WPF Forum
1 answer
235 views
Hi,

My data hierarchy has a single root node. It is always single and always the same.
Is it possible just to hide it and show only items starting from the second level?

Testrash.
Petar Mladenov
Telerik team
 answered on 05 Apr 2011
2 answers
117 views
As mentioned in a previous post I have a hierarchical gridview. On the child gridview I'm using the following binding to propogate selecteditem back up to the parent:
SelectedItem="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=telerik:RadGridView, AncestorLevel=1}, Path=SelectedItem, Mode=TwoWay}"

This seems to work in almost every case, except when I click on the first row in one of the child gridviews. For some reason this doesn't seem to change the SelectedItem as I would expect.
Andrew
Top achievements
Rank 1
 answered on 05 Apr 2011
5 answers
255 views
Using a hierarchy view similar to the Custom Hierarchy demo, I want to allow the user to select only a single row of data (regardless of what tier that data is at). Further, I want to be able to bind to the currently selected row. I saw the demo on how to do this with a single-tier gridview which seems to get me halfway there - I just need to further extend that to the children as well.
Andrew
Top achievements
Rank 1
 answered on 05 Apr 2011
1 answer
585 views
Hi at all .
 
I am working with Wpf RadGridWiew and would like to save data to database with a MVVM command where i receive my modified item placed in my VIEWMODEL automatically every time that i change one row of data.

How can i do so ?

Best regards

Maya
Telerik team
 answered on 05 Apr 2011
3 answers
262 views
Hi,

In your WPF GridView demo, First Look, if you expand a few rows, then choose a tab other than the first, when you scroll the GridView so that the row goes out of view and then you scroll it to reappear, the tab changes to the first one and there is a noticeable delay and jump of the scroll thumb.

I was creating a very similar arrangement and I'd like to know if there's a way to stop this behavior so that the selected tab remains constant while scrolling.

Thanks,

SP
Petar Mladenov
Telerik team
 answered on 05 Apr 2011
1 answer
98 views
Hi, I am using the tileview control that will bound to items at runtime.
When the tileview contains explicit tileitems like  shown below I am able to maximize / minimize the tiles and also have a scrool bar as expected.

<telerik:RadTileView Name="radTileView1" MinimizedRowHeight="200" MinimizedColumnWidth ="200" >

 

 

<telerik:RadTileViewItem></telerik:RadTileViewItem>

 

 

 

<telerik:RadTileViewItem></telerik:RadTileViewItem>

 

 

 

<telerik:RadTileViewItem></telerik:RadTileViewItem>

 

 

 

<telerik:RadTileViewItem></telerik:RadTileViewItem>

 

 

 

<telerik:RadTileViewItem></telerik:RadTileViewItem>

 

 

 

<telerik:RadTileViewItem></telerik:RadTileViewItem>

 

 

 

</telerik:RadTileView>

However , when I bind the tileview to using itemsource to a List of items like shown below, I am unable to maximize, minimize the tiles. What am I doing wrong ?

 

 

 

 

<telerik:RadTileView Name="radTileView1" ItemsSource="{Binding}"

 

 

 

 

MinimizedRowHeight="200" MinimizedColumnWidth ="200" >

 

 

 

 

 

</telerik:RadTileView>

Note: The user control that houses the tileview control has it's data context set to the list .The tileview does show the correct number of tiles corresponding to the number of items in the list, but does not let me maximize or minimize.

 

Zarko
Telerik team
 answered on 05 Apr 2011
2 answers
102 views
I develop some application and use RadRibbonbar with RadRibbonWindow.

I add RadDocking Window to the application.
It is okay in Windows 7's Aero Theme,
but if I change the theme to Windows classic theme, the application is just crushed..

it doesn't have any problem when I use RadDocking window and Default WPF Window together,
but with RadRibbonWindow, it happens.

I guess it cause using RadDocking and RadRibbonWindow together in Windows7's Classic Theme..
Is there any solution to resovle that?? Please help.
sangyun
Top achievements
Rank 1
 answered on 05 Apr 2011
2 answers
50 views
Urgent.... My client has a bug in production enviroment and he can
not do his work. This feature is important and I do not have any
workarround

 I am trying to draw something with splecialslot  style . But the
DataContext of highlightitem is changing incorrectly, and I can not
control the correct positioning of specific images with  databinding

<ctr:SpecialSlotStyleSelector x:Key="
SpecialSlotStyleSelector">
       <ctr:SpecialSlotStyleSelector.MarcaStyle>
           <Style TargetType="telerik:HighlightItem">
               <Setter Property="Panel.ZIndex" Value="20" />
               <Setter
Property="bv:HackIsHitTestVisible.IsHitTestVisible" Value="true"/>
               <Setter Property="Template">
                   <Setter.Value>
                       <ControlTemplate>
                           <Grid >
                               <Border  IsHitTestVisible="False"
Background="White" Opacity="0.25" >

                               </Border>
                               <Grid IsHitTestVisible="True"
telerik:RadDragAndDropManager.AllowDrag="True"
Background="Transparent" x:Name="root" HorizontalAlignment="Center">
                                   <Grid.InputBindings>
                                       <MouseBinding
MouseAction="LeftDoubleClick" CommandParameter="{Binding
Path=Marcador}" Command="app:AppCommands.ShowMarkEditVw"/>
                                   </Grid.InputBindings>
                                   <Grid.ColumnDefinitions>
                                       <ColumnDefinition
Width="auto"></ColumnDefinition>
                                   </Grid.ColumnDefinitions>
                                   <Image Margin="0,0,0,0"
Source="{Binding Imagem, Converter={StaticResource imageConverter}}"/>

                                   <telerik:RadButton Grid.Column="1"
x:Name="DeleteButton" Opacity="1" Visibility="Collapsed"
                                                                               CommandParameter="{Binding Path=Marcador.ID_ViaturasMarcadores}"
                                                                               Command="local:AppCommands.RemoveMark"
                                                                               HorizontalAlignment="Right" Height="11" Margin="1,1,-11,1" Padding="0"
                                                                               VerticalAlignment="Top" Width="11">
                                       <telerik:StyleManager.Theme>
                                           <telerik:Expression_DarkTheme />
                                       </telerik:StyleManager.Theme>
                                       <Path Data="M0,0L5,5 M5,0L0,5"
Stroke="#FFDDDDDD" />
                                   </telerik:RadButton>


                               </Grid>
                           </Grid>

                           <ControlTemplate.Triggers>
                               <Trigger Property="IsMouseOver"
Value="true" SourceName="root">
                                   <Setter Property="Visibility"
Value="Visible" TargetName="DeleteButton" />

                               </Trigger>
                           </ControlTemplate.Triggers>
                       </ControlTemplate>
                   </Setter.Value>
               </Setter>
           </Style>
       </ctr:SpecialSlotStyleSelector.MarcaStyle>
   </ctr:SpecialSlotStyleSelector>
Mário
Top achievements
Rank 1
 answered on 05 Apr 2011
2 answers
55 views
 Urgent.... My client has a bug in production enviroment and he can
not do his work. This feature is important and I do not have any
workarround

 I am trying to draw something with splecialslot  style . But the
DataContext of highlightitem is changing incorrectly, and I can not
control the correct positioning of specific images with  databinding

<ctr:SpecialSlotStyleSelector x:Key="
SpecialSlotStyleSelector">
       <ctr:SpecialSlotStyleSelector.MarcaStyle>
           <Style TargetType="telerik:HighlightItem">
               <Setter Property="Panel.ZIndex" Value="20" />
               <Setter
Property="bv:HackIsHitTestVisible.IsHitTestVisible" Value="true"/>
               <Setter Property="Template">
                   <Setter.Value>
                       <ControlTemplate>
                           <Grid >
                               <Border  IsHitTestVisible="False"
Background="White" Opacity="0.25" >

                               </Border>
                               <Grid IsHitTestVisible="True"
telerik:RadDragAndDropManager.AllowDrag="True"
Background="Transparent" x:Name="root" HorizontalAlignment="Center">
                                   <Grid.InputBindings>
                                       <MouseBinding
MouseAction="LeftDoubleClick" CommandParameter="{Binding
Path=Marcador}" Command="app:AppCommands.ShowMarkEditVw"/>
                                   </Grid.InputBindings>
                                   <Grid.ColumnDefinitions>
                                       <ColumnDefinition
Width="auto"></ColumnDefinition>
                                   </Grid.ColumnDefinitions>
                                   <Image Margin="0,0,0,0"
Source="{Binding Imagem, Converter={StaticResource imageConverter}}"/>

                                   <telerik:RadButton Grid.Column="1"
x:Name="DeleteButton" Opacity="1" Visibility="Collapsed"
                                                                               CommandParameter="{Binding Path=Marcador.ID_ViaturasMarcadores}"
                                                                               Command="local:AppCommands.RemoveMark"
                                                                               HorizontalAlignment="Right" Height="11" Margin="1,1,-11,1" Padding="0"
                                                                               VerticalAlignment="Top" Width="11">
                                       <telerik:StyleManager.Theme>
                                           <telerik:Expression_DarkTheme />
                                       </telerik:StyleManager.Theme>
                                       <Path Data="M0,0L5,5 M5,0L0,5"
Stroke="#FFDDDDDD" />
                                   </telerik:RadButton>


                               </Grid>
                           </Grid>

                           <ControlTemplate.Triggers>
                               <Trigger Property="IsMouseOver"
Value="true" SourceName="root">
                                   <Setter Property="Visibility"
Value="Visible" TargetName="DeleteButton" />

                               </Trigger>
                           </ControlTemplate.Triggers>
                       </ControlTemplate>
                   </Setter.Value>
               </Setter>
           </Style>
       </ctr:SpecialSlotStyleSelector.MarcaStyle>
   </ctr:SpecialSlotStyleSelector>
Mário
Top achievements
Rank 1
 answered on 05 Apr 2011
2 answers
193 views
Hi,telerik.
    Here is a problem of the Docking Loadlayout.
    First, click the "Add New Item" button add some panel.
    Second,click the "Save Layout".At this time,click "Add New Item" button can add a panel to Docking.
    Now, click the "Load Layout" button,then click the "Add New Panel" button,there is no panel added to the Docking...
    Oh,the Title should be:"Can't Add a new RadPane to Docking After LoadLayout"

Here is the xaml
<Window xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="ISSUE.MainWindow"
        Title="MainWindow" Height="526" Width="762">
  
    <Grid Background="{Binding Background,ElementName=Docking}">
        <Grid.RowDefinitions>
            <RowDefinition Height="90" />
            <RowDefinition Height="288*" />
        </Grid.RowDefinitions>
        <telerik:RadDocking HasDocumentHost="True" Name="Docking" Grid.Row="2" >
            <!--DocumentHost-->
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup x:Name="GroupDocument">
  
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
  
            <telerik:RadSplitContainer telerik:DockingPanel.InitialSize="260,260" MaxWidth="400" 
                    Name="LeftContainer" InitialPosition="DockedLeft">
                <telerik:RadPaneGroup x:Name="GroupLeft">
                    <telerik:RadPane Header="Test" telerik:RadDocking.SerializationTag="MENU"  CanUserClose="False" />
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
  
            <telerik:RadSplitContainer telerik:DockingPanel.InitialSize="200,200" MaxWidth="400"
                    x:Name="RightContainer" InitialPosition="DockedRight">
                <telerik:RadPaneGroup x:Name="GroupRight">
  
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
  
            <telerik:RadSplitContainer telerik:DockingPanel.InitialSize="200,200"
                    x:Name="BottomContainer" InitialPosition="DockedBottom">
                <telerik:RadPaneGroup x:Name="GroupBottom">
                    <telerik:RadPane Header="Output" telerik:RadDocking.SerializationTag="OUTPUT"  CanUserClose="False" />
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
  
        </telerik:RadDocking>
        <Button Content="Load Layout" Height="64" HorizontalAlignment="Left" Margin="196,12,0,0" Name="button1" VerticalAlignment="Top" Width="178" Click="button1_Click" />
        <telerik:RadButton Content="Add New Panel" Grid.Row="1" Height="49" HorizontalAlignment="Left" Margin="12,33,0,0" Name="radButton1" VerticalAlignment="Top" Width="107" Click="radButton1_Click" />
        <Button Content="Save Layout" Height="64" HorizontalAlignment="Left" Margin="12,12,0,0" Name="button2" VerticalAlignment="Top" Width="178" Click="button2_Click" />
    </Grid>
</Window>




And here is the cs code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
using System.IO;
  
namespace ISSUE
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
  
        private void radButton1_Click(object sender, RoutedEventArgs e)
        {
            RadPane rp = new RadPane();
            rp.Header = DateTime.Now.ToString("yyyyMMddHHmmssfff");
            rp.Title = rp.Header;
  
            RadDocking.SetSerializationTag(rp, rp.Header.ToString());
            this.GroupDocument.Items.Add(rp);
        }
  
        string layout = string.Empty;
  
        private string SaveLayoutAsString()
        {
            MemoryStream stream = new MemoryStream();
            this.Docking.SaveLayout(stream);
  
            stream.Seek(0, SeekOrigin.Begin);
  
            StreamReader reader = new StreamReader(stream);
            return reader.ReadToEnd();
        }
  
        private void LoadLayoutFromString(string xml)
        {
            using (Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(xml)))
            {
                stream.Seek(0, SeekOrigin.Begin);
                this.Docking.LoadLayout(stream);
            }
        }
  
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            LoadLayoutFromString(layout);
        }
  
        private void button2_Click(object sender, RoutedEventArgs e)
        {
            layout = SaveLayoutAsString();
        }
    }
}

George
Telerik team
 answered on 05 Apr 2011
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?