Telerik Forums
UI for WPF Forum
1 answer
121 views
HI,
I have a all those3 controls in my form. Howerver, if the datapager page size is 10 and the gridview have more than 10 rows when i click add new in the data form it show a blank page. if gridview row has lees than the datapager size or I remove the datapager then it works fine.
Is there something I miss or this is a bug?
Thanks,
Ivan Ivanov
Telerik team
 answered on 28 Jun 2013
1 answer
91 views

Hi,

I have a situation where I have successfully shown data in a ParentGrid, but now I have setup a child grid but cant get it to display data.

XAML:

 <telerik:RadGridView Name="CustomersGrid" ShowInsertRow="True" Grid.Column="0" SelectionChanged="CustomersGrid_SelectionChanged">
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition/>
            </telerik:RadGridView.ChildTableDefinitions>            
            <telerik:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <telerik:RadGridView Name="ChildGrid" ShowInsertRow="True" Loaded="ChildGrid_Loaded" />
                </DataTemplate>
            </telerik:RadGridView.HierarchyChildTemplate>
        </telerik:RadGridView>


C#:

 public MainWindow()
        {
            InitializeComponent();
            var customers = Repo.GetCustomers();
            CustomersGrid.RowIsExpandedChanging += CustomersGrid_RowIsExpandedChanging;
            CustomersGrid.ItemsSource = customers;
            
            DataContext = this;
        }

