Telerik Forums
UI for WPF Forum
13 answers
400 views
Hi Team,

1)I want to delete child row based on parent row in radgridview ( hierarchy example).

2)to retrieve child and parent field's data when a child row is selected in radgridview(hierarchy ).

I will be thankfull if anybody helps me.
Atanas
Telerik team
 answered on 24 Oct 2008
5 answers
97 views
Hi team,

1)showgroup panel should be delete from child table and should appear in parent table.( gridview hierarchy)
2)change header column fontfamily only not for column's data(i.e in rows) in
parent table as well as child table in gridview hierarchy.
3)to have child table to child table in gridview hierarchy.


Thank you
Atanas
Telerik team
 answered on 24 Oct 2008
20 answers
470 views
Hi team

Please help me ,Very important task for me .As soon as possible send me sample by tomorrow morning.


currently when we double click only we are getting cell in edit mode  in rad gridview 
requirement:
When using tab and navigating through gridview cells ,the cell  should be in edit mode .


Thank you .
Atanas
Telerik team
 answered on 24 Oct 2008
0 answers
180 views
I am having no luck trying to create a editable node.  I am using XmlDataProvider and HierarchicalDataTemplates.

I have set IsEditable to True on the TreeView.

My DataTemplates look like this:

        <HierarchicalDataTemplate DataType="forest" ItemsSource="{Binding XPath=tree}"
            <StackPanel> 
                <TextBlock Text="{Binding XPath=@name}" MouseDown="Node_MouseDown" /> 
            </StackPanel> 
        </HierarchicalDataTemplate> 
        <HierarchicalDataTemplate DataType="tree" ItemsSource="{Binding XPath=branch}"
            <StackPanel> 
                <TextBlock Text="{Binding XPath=@name}" MouseDown="Node_MouseDown" /> 
            </StackPanel> 
        </HierarchicalDataTemplate> 
        <HierarchicalDataTemplate DataType="branch" ItemsSource="{Binding XPath=leaf}"
            <StackPanel> 
                <TextBlock Text="{Binding XPath=@name}" MouseDown="Node_MouseDown" /> 
            </StackPanel> 
        </HierarchicalDataTemplate> 
        <DataTemplate DataType="leaf"
            <StackPanel> 
                <TextBlock Text="{Binding XPath=@name}" MouseDown="Node_MouseDown" /> 
            </StackPanel> 
        </DataTemplate> 

If I press F2 while on a node, I get a textbox that pops up on top -- but it says
System.Xml.XmlElement.  I need to somehow get it bound to @name so that the two-way binding will function.

If I replace the text on my last node (the leaf) in the edit box (this is on the DataTemplate), then the TextBlock node shows up blank from then on but doesn't save it so it's not making it back to the XmlDataProvider .

If I edit the text on one of the HierarchicalDataTemplates, it seems to have no effect.

Thanks,
Timothy


Timothy Lee Russell
Top achievements
Rank 2
 asked on 22 Oct 2008
3 answers
156 views
Hi all,

I am trying to change the controltemplate for the DistinctFilterControl of each column in a grid (we need to change the colors to match our corporate colors).  I used Expression Blend to grab a copy of the template, and started modifying the colors from there.  I got the colors changed, but now the actual filter mechanism doesn't work - the dropdown of distinct values has no items listed.  I didn't change the binding of the CheckBoxList (on line 116 of the template, below) at all... how do I fix this?

Thanks,
-Doug

