Telerik Forums
UI for WPF Forum
1 answer
124 views
hi, is the RadWrapPanel child can be stretch?
Yana
Telerik team
 answered on 12 Aug 2014
1 answer
303 views
In my RadDiagram, I currently have the following XAML:

<telerik:RadDiagram.ShapeStyle>
  <Style TargetType="telerik:RadDiagramShape">
    <Setter Property="Geometry" Value="{Binding Geometry, Mode=TwoWay}"></Setter>
  </Style>
</telerik:RadDiagram.ShapeStyle>

<telerik:RadDiagram.ShapeTemplate>
  <DataTemplate>
    <TextBlock Text="{Binding Header}" ></TextBlock>
  </DataTemplate>
</telerik:RadDiagram.ShapeTemplate>

Now I want something another shape, with the same style, but with a ShapeTemplate like:

<telerik:RadDiagram.ShapeTemplate>
  <DataTemplate>
    <TextBlock Text="{Binding Header}" ></TextBlock>
    <TextBlock Text="{Binding SomeValue}" ></TextBlock>
    <TextBlock Text="{Binding AnotherHeader}" ></TextBlock>
  </DataTemplate>
</telerik:RadDiagram.ShapeTemplate>

Which can also be edited (only SomeValue):
<telerik:RadDiagram.ShapeEditTemplate>
  <DataTemplate>
    <TextBlock Text="{Binding Header}" ></TextBlock>
    <TextBox Text="{Binding SomeValue, Mode=TwoWay}" />
    <TextBlock Text="{Binding AnotherHeader}" ></TextBlock>
  </DataTemplate>
</telerik:RadDiagram.ShapeEditTemplate>
 
How can I accomplish having both types of shapes in the same Diagram?
Can this be done in XAML, or do I have to do this in code-behind?
For both types of solutions: How can I accomplish this?

Thanks in advance!
Martin Ivanov
Telerik team
 answered on 12 Aug 2014
2 answers
63 views
Hi,
I’m using RadAutoCompleteBox in my application. I want to
set width property of popup window to auto and remove horizontal scroll.
Ghasem
Top achievements
Rank 1
 answered on 12 Aug 2014
2 answers
1.2K+ views
Hi.

I want to use toggle button.

Button design is attached in file.

I try to find, but I don't find that.

Is it apply that?
Lee
Top achievements
Rank 1
 answered on 11 Aug 2014
1 answer
53 views
Hi,
When setting the SelectedItem property, the background is gray (RowColor1.png). How do I set the background to yellow (RowColor2.png) when SelectedItem is set.

Thanks,
Brew
Brew Hutch
Top achievements
Rank 1
 answered on 11 Aug 2014
3 answers
328 views
Hi,

I would like to create a custom shape based on RadDiagramShape.

Lets say a rectangle and a small circle somewhere within it.

I want the rectangle and circle in different colors and fills.

What is the best way to achieve this ?

Zarko
Telerik team
 answered on 11 Aug 2014
3 answers
107 views
hi !
im having trouble with GridView.
my grid view contains about 100 columns and 100 rows and the first column has check box in it.
the check box can get checked or unchecked through  code and through UI,
if the check box is checked i change the border color and border thickness of the entire row.
if i scroll down to the end of the grid, check some of the check boxes and then scroll back up,
in addition to the checked check boxes, ill see different rows getting checked and their border color and thickness change as well
the rows that get checked are in the same pattern as the original checked rows, for example;

if i check the rows the following way-
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|_V_|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|_V_|___|___|___|___|
|_V_|___|___|___|___|
|___|___|___|___|___|
|_V_|___|___|___|___|


when i will scroll up ill see the same pattern over and over on different rows:

|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|_V_|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|_V_|___|___|___|___|
|_V_|___|___|___|___|
|___|___|___|___|___|
|_V_|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|_V_|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|_V_|___|___|___|___|
|_V_|___|___|___|___|
|___|___|___|___|___|
|_V_|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|_V_|___|___|___|___|
|___|___|___|___|___|
|___|___|___|___|___|
|_V_|___|___|___|___|
|_V_|___|___|___|___|
|___|___|___|___|___|
|_V_|___|___|___|___|



each row has a different data context but when the CheckedChanged event invokes for the check boxes in the random rows, their data context is null.
if i check them manually they will have the right datacontext tho.

please help!




Dimitrina
Telerik team
 answered on 11 Aug 2014
3 answers
181 views
When I try to select RadComboBox off mode Editable. Is it possible to solve this problem?
Example

CellEditTemplateSelector:

        <DataTemplate x:Key="EditDataTemplate" DataType="viewModels:ModelView">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <telerik:RadNumericUpDown NumberDecimalDigits="0"
                                          Minimum="0"
                                          Maximum="10080"
                                          BorderBrush="{x:Null}"
                                          BorderThickness="0"
                                          ShowButtons="False"
                                          IsInteger="True">
                    <telerik:RadNumericUpDown.Value>
                        <MultiBinding Converter="{StaticResource NotificationModelsTwoWayConverter}" Mode="TwoWay">
                            <Binding Path="DataContext.SelectedItem" Mode="OneWay"
                                     RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=UserControl}" />
                            <Binding Path="DataContext" Mode="OneWay" RelativeSource="{RelativeSource Self}" />
                            <Binding Path="Column.Name" Mode="OneWay"
                                     RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=telerik:GridViewCell}" />
                        </MultiBinding>
                    </telerik:RadNumericUpDown.Value>
                </telerik:RadNumericUpDown>
                <telerik:RadComboBox Grid.Column="1" SelectedIndex="0">
                    <telerik:RadComboBoxItem Content="min" Tag="min"/>
                    <telerik:RadComboBoxItem Content="hour" Tag="hour"/>
                    <telerik:RadComboBoxItem Content="day" Tag="day"/>
                </telerik:RadComboBox>
            </Grid>
        </DataTemplate>
Dimitrina
Telerik team
 answered on 11 Aug 2014
9 answers
234 views
I am using the Q1 2010 version of Rad Pie Chart and am baffled as to how to get the control to stop adding decorative styles to the series items. It seems no matter what combination of PaletteBrushes, UseSolidWhatever, Theme, etc... it still adds some unwanted shading and outlining to my pie chart. I can customize the base color alright but the style remains the same. Just look at all the samples. Not just the pie chart. There is the same (themed?) style applied. How do I get rid of this, and sub question, how do I insert my own? Anyone got any ideas?

Tks - Jim
Martin Ivanov
Telerik team
 answered on 11 Aug 2014
5 answers
225 views
Hi, I want to use your Office_Black theme as a base theme for my GridViews but I also need conditional cell styles to be applied. To do this I am using your CellStyleSelector. When the code executes the CellStyleSelector code is called but the styles are not being applied. I assume the Telerik theme is overriding my local styles? Is this the case and how can I fix this please? 

Thanks a lot.

From my User Control:

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Styles/OrderStyles.xaml " />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

From the grid xaml:

            <telerik:RadGridView.Columns >
                <telerik:GridViewDataColumn DataMemberBinding="{Binding OrderStatus}" Header="Status" CellStyleSelector="{StaticResource OrderStatusStyleSelector}"/>

From my app.xaml:

<Application x:Class="My.App"
    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">
    <Application.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
            </ResourceDictionary.MergedDictionaries>
Vanya Pavlova
Telerik team
 answered on 11 Aug 2014
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?