Telerik Forums
UI for WPF Forum
2 answers
217 views
I need to be able to specify a dynamic set of BarSeries for a RadCartesianChart through XAML which is bound to a property in my viewmodel.

I tried creating a property which is of type List<CartesianSeries> and binding to that but it is not working.
public List<CartesianSeries> BarSeriesList
{
    get
    {
        List<CartesianSeries> barSeriesList = new List<CartesianSeries>();
 
        foreach (ChartDataPointModel dataPoint in DataPoints)
        {
            BarSeries barSeries = new BarSeries();
            barSeries.DataPoints.Add(new CategoricalDataPoint() { Value = dataPoint.Value, Label = dataPoint.Name, Category = dataPoint.Name });
            barSeriesList.Add(barSeries);
        }
 
        return barSeriesList;
    }
    set
    {
        // do nothing
    }
}

The XAML I tried to use to bind to it is:

<chart:RadCartesianChart Palette="{Binding Palette}" Height="300" Width="500">
 
     <chart:RadCartesianChart.Series>                       
         <chartView:BarSeries ValueBinding="Value" CategoryBinding="Name" ItemsSource="{Binding BarSeriesList}" />
     </chart:RadCartesianChart.Series>
 
     <chart:RadCartesianChart.HorizontalAxis>
         <chartView:CategoricalAxis/>
     </chart:RadCartesianChart.HorizontalAxis>
      
     <chart:RadCartesianChart.VerticalAxis>
         <chartView:LinearAxis LabelFormat="0" />
     </chart:RadCartesianChart.VerticalAxis>
 
     <chart:RadCartesianChart.Grid>
         <chartView:CartesianChartGrid MajorLinesVisibility="Y" />
     </chart:RadCartesianChart.Grid>
 
 </chart:RadCartesianChart>

How is the BarSeries supposed to be bound to make it dynamic?

Thanks,

Tracy
Greg
Top achievements
Rank 1
 answered on 09 Feb 2013
4 answers
123 views
Hello,

since 2012 Q2 SP2 the RadGridView shows the DateTime Values in en-US culture.
How can I change the the culture back into the machine culture?
Dimitrina
Telerik team
 answered on 08 Feb 2013
10 answers
566 views
I'm getting complaints from the users that disabled controls on our data forms are too hard to read.

Is there some simple, global method for over-riding the foreground color selection used?
Jeff
Top achievements
Rank 1
 answered on 08 Feb 2013
2 answers
134 views
Hello,

I want to implement navigation through MVVM in a WPF aplication using RadTree.

I want to do that, when someone clicks over an item of the tree, the VM executes a Command to change the active view in another prism region.

¿Can you help me with that? I don't know to which element in xaml need to attach the Command, if the RadTree is Binding to an Observable Collection of the VM.

Thanks in advance
oburgaya
Top achievements
Rank 2
 answered on 08 Feb 2013
4 answers
97 views
Hi,
I'm creating a predetermined list of GridView's as controls in a WPF ItemsControl control, and am trying to remove rows via the ViewModel code. I am able to reference the ItemsControl binding, and when I try to delete a specified row via MyGrid.Items.Remove(knownRow), it fails (I also tried adding MyGrid.Items.Refresh() after it). I walked through the code, and found that the property MyGrid.Items.CanRemove is set to false. It's a get only property, so changing it isn't an option.

When creating the grid dynamically, I also tried setting the following properties:

grid.CanUserDeleteRows = true;
grid.IsReadOnly = false;

How do I go about removing rows from the grid?

Thanks,
Ryan
Ryan
Top achievements
Rank 1
 answered on 08 Feb 2013
2 answers
134 views
Hi
I am having difficulty with databinding and child objects with the RadGridview control.
I have a custom object that exposes two properties; a string and a collection (List<>) of child objects. The child objects only expose a single string property.
If I load a number of instances of the custom object each with children, into an Observable collection, the databinding seems to work and I can add new children to the existing parents without any problem.
However, if I add a new parent, when I attempt to add a new child there are databinding errors stating the property name cannot be found and the child is not retained in the child table in the grid control. (BindingExpression path error: 'FloorNo' property not found on 'object' ''Object').
I'm using the MVVM pattern so I am trying to define the hierarchy in the XAML which I've listed below.
Note: Buildings is the observable collection of the custom object Building.
BuildingNo is the string property of Building and Floors is the List<Floor> property where Floor is the child object. FloorNo is the string property of Floor.
Please can you suggest what I need to do to correct or improve the XAML to enable the creation of new children in new parents?
Thanks
Craig
<telerik:RadGridView HorizontalAlignment="Left" Margin="378,0,0,262" Name="buildingsGridView" VerticalAlignment="Bottom" Width="193" Height="197"
                     ItemsSource="{Binding Buildings, Mode=TwoWay}" AutoGenerateColumns="False" ShowGroupPanel="False" ShowInsertRow="True"
                     RowHeight="23" RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                     CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="True" SelectedItem="{Binding SelectedBuilding}">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding BuildingNo}" Header="Building No." IsFilterable="False" IsGroupable="False" IsReorderable="False" IsResizable="False" ShowDistinctFilters="False" Width="*"/>
    </telerik:RadGridView.Columns>
    <telerik:RadGridView.ChildTableDefinitions>
        <telerik:GridViewTableDefinition>
            <telerik:GridViewTableDefinition.Relation>
                <telerik:PropertyRelation ParentPropertyName="Floors" />
            </telerik:GridViewTableDefinition.Relation>
        </telerik:GridViewTableDefinition>
    </telerik:RadGridView.ChildTableDefinitions>
    <telerik:RadGridView.HierarchyChildTemplate>
        <DataTemplate>
            <telerik:RadGridView ItemsSource="{Binding Floors, Mode=TwoWay}" Name="floorsGrid" ShowGroupPanel="False" AutoGenerateColumns="False">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding FloorNo}" Header="Floor No." IsFilterable="False" IsGroupable="False" IsReorderable="False" IsResizable="False" ShowDistinctFilters="False" Width="*" />
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
        </DataTemplate>
    </telerik:RadGridView.HierarchyChildTemplate>
</telerik:RadGridView>
Yoan
Telerik team
 answered on 08 Feb 2013
1 answer
107 views

Hi There,

we observed an issue with the DateTimepicker, 

There seem to be an inconsistent behaviour in RadGridView cells. please check the attached image for more clear details, 

Thanks in advance,
Srinivas.

Dimitrina
Telerik team
 answered on 08 Feb 2013
3 answers
251 views
Hello,

I am using the ChartView with several BarSeries and want to show a popup, when a certain bar is selected.
What's the recommended way to accomplish this?

I was looking at http://www.telerik.com/help/silverlight/radchartview-features-selection.html and tried to use the SelectionChanged event. However, it never gets fired.

I also tried retemplating the BarSeries.PointTemplate and using a transparent Button that overlays the Bar.
However, the Button's command is never invoked - not even when I set the BarSeries' HitTestVisible to true.

Thank you
Petar Kirov
Telerik team
 answered on 08 Feb 2013
3 answers
212 views
RadAutocompleteBox is working fine.

but i have additional requirment that, auto search should start if user have entered 3 characters or more.

i can write script, but does it have property which can be helpful.

Ivo
Telerik team
 answered on 08 Feb 2013
5 answers
173 views
Hi,

I started work with RadCarousel recently, and I have 2 questions:

1) Is there a way to hide RadCarousel navigation panel ?  (navigation panel screenshot attached)
2) How can i make the front Item always be selected?

Thanks for your help,

Harri.
Iva
Telerik team
 answered on 08 Feb 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
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?