<ControlTemplate x:Key="DistinctFilterTemplate" TargetType="{x:Type telerik:DistinctFilterControl}"
    <StackPanel> 
        <StackPanel.Resources> 
            <BooleanToVisibilityConverter x:Key="booleanConverter"/> 
        </StackPanel.Resources> 
        <telerik:GridViewFilteringDropDown x:Name="PART_Dropdown" VerticalAlignment="Stretch" Width="30" Height="30"
            <Border HorizontalAlignment="Stretch" x:Name="border" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Background="#00FFFFFF"
                <Grid Width="11" Height="12"
                    <Path Fill="#FF000000" Stretch="Fill" Width="11" Height="12" SnapsToDevicePixels="True" Data="F1M3.9987,3.9963L15,3.9963 15,4.99479 3.9987,4.99478 3.9987,3.9963z M4.9987,4.99739L14,4.99739 14,5.99609 4.9987,5.99609 4.9987,4.99739z M5.99902,5.99869L13,5.9987 13,7 11.9984,7 11.9984,8.00391 10.999,8.00391 10.999,16.0002 7.99853,16.0002 7.99853,8.00391 6.99772,8.00391 6.99772,7 5.99902,7 5.99902,5.99869z"/> 
                    <Path Fill="#FF006699" Stretch="Fill" HorizontalAlignment="Center" Margin="0,1,0,0" VerticalAlignment="Top" Width="5" Height="3" SnapsToDevicePixels="True" Canvas.Left="3" Canvas.Top="1" Data="M7,5L12,5 12,6 7,6 7,5z M8,6L11,6 11,7 8,7 8,6z M9,7L9.99999,7 9.99999,8 9,8 9,7z"
                        <Path.Visibility> 
                            <TemplateBinding Property="HasFilterValues"
                                <!--NOTE: Visual Studio's XAML renderer currently doesn't parse TemplateBinding.Converter as an attached property, and fails the show the XAML.  It will compile and run correctly. --> 
                                <TemplateBinding.Converter> 
                                    <BooleanToVisibilityConverter/> 
                                </TemplateBinding.Converter> 
                            </TemplateBinding> 
                        </Path.Visibility> 
                    </Path> 
                </Grid> 
            </Border> 
        </telerik:GridViewFilteringDropDown> 
        <telerik:GridViewFilteringPopup HorizontalAlignment="Left" Margin="0,0,0,0" x:Name="PART_Popup" VerticalAlignment="Top" AllowsTransparency="True" IsOpen="{Binding Path=IsChecked, ElementName=PART_Dropdown, Mode=TwoWay}" Placement="Bottom" StaysOpen="False"
            <Border HorizontalAlignment="Left" VerticalAlignment="Top" BorderBrush="#89006699" BorderThickness="1,0,1,1" CornerRadius="0,0,5,5"
                <Border.Background> 
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"
                        <GradientStop Color="#E5D1EFF9" Offset="0.004"/> 
                        <GradientStop Color="#E5ADE0F3" Offset="1"/> 
                    </LinearGradientBrush> 
                </Border.Background> 
                <Border BorderBrush="#CC009DD9" BorderThickness="1,0,1,1" CornerRadius="0,0,5,5"
                    <StackPanel> 
                        <telerik:ClearFilterButton Margin="0,0,0,5" Content="Clear Filter" Foreground="#FF000000" FilterDescription="{Binding Path=FilterDescription, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type telerik:DistinctFilterControl}}}" Target="{Binding ElementName=listDistinctValues, Mode=OneTime}"
                            <telerik:ClearFilterButton.Style> 
                                <Style TargetType="{x:Type Button}"
                                    <Setter Property="FocusVisualStyle"
                                        <Setter.Value> 
                                            <Style> 
                                                <Setter Property="Control.Template"
                                                    <Setter.Value> 
                                                        <ControlTemplate> 
                                                            <Rectangle Stroke="#FF000000" StrokeDashArray="1 2" StrokeThickness="1" Margin="2,2,2,2" SnapsToDevicePixels="True"/> 
                                                        </ControlTemplate> 
                                                    </Setter.Value> 
                                                </Setter> 
                                            </Style> 
                                        </Setter.Value> 
                                    </Setter> 
                                    <Setter Property="Background"
                                        <Setter.Value> 
                                            <LinearGradientBrush EndPoint="0,1" StartPoint="0,0"
                                                <GradientStop Color="#FFF3F3F3" Offset="0"/> 
                                                <GradientStop Color="#FFEBEBEB" Offset="0.5"/> 
                                                <GradientStop Color="#FFDDDDDD" Offset="0.5"/> 
                                                <GradientStop Color="#FFCDCDCD" Offset="1"/> 
                                            </LinearGradientBrush> 
                                        </Setter.Value> 
                                    </Setter> 
                                    <Setter Property="BorderBrush" Value="#FF707070"/> 
                                    <Setter Property="BorderThickness" Value="1,1,1,1"/> 
                                    <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/> 
                                    <Setter Property="HorizontalContentAlignment" Value="Center"/> 
                                    <Setter Property="VerticalContentAlignment" Value="Center"/> 
                                    <Setter Property="Padding" Value="1,1,1,1"/> 
                                    <Setter Property="Template"
                                        <Setter.Value> 
                                            <ControlTemplate TargetType="{x:Type Button}"
                                                <Border x:Name="border1" Background="#FFB3C1DE" BorderBrush="#E59AACD3" BorderThickness="0,1,0,1"
                                                    <Border Margin="0,0,0,0" x:Name="border" IsEnabled="True" BorderBrush="#FFFFFFFF" BorderThickness="0,1,0,1"
                                                        <Border.Background> 
                                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"
                                                                <GradientStop Color="#7FFFFFFF" Offset="0"/> 
                                                                <GradientStop Color="#33FFFFFF" Offset="1"/> 
                                                                <GradientStop Color="#00FFFFFF" Offset="0.531"/> 
                                                                <GradientStop Color="#33FFFFFF" Offset="0.513"/> 
                                                            </LinearGradientBrush> 
                                                        </Border.Background> 
                                                        <ContentPresenter HorizontalAlignment="Center" Margin="0,2,0,2" x:Name="contentPresenter" VerticalAlignment="Center" Width="Auto" Height="Auto" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" RecognizesAccessKey="True"/> 
                                                    </Border> 
                                                </Border> 
                                                <ControlTemplate.Triggers> 
                                                    <Trigger Property="IsPressed" Value="True"
                                                        <Setter Property="Background" TargetName="border"
                                                            <Setter.Value> 
                                                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"
                                                                    <GradientStop Color="#7FFFFFFF" Offset="0"/> 
                                                                    <GradientStop Color="#33FFFFFF" Offset="1"/> 
                                                                    <GradientStop Color="#4CFFFFFF" Offset="0.5"/> 
                                                                    <GradientStop Color="#00FFFFFF" Offset="0.504"/> 
                                                                </LinearGradientBrush> 
                                                            </Setter.Value> 
                                                        </Setter> 
                                                        <Setter Property="Background" TargetName="border1" Value="#FF8A9EC6"/> 
                                                    </Trigger> 
                                                    <Trigger Property="IsEnabled" Value="False"
                                                        <Setter Property="Foreground" Value="#FFADADAD"/> 
                                                        <Setter Property="Opacity" TargetName="contentPresenter" Value="0.2"/> 
                                                        <Setter Property="Background" TargetName="border"
                                                            <Setter.Value> 
                                                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"
                                                                    <GradientStop Color="#7FFFFFFF" Offset="0"/> 
                                                                    <GradientStop Color="#33FFFFFF" Offset="1"/> 
                                                                    <GradientStop Color="#00FFFFFF" Offset="0.549"/> 
                                                                    <GradientStop Color="#33FFFFFF" Offset="0.527"/> 
                                                                </LinearGradientBrush> 
                                                            </Setter.Value> 
                                                        </Setter> 
                                                    </Trigger> 
                                                </ControlTemplate.Triggers> 
                                            </ControlTemplate> 
                                        </Setter.Value> 
                                    </Setter> 
                                </Style> 
                            </telerik:ClearFilterButton.Style> 
                        </telerik:ClearFilterButton> 
                        <telerik:CheckBoxList HorizontalAlignment="Stretch" MaxHeight="500" x:Name="listDistinctValues" Foreground="#FF000000" FilterDescription="{Binding Path=FilterDescription, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type telerik:DistinctFilterControl}}}"/> 
                    </StackPanel> 
                </Border> 
            </Border> 
        </telerik:GridViewFilteringPopup> 
    </StackPanel> 
     
