Telerik Forums
UI for WPF Forum
1 answer
112 views
I have two grid's where I can dragdrop from "grid 1" to "grid2", I can drop and insert anywere in the grid (all works fine) but I can only drop in the rows I see.

I need the grid to scroll down if I try to drop at the bottom of the rows, and scroll up if I drop at the top row.

How do I code that in C# (I'm using "RadDragAndDropManager")

Kennet
Top achievements
Rank 2
 answered on 10 Nov 2009
1 answer
109 views
hello,

i am using your grid and i need to set the style of the cells dynamically based on the dataitem i have.
How should i do it?

I thought about inherit from GridViewDataColumn, but didn't know how to do it correctly (i.e. apply the data binding etc)


Thanks,
ofer
Vlad
Telerik team
 answered on 10 Nov 2009
4 answers
213 views
Hi,

It seems I can never get ScrollIntoView work. I got an error when I do:

if (grid.SelectedItem !=null)
    grid.ScrollIntoView(grid.SelectedItem);

Did I miss anything?

Thanks,
Milan
Telerik team
 answered on 10 Nov 2009
1 answer
201 views
i heard that you can do it with ChildTableDefinition

can someone show me how to do it?

i currently have 2 levels (parent->child)
i want to have 3 levels (parent->child->child of child)

how can i do it?

this is the xaml:

<Window x:Class="SimaClient.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" 
    Title="Sima Client" Height="300" Width="400" WindowStyle="ToolWindow">  
    <Grid> 
        <telerik:RadGridView Name="RadGridView1" ShowGroupPanel="False" IsReadOnly="True" AutoGenerateColumns="False" ColumnsWidthMode="Fill">  
 
            <telerik:RadGridView.ChildTableDefinitions> 
                <telerik:GridViewTableDefinition /> 
            </telerik:RadGridView.ChildTableDefinitions> 
 
            <telerik:RadGridView.Columns> 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ID}" Header="ID" Width="100" /> 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name"  Width="200"/>  
            </telerik:RadGridView.Columns> 
 
            <telerik:RadGridView.HierarchyChildTemplate> 
                <DataTemplate> 
                    <telerik:RadGridView x:Name="RadGridView1" AutoGenerateColumns="False" ItemsSource="{Binding Routes}" ShowGroupPanel="False" IsReadOnly="True">  
                        <telerik:RadGridView.Columns> 
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding ID}" Header="Route ID" /> 
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Route Name" /> 
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding WayPointsNum , Mode=OneWay }" Header="Number of WP" /> 
                        </telerik:RadGridView.Columns> 
                    </telerik:RadGridView> 
                </DataTemplate> 
            </telerik:RadGridView.HierarchyChildTemplate> 
 
        </telerik:RadGridView> 
    </Grid> 
</Window> 
 
Vlad
Telerik team
 answered on 10 Nov 2009
1 answer
123 views

i tried using the GridViewColumn.CellTemplate but i can't change it at runtime,

what i want to do is on the RowLoaded event change the cell visual tree(ComboBox, CheckBox)
based on the type of the object in the Cell.Content

i want to be able to change it for each individual cell
not a whole row/Column


i know that somewhere inside the cell there is a:

{System.Windows.Controls.Border}
and inside of it there is

{Telerik.Windows.Controls.GridView.AlignmentContentPresenter}
and inside of it there is the CellTemplate
but i can't access it from c#

 

i also tried to put in the resources of the GridView, couple of DataTemplates for different types (int,brush,enum)
but it ignors the resources

Vlad
Telerik team
 answered on 10 Nov 2009
2 answers
128 views
I setup a simple TileView test application (WPF 2009 Q3 Release).  The tile item does not follow the mouse drag point, especially if mouse acceleration is enabled and the mouse is moved faster.  It happens with multiple rows/columsn but seems most pronounced with a single column such as the code below:    (screenshot attached)  (grabbed first tile item header, moved mouse to bottom, then to top, ended up with blank area at top, mouse pointer at top, tile item 1/2 way up the list.)

Any ideas for fixing this?

 

