Telerik Forums
UI for WPF Forum
2 answers
195 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
94 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
482 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
281 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
258 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
98 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
569 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
141 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
246 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
5 answers
351 views
FYI,,,,The "Search as you Type" Filtering sample on your website is missing its source code. When you click on View Code you get "Cannot find description" and a blank page.

Also, the version that comes with the downloads "Launch the C# Examples" seems to have some problems with the source code.

I've tried to implement a test version of this filter and as I step through the code it seems all my code does is instantiate the CustomFilterDescription class and that's it. I've basically implemented it just like the sample code. I don't see where method SatisfiesFilter() gets called.....from either of the .cs files in the sample code.  

Am I not understanding this sample or is there a complete/updated set of source for the sample I could obtain? We're in the process of trying to get a couple license purchases authorized and I'm building a proof of concept form with the trial version and it would be really nice if I could implement this functionality in the proof of concept.

Thanks,
Byron
Dimitrina
Telerik team
 answered on 18 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?