Telerik Forums
UI for WPF Forum
1 answer
167 views

Hi,

i tried your wpf exmaple of the tileview control:

       </Grid.RowDefinitions>
  
        <Border Grid.Row="0" Grid.Column="0" Background="#5ab765" Margin="0,0,5,0">
            <StackPanel Orientation="Horizontal" Margin="10,5,10,5" HorizontalAlignment="Left">
                <Image  Stretch="Uniform" Margin="5" Source="Style/Images/lupe.png" />
                <TextBox BorderThickness="0" Padding="3" MinWidth="230" Background="white" x:Name="SuchenInput"
                                            HorizontalContentAlignment="Left" VerticalContentAlignment="Center" TabIndex="1"
                                            HorizontalAlignment="Center"/>
            </StackPanel>
        </Border>
          
        <Border Grid.Row="0" Grid.Column="1" Background="#5ab765" Margin="5,0,0,0">
            <Label Content="{Binding Value}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontSize="18" x:Name="AufgabeNrlbl"/>
        </Border>
          
        <telerik:RadGridView x:Name="RadGridView1" GroupRenderMode="Flat" telerik:StyleManager.Theme="Windows8Touch"
                             ItemsSource="{Binding Adressen}" GroupPanelBackground="#4582bb"
                             ColumnWidth="*" CanUserFreezeColumns="False" Margin="5,10,5,10" Grid.Row="1" Grid.Column="0"
                             RowIndicatorVisibility="Collapsed" ShowGroupPanel="False" AutoGenerateColumns="False"
                             flexCrmAdressen:CustomFilterBehavior.TextBox="{Binding ElementName=SuchenInput}">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Width="*" Header="Name" x:Name="Namelbl" IsVisible="True" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
  
        <telerik:RadTileView x:Name="DetailView" Grid.Row="1" Grid.Column="1" Margin="0" ColumnWidth="Auto"
                             DragMode="{Binding ElementName=dragMode, Path=SelectedItem}" IsItemsSizeInPercentages="True"
                             MinimizedColumnWidth="250" PreservePositionWhenMaximized="true" MinimizedRowHeight="Auto"
                             telerik:TileViewPanel.IsRowsShrinkEnabled="True" telerik:TileViewPanel.IsSizeBoundToPosition="True"
                             RowHeight="Auto" telerik:TileViewPanel.IsColumnsShrinkEnabled="True"
                             telerik:StyleManager.Theme="Windows8Touch">
            <telerik:RadTileViewItem Header="Generell" RestoredHeight="38" MinimizedHeight="200" RestoredWidth="200"
                                     PreviewPositionChanged="RadTileViewItem_PreviewPositionChanged">
                <StackPanel Margin="5 5 0 0" >
                    <Label Content="Teeeeeeeeeeeeeeeeest" Background="Aqua" Width="200"></Label>
                </StackPanel>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="My Settings" RestoredHeight="38" MinimizedHeight="160" RestoredWidth="50">
                <StackPanel Margin="5 5 0 0">
                    <Label Content="Teeeeeeeeeeeeeeeeest" Background="Aqua"></Label>
                </StackPanel>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="My Calendar" RestoredHeight="38" MinimizedHeight="200" RestoredWidth="50">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition MinWidth="218" />
                    </Grid.ColumnDefinitions>
                    <telerik:RadCalendar x:Name="myCalandar" Margin="7" />
                </Grid>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item4">
                <TextBlock Text="Item4 Content" />
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item5">
                <TextBlock Text="Item5 Content" />
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item6">
                <TextBlock Text="Item6 Content" />
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item7">
                <TextBlock Text="Item6 Content" />
            </telerik:RadTileViewItem>
  
        </telerik:RadTileView>
    </Grid>
</UserControl>

 i attached a image as it look like now. Why dow not stop the tileview with on the yellow line? I your example the TileViewItems are in the window.

Thanks a lot

best regards

rene

Milena
Telerik team
 answered on 22 Jun 2015
2 answers
205 views

Hi,

I use the RadTreeView with static items - RadTreeViewItems are created in code. I need the tree items to stretch horizontally - so I set the ItemContainerStyle:

<telerik:RadTreeView.ItemContainerStyle>            
   <Style TargetType="telerik:RadTreeViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="Padding" Value="0" />
    </Style>
</telerik:RadTreeView.ItemContainerStyle>

Unfortunately the style is applied only the root items - like stated in the documentation:

  • "When using ItemContainerStyle with static items, it will get applied only to the direct children of the RadTreeView - the top-level items. If you want their child items to have the same style you have to manually set the ItemContainerStyle property of their parents." (Documentation)

I do not understand how to "manually set the ItemContainerStyle property of their parents". Is there a working example how to use ItemContainerStyle with static items?

Beste regards,
Thomas

IT-Support
Top achievements
Rank 2
 answered on 22 Jun 2015
1 answer
101 views

How I can assign a RadDiagramShape shape.ActualBounds.Height to shape.Geometry.Bounds.Height?

How I try, I have exception: "Cannot modify the return value because it is not a variable"

I can't solve this problem.

 

    
Peshito
Telerik team
 answered on 22 Jun 2015
21 answers
492 views
The grid control, is there an example of template the grid header, I wish to put in my own vector image for the sort Icons?
prathibha
Top achievements
Rank 1
 answered on 22 Jun 2015
4 answers
286 views

This is my ChartView:

 