<Window x:Class="TileViewTest2.Window2" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="Window2" Height="800" Width="200 " xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">  
    <Grid> 
            <telerik:RadTileView MaxColumns="1" Height="auto" Name="radTileView1" Width="auto" MaximizeMode="Zero">  
                <telerik:RadTileViewItem Height="auto" Name="radTileViewItem1" Width="auto"/>  
                <telerik:RadTileViewItem Height="auto" Name="radTileViewItem2" Width="auto"/>  
                <telerik:RadTileViewItem Height="auto" Name="radTileViewItem3" Width="auto"/>  
                <telerik:RadTileViewItem Height="auto" Name="radTileViewItem4" Width="auto"/>  
                <telerik:RadTileViewItem Height="auto" Name="radTileViewItem5" Width="auto"/>  
            </telerik:RadTileView> 
    </Grid> 
</Window> 
Tihomir Petkov
Telerik team
 answered on 09 Nov 2009
3 answers
164 views
Hello,

In testing your q3 beta of RadControls for WPF, I believe I have run into a bug with the new TileView control when using it in a WinForm. The TileView control displays properly, however the ability to drag and drop the individual tiles does not work.  This functionality is present when the WPF UserControl containing the TileView is hosted in a WPF Application, however I cannot get it to work when hosting in a WinForm.

Is there something special that I need to do to get the Tileview to function properly in a Windows Form?

Thanks,

Ben
Tihomir Petkov
Telerik team
 answered on 09 Nov 2009
2 answers
186 views
It would be nice to have a comparison between a telerik control and the Microsoft native equivalent if it exists.

It's easier to point management to a web page that illustrates why the telerik control is a better alternative to the built-in control. It would help sell a lot more copies :-)

Thanks,
Ash
Ash
Top achievements
Rank 1
 answered on 09 Nov 2009
1 answer
149 views
I've searched through the forum and documentation but can't seem to find an answer to these styling issues.

1. How to style the header cell background when a column is sorted or the header cell is hovered.

2. How to style the foreground of a selected row

3. How to style the 'column freeze' bar

4. How to style the Horizontal and Vertical Scroll Bars

5. How to style the column filter indicator.

Any tips on these would be very appreciated.

Kalin Milanov
Telerik team
 answered on 09 Nov 2009
7 answers
247 views
Hey all!

Now, clearly this is my problem and not one with the grid however I am just not seeing how I am going wrong. Given the following XAML...

        <telerik:RadGridView Name="radGridView1" AutoGenerateColumns="False" UseAlternateRowStyle="True">  
            <telerik:RadGridView.Columns> 
                <telerik:GridViewComboBoxColumn UniqueName="Active" DataMemberBinding="{Binding IsActive}" SelectedValueMemberPath="Value" DisplayMemberPath="Title" /> 
                <telerik:GridViewDataColumn UniqueName="User" DataMemberBinding="{Binding Name}" /> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 

And the following code to fill it...

        public Window1()  
        {  
            InitializeComponent();  
 
            var activeflaglist = new List<ActiveFlag>();  
            activeflaglist.Add( new ActiveFlag{ Title = "Yes", Value = "Y" } );  
            activeflaglist.Add( new ActiveFlag{ Title = "No", Value = "N" } );  
 
            var userlist = new List<User>();  
            userlist.Add( new User{ IsActive = "Y", Name = "Bob StartsActive" } );  
            userlist.Add( new User{ IsActive = "N", Name = "Fred StartsInActive" } );  
            userlist.Add( new User{ IsActive = "Y", Name = "John StartsActive" } );  
            userlist.Add( new User{ IsActive = "Y", Name = "Alice StartsActive" } );  
            userlist.Add( new User{ IsActive = "N", Name = "Janet StartsInActive" } );  
 
            var activeColumn = (GridViewComboBoxColumn)radGridView1.Columns["Active"];  
 
            activeColumn.ItemsSource = activeflaglist;  
 
            radGridView1.ItemsSource = userlist;  
        } 

If you build the project (the link is below) and then try to use the combo box a crash is instant. What a I missing?

http://drop.io/hidden/wddviyal73bufj/asset/Y29tYm9ib3hlcnJvci16aXA%253D

Ken
Pavel Pavlov
Telerik team
 answered on 09 Nov 2009
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?