Telerik Forums
UI for WPF Forum
5 answers
865 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
168 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
227 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
72 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
953 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
147 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
131 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
900 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
0 answers
91 views

I’m performing a Drag and Drop between two grids. The row is not removed from the first grid after the drop is completed.  Both the grids have the same ObservableCollection. Did anyone notice this behavior?

RJ

RJ
Top achievements
Rank 1
 asked on 08 Oct 2010
6 answers
129 views
Hello,

I've got a GridView with four interlaced ChildGridViews. Each GridView contains some different and some identical columns. The identical containing numbers and are arranged right. The columns that are different in each GV are arranged left. My intention is to get all the number-columns below the others.

I have tried to insert a column with width="*" before the right arranged columns start. But that don't works. The stretching function does not consider the width of the child GridViews. So the columns are not below the others.

What can I do to get this work?
Maya
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?