Telerik Forums
UI for WPF Forum
2 answers
452 views
Greetings,
  I have run into an issue when changing the GridViewRow background color.  I have changed the background color based on IsAlternating in the example below: (Note that VerticalGridLinesVisibility is set to True)
<Window.Resources> 
        <Style TargetType="{x:Type telerik:GridViewRow}" > 
            <Style.Triggers> 
                <DataTrigger Binding="{Binding IsAlternating}" Value="False"
                    <DataTrigger.Setters> 
                        <Setter Property="Background" Value="#ABD5F3" /> 
                    </DataTrigger.Setters> 
                </DataTrigger> 
                <DataTrigger Binding="{Binding IsAlternating}" Value="True"
                    <DataTrigger.Setters> 
                        <Setter Property="Background" Value="#CAEEFE" /> 
                    </DataTrigger.Setters> 
                </DataTrigger> 
            </Style.Triggers> 
        </Style> 
    </Window.Resources> 
    <Grid> 
        <telerik:RadGridView Name="radGridViewStyleSimpleTheme" VerticalGridlinesVisibility="Visible"
            <telerik:Theming.Theme> 
                <simple:SimpleTheme /> 
            </telerik:Theming.Theme> 
        </telerik:RadGridView> 
    </Grid> 

In this example the grid will not show vertical lines with in the rows.  I'm guessing this is due to how the controls are layered and the control (Border?) that serves as the row background is overlaying the base grid structure and hiding the grid lines.

I was going to attempt to just change the cell colors themselves based on whether or not they were in an alternating row, however I haven't found a way to accomplish that. I have been unable to find a way to tell if the cell is in an alternating row.

Is there tweak I can make to the control templates to allow grid lines to show in this scenario?

Thanks,
  Chris
Christopher
Top achievements
Rank 1
 answered on 17 Oct 2008
1 answer
134 views
Hi

I have created a windows user control (non wpf) which comprises of :- the WPF RadGridView control hosted in a ElementHost.

When adding a my user control to a controls collection at runtine I get the following error:-

Failed object initialization (ISupportInitialize.EndInit). The result of a query cannot be enumerated more than once.  Error at object 'Telerik.Windows.Controls.GridView.GridViewItemsControl' in markup file 'Telerik.Windows.Controls.GridView;;;Component/Themes/GridView/Telerik/TableView.Templates.xaml'.

any Ideas?

P
Dimitar Dobrev
Telerik team
 answered on 17 Oct 2008
1 answer
117 views
Hi All,

I am using RAD Grid for WPF...

I am trying to change only "Header Style" i.e. changing the font size, fontFamily, fontStyle..

Can any one help me it this...

With Regards
Krishna M
Dimitar Dobrev
Telerik team
 answered on 17 Oct 2008
7 answers
191 views
Hi,
         I am using RadGrid for WPF.My requirement is to show the Cursor in the first cell of Newly Inserted Record.
Can anybody suggest a way to do this ?

Regards,
Krishna
Dimitar Dobrev
Telerik team
 answered on 17 Oct 2008
2 answers
254 views
Greetings,
   I am attempting to do some custom styling based on the Simple theme.  I looked over the example provided on this post (http://www.telerik.com/community/forums/thread/b311D-bkeeck.aspx) however it does not work with the latest builds of the WPF gridview control.

Specifically I am having trouble styling the GridViewHeaderRow (or GridViewHeaderCell) and the row selectors (I haven't found the object name for these yet).

The following is a small piece of code from the styling: (Note the dark blue is for testing purposes, end goal is a gradient brush)
<Window x:Class="radGridStyling.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:radGrid="http://schemas.telerik.com/2008/xaml/presentation" 
    xmlns:Simple="clr-namespace:Telerik.Windows.Controls.Simple;assembly=Telerik.Windows.Controls.Simple" 
    Title="Window1" Height="401" Width="654" > 
    <Window.Resources> 
        <Style TargetType="{x:Type radGrid:GridViewRow}" > 
            <Style.Triggers> 
                <DataTrigger Binding="{Binding IsAlternating}" Value="False"
                    <DataTrigger.Setters> 
                        <Setter Property="Background" Value="#ABD5F3" /> 
                    </DataTrigger.Setters> 
                </DataTrigger> 
                <DataTrigger Binding="{Binding IsAlternating}" Value="True"
                    <DataTrigger.Setters> 
                        <Setter Property="Background" Value="#CAEEFE" /> 
                    </DataTrigger.Setters> 
                </DataTrigger> 
            </Style.Triggers> 
        </Style> 
 
        <Style TargetType="{x:Type radGrid:GridViewHeaderRow}" > 
            <Setter Property="Background" Value="DarkBlue" /> 
        </Style> 
 
        <Style TargetType="{x:Type radGrid:GridViewHeaderCell}" > 
            <Setter Property="Background" Value="DarkBlue" /> 
        </Style> 
 
    </Window.Resources> 
     
    <Grid> 
        <radGrid:RadGridView Margin="26,22,79,43" Name="radGridView1" > 
            <radGrid:Theming.Theme> 
                <Simple:SimpleTheme/> 
            </radGrid:Theming.Theme> 
        </radGrid:RadGridView> 
    </Grid> 
</Window> 
 

In the example above, the GridViewRow style changes work as expected. However the GridViewHeaderRow and GridViewHeaderCell styles have no impact.

Any guidance would be greatly appreciated!

Thanks,
  Chris
Christopher
Top achievements
Rank 1
 answered on 16 Oct 2008
1 answer
100 views
When try in to use the DatePicker control I get the following error when trying to open the calender drop down.

'ContentControl' TargetType does not match type of element 'Control'.

I'm currently on 3.5 sp1 (but found and downloaded the SP1 commpiled dll's)

The DatePicker in the sample app works fine but if a add a new form with your control on it i get the same error, as I cannot see the see whats in the QuickStart code its difficult for me to see what is different

Can anyone help


Cheers
Miroslav
Telerik team
 answered on 16 Oct 2008
0 answers
105 views
ttt
good work
vijay
Top achievements
Rank 1
 asked on 15 Oct 2008
1 answer
81 views
Everytime I start the example program I get (after a variable amount of time) an error saying the application stopped and need to be closed.

I am on Vista with all the latest updates... Is this a know issue ?
Dimitar Dobrev
Telerik team
 answered on 14 Oct 2008
1 answer
124 views
Is there some place where we can download the wpf sample solution ?

Are there any Project we download and play with ?

I tried adding a grid on a xaml windows but I always get Object reference not set error...
Dimitar Dobrev
Telerik team
 answered on 14 Oct 2008
2 answers
123 views
Hello!
I wanna implement my own cell editor. Could you provide some example for me?
Alexander
Top achievements
Rank 1
 answered on 14 Oct 2008
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
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
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
Bronze
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
Bronze
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?