</ControlTemplate> 
 

Atanas
Telerik team
 answered on 22 Oct 2008
1 answer
73 views
I have an issue where when I try to declare a Grouping for my grid using XAML, the designer in VS2008 breaks.

When trying to group on Subject.Name of the DataBound object I get the following error in the designer.

"Subject.Name is neither a DataColumn nor a DataRelation for table Customers." This is more interesting because I'm not referencing anything anywhere called "Customers".

Regards

Justin Taylor
Atanas
Telerik team
 answered on 21 Oct 2008
1 answer
128 views
Hi,

Thanks for giving answers.

 1).  By your code iam able to change the headerstyles perfectly to Parent but,
        I need to change at a single time for child also.I  may use single or double 
       RadGridView.

2). How to change the Scrollbar color.

3). Which you have given steps to Ticket , There are few options are iam unable
      to find.
4) I want to hide GroupPanel for child and Display for Parent.

Plz help me........As soon as.

Atanas
Telerik team
 answered on 21 Oct 2008
4 answers
376 views
Hi team ,

Please as soon as possible send me by tomorrow morning.


i need on Single click cell should be in edit  mode.currently when we double click we are getting cell in edit mode


Thank you.
Atanas
Telerik team
 answered on 20 Oct 2008
1 answer
174 views
Hi All,

Iam using RAD Grid for WPF,

Current i am having a problem with handling validation from BO

How can we use "ValueToDisplayTextConverter"...

How can i call BO Validatio for RAD Grid ?

Can any one help me in this ?

With Regards
Krishna M
Atanas
Telerik team
 answered on 20 Oct 2008
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
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)
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
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?