This works fine and shows the child grid when clicking on the + sign. The ParentGrid is bound to Customers (Select * FROM Customers) I need to know how to bind the child grids to Agreements (Select * From Agreements where CUST_NO = '" + CUST_NO + "'"). I cant seem to access the Child Grid's itemsource to set the data binding.

What am I doing wrong?

Thank you very much!
Ron
Ivan Ivanov
Telerik team
 answered on 28 Jun 2013
3 answers
190 views
Hello,
I am applying filtering to a column in the treelist but upon filtering, only the top level rows are kept.Rows in the final results cannot be expanded or collapse. I would like to display all the children rows for the filtered data. How can I achieve this?
Thanks
Dimitrina
Telerik team
 answered on 28 Jun 2013
0 answers
224 views
Hi,

I like to get the current item in a drag & drop operation.
It´s shared code from silverlight and there it´s possible to get the current item with the following code:

private System.Windows.Controls.ListBoxItem GetItemFromPoint(FrameworkElement listBox, Point CurrentPoint)
{
  var p = listBox.TransformToVisual(App.Center.RootVisual).Transform(CurrentPoint);
  IEnumerable hits = VisualTreeHelper.FindElementsInHostCoordinates(p, listBox);
  System.Windows.Controls.ListBoxItem item = null;
 
  foreach (UIElement element in hits)
  {
    if (element is System.Windows.Controls.ListBoxItem)
    {
      item = (System.Windows.Controls.ListBoxItem)element;
      break;
    }
  }
 
  return item;
}

But now I´m using WPF and the RadListBox. The return type now is a RadListBoxItem and the parameter listBox is a RadListBox control.

Which opportunities do I have with the RadListBox in WPF?

Thanks
Mirko
Top achievements
Rank 1
 asked on 28 Jun 2013
5 answers
424 views
<telerik:RadNumericUpDown Value="{Binding DaysNumber}" Minimum="1" IsInteger="True" VerticalAlignment="Center" Margin="5" Maximum="999">
    <telerik:RadNumericUpDown.NumberFormatInfo>
        <globalization:NumberFormatInfo NumberGroupSeparator="" NumberDecimalSeparator="." />
    </telerik:RadNumericUpDown.NumberFormatInfo>
</telerik:RadNumericUpDown>

NumericUpDown control allows to enter commas (the screenshot is  attached). How can I forbid that?
Koen
Top achievements
Rank 1
 answered on 28 Jun 2013
2 answers
103 views
Hi There,

I plan on overriding the Settings Pane by removing the Style and Text sections and then added 1 or 2 additional ones in their place. I'd like to maintain the functionality exposed in Home and Size however, just maybe re-arrange them (so my 2 custom ones are first followed by Home and Size). I can't seem to find a way to simply override the Settings Pane without creating a completely new Settings Pane (like in the MindMap example), can you help point me to an example of this or provide a suggestion on accomplishing this?

Thanks!
Tim
Tim
Top achievements
Rank 1
 answered on 27 Jun 2013
1 answer
63 views
I did upgrade to Q2 2013 yesterday and my solution regressed, wondering if anyone out there seen this or know about this and help me figure out a way out of this.

I am seeing resource load failure for "themes/office/black/gauge.xaml" in both designer and runtime, build passes though.
  • I did upgrade control suite to Q2 2013, no other changes.
  • I noticed that the gauge.xaml was embedded in the assembly "Telerik.WIndows.Controls.DataVisualization.dll" before (in Q2) and it is no longer there now.  I could not find any related information in readme, anyone knows how to find this missing resource?  Thanks in advance for any tips or links.

    Andrey
    Telerik team
     answered on 27 Jun 2013
    1 answer
    140 views
    We are using HorizontalBarSeriesDefinition for our application. When we have to bars, with 0 and +ve value, the labels are displayed properly. But when we use 0 and -ve value. Label for 0 value is not displayed.

    Please refer to the snapshots and code attached below:


    Code:
    <UserControl x:Class="WpfApplication1.ChartControl"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 mc:Ignorable="d"
                 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                xmlns:telerik.chart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
                xmlns:telerik.charting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
                d:DesignHeight="300" d:DesignWidth="300">
        <UserControl.Resources>
            <Style x:Key="AxisXLineStyle" TargetType="Line">
                <Setter Property="Stroke" Value="Black" />
                <Setter Property="StrokeThickness" Value="1" />
            </Style>
     
            <Style x:Key="AxisYLineStyle" TargetType="Line">
                <Setter Property="Stroke" Value="Black" />
                <Setter Property="StrokeThickness" Value="1" />
            </Style>
     
            <Style x:Key="AxisXStyle" TargetType="telerik.charting:AxisX2D">
                <Setter Property="AxisLineStyle" Value="{StaticResource AxisXLineStyle}" />
            </Style>
     
            <Style x:Key="AxisYStyle" TargetType="telerik.charting:AxisY2D">
                <Setter Property="AxisLineStyle" Value="{StaticResource AxisYLineStyle}" />
            </Style>
     
            <Style x:Key="RadChartDefaultStyle" TargetType="telerik.chart:RadChart" >
                <Setter Property="Background" Value="Transparent" />
                <Setter Property="BorderBrush" Value="Transparent" />
                <Setter Property="BorderThickness" Value="0" />
                <Setter Property="Margin" Value="0" />
                <Setter Property="HorizontalAlignment" Value="Stretch" />
                <Setter Property="HorizontalAlignment" Value="Stretch" />
                <Setter Property="telerik:StyleManager.Theme" Value="Metro" />
            </Style>
            <Style x:Key="ChartAreaDefaultStyle" TargetType="telerik.charting:ChartArea" >
                <Setter Property="Background" Value="Transparent"/>
                <Setter Property="EnableAnimations" Value="True"/>
                <Setter Property="AxisXStyle" Value="{DynamicResource AxisXStyle}"/>
                <Setter Property="AxisYStyle" Value="{DynamicResource AxisYStyle}"/>
                <!--<Setter Property="ItemOverlapPercent"  Value="-20" />-->
                <Setter Property="ItemWidthPercent"  Value="50" />
            </Style>
            <Style x:Key="GridLineStyle" TargetType="Line">
                <Setter Property="Stroke" Value="#D7D7D7" />
                <Setter Property="StrokeThickness" Value="2" />
            </Style>
            <Style x:Key="AxisItemLabelStyle" TargetType="TextBlock">
                <Setter Property="FontSize" Value="10" />
                <Setter Property="FontWeight" Value="SemiBold" />
                <Setter Property="Foreground" Value="Black" />
                <Setter Property="HorizontalAlignment" Value="Right" />
                <Setter Property="Margin" Value="0,0,3,0" />
            </Style>
            <telerik.charting:BrushCollection x:Key="ChartPaletteBrushes2" >
                <SolidColorBrush Color="#002060"/>
                <SolidColorBrush Color="#FFC000"/>
            </telerik.charting:BrushCollection>
        </UserControl.Resources>
        <Grid>
            <telerik:RadChart Grid.Row="0" Style="{DynamicResource RadChartDefaultStyle}" ItemsSource="{Binding Data}" Name="chart" LayoutUpdated="chart_LayoutUpdated">
                <telerik:RadChart.DefaultView>
                    <telerik:ChartDefaultView ChartLegendPosition="Bottom" >
                        <telerik:ChartDefaultView.ChartArea >
                            <telerik:ChartArea
                            Style="{DynamicResource ChartAreaDefaultStyle}"
                            LabelFormatBehavior="HumanReadable"
                            LegendName="Legend1"
                            PaletteBrushes="{DynamicResource ChartPaletteBrushes2}"
                            SmartLabelsEnabled="True">
                                <!--<telerik:ChartArea.Annotations>
                                    <telerik.charting:CustomGridLine YIntercept="0" StrokeThickness="2" Stroke="Black" >
                                         
                                    </telerik.charting:CustomGridLine>
                                </telerik:ChartArea.Annotations>-->
                                <telerik:ChartArea.AxisY >
                                    <telerik:AxisY
                                    AutoRange="True" 
                                    IsZeroBased="True"
                                    PlotAreaAxisVisibility="Visible"
                                    MajorTicksVisibility="Collapsed"
                                    MajorGridLinesVisibility="Visible"
                                    MinorTicksVisibility="Collapsed"
                                    StripLinesVisibility="Collapsed">
                                        <telerik:AxisY.AxisStyles >
                                            <telerik:AxisStyles
                                            GridLineStyle="{DynamicResource GridLineStyle}"
                                            ItemLabelStyle="{DynamicResource AxisItemLabelStyle}"
                                            />
                                        </telerik:AxisY.AxisStyles>
                                    </telerik:AxisY>
                                </telerik:ChartArea.AxisY>
                                <telerik:ChartArea.AxisX>
                                    <telerik:AxisX
                                    IsZeroBased="True"
                                    MajorGridLinesVisibility="Collapsed"
                                    StripLinesVisibility="Collapsed">
                                        <telerik:AxisX.AxisStyles>
                                            <telerik:AxisStyles
                                            ItemLabelStyle="{DynamicResource AxisItemLabelStyle}"/>
                                        </telerik:AxisX.AxisStyles>
                                    </telerik:AxisX>
                                </telerik:ChartArea.AxisX>
                            </telerik:ChartArea>
                        </telerik:ChartDefaultView.ChartArea>
                        <telerik:ChartDefaultView.ChartLegend >
                            <telerik:ChartLegend Name="Legend1" Visibility="Collapsed"/>
                        </telerik:ChartDefaultView.ChartLegend>
                    </telerik:ChartDefaultView>
                </telerik:RadChart.DefaultView>
                <telerik:RadChart.SeriesMappings >
                    <telerik:SeriesMapping  >
                        <telerik:SeriesMapping.SeriesDefinition>
                            <telerik:HorizontalBarSeriesDefinition 
                            TextBlock.TextAlignment="Right"
                            ItemToolTipFormat="#VAL{C0}"
                            ItemLabelFormat="#VAL{C0}"
                            SeriesItemLabelStyle="{DynamicResource ChartSeriesItemLabelStyle}"
                            ShowItemToolTips="True">
                                <telerik:HorizontalBarSeriesDefinition.Appearance >
                                    <telerik:SeriesAppearanceSettings  Foreground="Black"  />
                                </telerik:HorizontalBarSeriesDefinition.Appearance>
                                <telerik:HorizontalBarSeriesDefinition.InteractivitySettings>
                                    <telerik:InteractivitySettings SelectionMode="Multiple" SelectionScope="Item" />
                                </telerik:HorizontalBarSeriesDefinition.InteractivitySettings>
                            </telerik:HorizontalBarSeriesDefinition>
                        </telerik:SeriesMapping.SeriesDefinition>
                        <telerik:SeriesMapping.ItemMappings>
                            <telerik:ItemMapping FieldName="Balance" DataPointMember="YValue"/>
                            <telerik:ItemMapping FieldName="AcctCatTyp" DataPointMember="XCategory" />
                        </telerik:SeriesMapping.ItemMappings>
                    </telerik:SeriesMapping>
                </telerik:RadChart.SeriesMappings>
            </telerik:RadChart>
        </Grid>
    </UserControl>

    Peshito
    Telerik team
     answered on 27 Jun 2013
    3 answers
    91 views
    We are using HorizontalBarSeriesDefinition for our application. When we open this application for first time axis line is placed at correct location but when after playing for certain time when we display this chart again, Axis line is misplaced from its actual position. In our code we have assigned only style to specify color and FontWeight to axis line. Apart from that there is no code for axis line.

    Can you please let us know is there any way to redraw axis line at its correct location.
    Petar Kirov
    Telerik team
     answered on 27 Jun 2013
    2 answers
    119 views
    I need to create a scatter plot that looks something like the image I've attached which features a combination of scatter points and rings of defined sizes. 

    I have been able to use the ScatterPointSeries.PointTemplate to create the rings by modifying the width, height, stroke and fill properties so that I get a hollow ring that is larger than the scatter points. However I need to be able to control the size of the ring relative to the chart axis. 

    It appears that something similar to what I need was available in BubbleChart (BubbleSizeRelative) but this is not available in ChartView yet.

    Is there any way I can do this with the current version and if not do you know when it will be implemented? 

    Thanks for the help,

    Andy. 
    Andrew
    Top achievements
    Rank 1
     answered on 27 Jun 2013
    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
    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?