Telerik Forums
UI for WPF Forum
1 answer
137 views
Is there a way to set the "scroll tip" for the GridView. By default it appears that the first column in the grid is used, but I'd like to change this. Is it possible?

Regards

Justin Taylor
Atanas
Telerik team
 answered on 27 Oct 2008
9 answers
1.0K+ views
Hi Telerik,

1). I want to set to size of the column width automatically( i.e., when the   column has lenghty data , then column should be lenghty otherwise column should be small).There is property ColumnWidthMode but it is giving extra space with column.

2).  How to change the Column HeaderCellStyle (i.e.,Bold,Italics,Regular ........)

3). When the parent Grid has child Grid, i want to reduce the gap between the 2 Grids. Now it is giving some gap , i want to reduce it.

4). I want to set GroupPanel for Parent and not to Child.
      when i set GroupPanel True  to Parent and for Child to False. it is not 
       coming.
5). Setting Column Length for parent is working properly but not working 
       to child.

6).  For dragging the column line (which  we have set , by coding in child.) it is working properly in parent but in child  it is not  working .

   send as early as possible.

Thanks in Advance.
Kumar

Atanas
Telerik team
 answered on 27 Oct 2008
13 answers
420 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
109 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
496 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
235 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
171 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
86 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
142 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
397 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
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?