Telerik Forums
UI for WPF Forum
1 answer
319 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
72 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.3K+ 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
66 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
353 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
116 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
198 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
245 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
238 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
5 answers
135 views
Hello, I would like to enquire on a solution of the problem as per title.
To elaborate, let's have 2 column as example: Serial and Status, where Serial is a regular data column, while Status is a ComboBox column.
If I sort the GridView by Status column (clicking the Status header), and I tried to edit a Status cell, I will get NullReferenceException. Debugging shows that RadGridView.SelectedItem is null.
I have no problem with other scenarios, such as sorting by Status column and edit a Serial cell, or sorting by Serial column and edit a Status cell, or sorting by Serial column and edit a Serial cell.

Thanks a lot for your attention.
Dimitrina
Telerik team
 answered on 11 Aug 2014
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?