Telerik Forums
UI for WPF Forum
4 answers
82 views
Hi,
I'm brand new to Telerik and I'm feeling kind of stupid.
I have a 2D Stacked Bar Chart

I am trying to refresh the data after a set interval.  I'm creating a dashboard application.
Whenever I refresh the data the new data is just getting added to the old data.
I tried setting the itemsource to nothing but it does not seem to make any difference.

The code I'm using was basically cannibalized from one of the demos and I really don't know what I'm doing.

First off how do I remove the data before adding it again?

Second is there a good place someone can point me to, to learn more about the following objects?
SeriesMapping, DataSeries, ItemMapping, DataPointMember.... I'm having a hard time understanding when to use what.

Thanks in advance and I apologize for my ignorance.
Tim
Vladimir Milev
Telerik team
 answered on 11 Oct 2010
1 answer
159 views
Hi,
I have address types combobox in my RadGridView.
 <telerik:GridViewComboBoxColumn Header="Address Type" Width="100"  Name="AddressTypes" SelectedValueMemberPath="AddressTypeID" DataMemberBinding="{Binding AddressTypeID ,Mode=TwoWay}" DisplayMemberPath="Name"  />

How can I make is eidtable and text complte property etc like in regular combox.
Thanks
Maya
Telerik team
 answered on 11 Oct 2010
5 answers
795 views
Hi
I have a GridView that shows a bunch of rows and has 15 columns, let me name them A1, A2, A3, M1, M2, ...to M12.
Each "M" column can have a value that is either "1" or "0".
I want to show the cell that are "1" with background="Black" and those that are "0" with Background="White".

Following the documentation  I use a class CellTemplateSelector that implement a DataTemplateSelector ( object item, DependencyObject container ).

In the documentation the Template selector is used for formatting one column of the GridView based in its value.So it works for one column in the whole row.

In my case I need to call my CelllTemplateSelector from every "M" column cell in the row and decide what format apply to the cell based on its value (0 or 1).

If I use the Selector implemented in the documentation, I notice that when I call it, I get the parameter "item" that gives me the whole row but I don't know what column I am calling from.

I need to get the column from where I am calling from in order to check for the value of that specific column in order to select the template to apply.

So my question is: How should I call my TemplateSelector and pass the row but also the column name I am calling from.. 

Thanks
Willy Vidable
Top achievements
Rank 1
 answered on 08 Oct 2010
3 answers
135 views
Hi there,

I have a RadChart plotting actual and forecast sales against month using a single LineSeriesDefinition.  I would like to change the colour of the forecasted sales numbers, after the current month.  Is that possible?

Many thanks!

Anthony
Velin
Telerik team
 answered on 08 Oct 2010
1 answer
187 views

After the user clicks and resizes a rad splitter in a docking layout, the splitter is left with keyboard focus.  This is not the case with standard WPF grid splitters and I would like to have a similar behavior in a docking layout. To test: Click and resize a splitter then press the up/dn/left/right arrow keys -- I would like keyboard focus left where it used to be not on the splitter.

Usually in WPF, this means setting Focusable = false. I am setting that on the RadSplitContainers and on RadDocking but it does not help.

Does anyone have a technique for acheiving this?

John
John Schroedl
Top achievements
Rank 2
 answered on 08 Oct 2010
1 answer
55 views
Hello,

is it possible to overwrite the "Grouped by" text in the groupdescriptor header?
I've found no attribute for changing the text.
Vanya Pavlova
Telerik team
 answered on 08 Oct 2010
6 answers
840 views
I have a simple 3 column GridView.  The 2nd column is defined as a GridViewComboBoxColumn.  I would like to bind an Enum list to that ComboBox.ItemsSource property.  How do I do this?

On a typical combobox, I could do the following:

 

 

 

cboValueType.ItemsSource = Enum.GetValues(ValueType); 

Thanks for your help.

 

 

 

 

 

 

 

 

Barnabas
Top achievements
Rank 1
 answered on 08 Oct 2010
1 answer
117 views

Hey all,

Does anyone know how to build a hierarchical TreeView like we have the ability to do in WinForms.

In WinForms I can do:

radTreeView1.DataSource = industryCodeList;
radTreeView1.DisplayMember = "Description";
radTreeView1.ValueMember = "IndustryCode1";
radTreeView1.ParentIDMember = "ParentIndustryCode";

I would then get a hierarchical TreeView that was really simple to use.

Thanks,
Erik Van Norstrand

Alex Fidanov
Telerik team
 answered on 08 Oct 2010
1 answer
108 views

Hi,

I have been using DataTables bound to Telerik GridViews for displaying tabular data. But in some I cases I will have to stop using the DataTable and instead use a custom class which simplified would look like this:

public class UDataTable
{
    public IList<string> Header { get; set; }
        
    public IList<UDataRow> Rows { get; set; }
}

public class UDataRow
{
    public IList<object> Columns = new List<object>();
}

Could anyone point me to any resource that explains what I need to add to my classes so that the GridView displays them like it displays a DataTable?

Thanks,
Jose

Pavel Pavlov
Telerik team
 answered on 08 Oct 2010
4 answers
831 views
Hi..
How can I initially set the value to blank   "  /   /   " -
So when the form is open  the user can start to type in the date?
thanks again.........
Boyan
Telerik team
 answered on 08 Oct 2010
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?