<telerik:RadCartesianChart x:Name="bpsChart" Palette="Windows8" Margin="20,56,17,544" >
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorXLineDashArray="5, 5" MajorYLineDashArray="5, 5" MajorLinesVisibility="None">
                    <telerik:CartesianChartGrid.MajorYLineStyle>
                        <Style TargetType="{x:Type Line}">
                            <Setter Property="Stroke" Value="Gray"/>
                        </Style>
                    </telerik:CartesianChartGrid.MajorYLineStyle>
                    <telerik:CartesianChartGrid.MajorXLineStyle>
                        <Style TargetType="{x:Type Line}">
                            <Setter Property="Stroke" Value="Gray"/>
                        </Style>
                    </telerik:CartesianChartGrid.MajorXLineStyle>
                </telerik:CartesianChartGrid>
            </telerik:RadCartesianChart.Grid>
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:CategoricalAxis ShowLabels="False" IsEnabled="False" />
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis >
                <telerik:LinearAxis  ShowLabels="False" IsEnabled="False"/>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.Series>
                <telerik:LineSeries CategoryBinding="Date" ValueBinding="Value" Stroke="Yellow"
                                    ItemsSource="{Binding CurrentPosValues, RelativeSource={RelativeSource AncestorType=Window}}"/>
            </telerik:RadCartesianChart.Series>
        </telerik:RadCartesianChart>

As you can see i removed the Axis label but i didn't find how to remove the label ticks, please see my attach file.

 

Thansk

 

berry
Top achievements
Rank 1
 answered on 21 Jun 2015
7 answers
261 views

Hallo, i d like to change text in Diagram Items by using Settings Pane but when i open settings pane for selected item in the text tab is just name of node but no content of node. Could you guide through this? 

 

Thank you

Jakub

Jakub
Top achievements
Rank 1
 answered on 19 Jun 2015
1 answer
106 views

Hi team,

First I have to admit that the GridView is an amazing control I've ever used. However, when used in my App, a strange performance problem is occurring.

I have a frame control which i would set its Source property to different pages to do navigations. In one page, there are some basic controls, there are two other pages containing a GridView control apiece. When the App startups, it first shows the page containing those basic controls. When I go to other pages containing GridView controls, it takes a long time, it's roughly 8 seconds per my counting.  I measure the duration both for navigation and GridView loading (like RadGridView1.LayoutUpdated -= RadGridView1_LayoutUpdated;). And both values are less than 1000ms. Now I'm kind of lost now. It seems the GridView can be loaded quickly (My total data for GridView is 1400 rows * 17 cols), and the navigation also could be loaded quickly. The only left thing is rendering before users truly see the destination page. I can see nowhere could be the possible painpoint. Anyone ideas?

 

Thanks,

Jingfei

Dimitrina
Telerik team
 answered on 19 Jun 2015
9 answers
577 views

Hi,

I am working on WPF.\ and we are using telerik controls in our project.

we are implementing Expand all rows functionalaity in Telerik radgridview . In our radgridview few rows has childgrid and if we are using expandallhierarchyitems() method then it is expanding all rows. My requirment is when i click on expand all button then it shoud expand only those rows which have child grid control.

Dimitrina
Telerik team
 answered on 19 Jun 2015
5 answers
146 views
Hi, I'm HeeJun Lee.

My program is using 'RadTabControl'.

To behaving selection of RadTabItem, program have more memory.

When behaving with only code, memory is not increase.

What should I do??

Below my .XAML code source part.

//------------------------------------------------------------------------------------------------------------------------------

<telerik:RadTabControl VerticalAlignment="Stretch" DisplayMemberPath="Content" ScrollMode="Viewport" SelectedIndex="{Binding TagManager.TabIndex}" IsEnabled="{Binding TagManager.SelectionBusy}">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="SelectionChanged">
                        <i:InvokeCommandAction Command="{Binding TagManager.SelectionCommand}"
                                               CommandParameter="{Binding Path=SelectedItem, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadTabControl}}}"/>
                    </i:EventTrigger>
                </i:Interaction.Triggers>                <telerik:RadTabItem Header="A" Width="80">
                    <view:StatusView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="B" Width="80">
                    <view:StatusView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="C" Width="80">
                    <view:AnalogView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="D" Width="80">
                    <view:AnalogView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="E" Width="80">
                    <view:AnalogView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="F" Width="80">
                    <view:CountView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="G" Width="80">
                    <view:CountView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="H" Width="80">
                    <view:CountView />
                </telerik:RadTabItem>
            </telerik:RadTabControl>

//------------------------------------------------------------------------------------------------------------------------------
Joel
Top achievements
Rank 1
Iron
 answered on 19 Jun 2015
4 answers
252 views

Hi,

 

 I'm looking to use the RadGridView with a specfic use case for filtering.  We're in an MVVM setup, where filtering of the data rows is performed in the viewmodel rather than in the view.  However, I'd still like to use a filter row in this setup.  

 

Effectively, I want that filter row to be able to bind to our own FilterViewModel property in the view model that represents it.  Imagine this as just a TextBox for each column sitting in the filter row on top that is represented by a Dictionary<string,string> in the viewmodel: where the key is the column unique name, and the value is what the user entered for that textbox.  Behind the scenes, when this dictionary changes, we will perform the filtering ourselves.

 

As far as I understand it, this would require a custom filter control in the filter row of the RadGridView, and notification when the user changes a value in one of those filters.  However, it seems like it's impossible to use the filtering row or indicators of the RadGridView without using IFilterDescriptors or other Telerik-specific filtering items.  Is that true?  How could I make this scenario work?

 

 I'm able to do this to a certain extent with Infragistics controls -- we're evaluating Telerik to move over to and this is fairly critical to that process. 

 

 Thanks,

Alan

Alan
Top achievements
Rank 1
 answered on 18 Jun 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
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
Security
VirtualKeyboard
HighlightTextBlock
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?