Telerik Forums
UI for WPF Forum
3 answers
144 views
Blend 2.5
RadControls 2008 Q3

Edit Control Parts (Template) > Edit a Copy > This Document >

Exception: Type Reference cannot find public type named 'RadGridView'

Any clue?
McLanahan Stevens
Top achievements
Rank 1
 answered on 09 Jul 2009
2 answers
107 views
Using the new facilities in the Q2 charts, e.g. strict mode, and the automatic label stepping - many thanks for doing these - I am now much happier with the radchart for the purpose I want to put it to - real time plotting of weather data. I've bound a line chart to a collection containing a DateTime and a temperature, and the resulting chart is working well, apart from the fact that it doesn't fill the whole X axis. Sometimes the gap at each end is quite large relative to the size of the plot, e.g:

http://nybbles.co.uk/images/chart1.jpg

The first point was actually plotted at about 21:20:30.

Is it possible to make the line fill the chart?

Steve



SteveL
Top achievements
Rank 2
 answered on 09 Jul 2009
3 answers
214 views
Hi

I've been following this example for binding to object data.

However I can't specify the <DataTemplate>.

Instead I get the message "Property 'VisualTree' does not support values of type 'DataTemplate'".

What am I doing wrong?
<UserControl x:Class="ReportDistribution.Client.ReportMgr.WpfApp.UserControls.ReportMenuPanel" 
    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.Navigation" 
    Height="300" Width="270"
    <UserControl.Resources>         
        <ItemsControl> 
            <ItemsControl.ItemTemplate> 
                <HierarchicalDataTemplate x:Key="Entity" ItemsSource="{Binding ClientReport}">                    
                    <DataTemplate> 
                        <TextBlock Text="{Binding Name}"></TextBlock> 
                    </DataTemplate> 
                </HierarchicalDataTemplate> 
            </ItemsControl.ItemTemplate> 
        </ItemsControl>    
    </UserControl.Resources> 
    <Grid>         
        <Grid.RowDefinitions> 
            <RowDefinition Height="35"></RowDefinition> 
            <RowDefinition></RowDefinition
        </Grid.RowDefinitions> 
        <Grid.ColumnDefinitions> 
            <ColumnDefinition></ColumnDefinition
        </Grid.ColumnDefinitions> 
        <Border Grid.Row="0" BorderBrush="Black" BorderThickness="1"
            <Border.Background> 
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"
                    <GradientStop Color="#ADCFFF" /> 
                    <GradientStop Color="#599BFF" Offset="1"></GradientStop> 
                </LinearGradientBrush> 
            </Border.Background> 
        </Border> 
        <TextBlock Grid.Row="0" VerticalAlignment="Center" FontSize="14" FontWeight="Bold" Margin="5">Reports</TextBlock> 
        <Border Grid.Row="1" BorderBrush="Black" BorderThickness="1,0,1,1"
            <Border.Background> 
                <SolidColorBrush Color="White" /> 
            </Border.Background> 
        </Border> 
        <telerik:RadPanelBar x:Name="reportMenuPanelBar" Grid.Row="1" Margin="1,0,1,1" ItemTemplate="{StaticResource Entity}" ItemsSource="{Binding}"
             
        </telerik:RadPanelBar> 
                 
    </Grid> 
</UserControl> 



Tihomir Petkov
Telerik team
 answered on 09 Jul 2009
2 answers
258 views
Hello

My WPF RadGridView is bound to a list of business objects using its ItemsSource property. So far we were using the grid's Records property to get all objects that are being displayed after filtering and in the current sort order. In the latest version of the WPF control suite (Q2 2009) mostly everything related to RadGridView.Records (Record and DataRecord class) is marked as obsolete. So how to get the list of displayed items now?

I've already tried CollectionViewSource.GetDefaultView(myGrid.ItemsSource) but this gets the whole list not only the list after filtering.

Thanks for any help

Christian
Christian
Top achievements
Rank 1
 answered on 09 Jul 2009
10 answers
167 views
Hi,

Is the Filtered event not raised on purpose when the Clear Filter button is clicked?

Thanks.
Vlad
Telerik team
 answered on 09 Jul 2009
1 answer
165 views
I have a "hidden" column (made visible for debugging) called "Index" that I am sorting by...  When I first load the grid, the grid is loaded in the correct way - but probably because my list of objects is already sorted.  I implemented some custom commands attached to buttons inside the GridViewRow Template for moving objects UP or DOWN in the grid.  When the Move Up or Move Down buttons are pressed, the items are removed from the list, inserted at the right location and the list's Index properties are corrected for the new order...

BUT The first time I press Move Up or Move Down, the index changes (I see the indexes in the data records change), but the grid doesn't refresh the items.   The NEXT time I press either button, the grid resorts but not in a nice way...  Items are always in the wrong order.

For example:

Start with these objects in the grid
1 - AAA
2 - BBB
3 - CCC

Move Down for object AAA: Remove object AAA, insert at new spot in list, reindex.  Grid shows:
2- AAA
1 - BBB
3 - CCC

Move Down for object AAA: Remove object AAA, insert at new spot in list, reindex.  Grid shows:
2 - CCC
1 - AAA
3 - BBB

I may have to put a small sample together but I'm hoping not. Here is how I  have my grid defined:

            <telerik:RadGridView x:Name="SettingsGrid" ItemsSource="{Binding ElementName=UC, Path=CurrentTeamProjectList}" ScrollMode="RealTime"  
                                     AutoGenerateColumns="False" ShowGroupPanel="False" IsFilteringAllowed="False" ColumnsWidthMode="Fill" ShowColumnHeaders="False" 
                                     CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserSortColumns="False" VerticalGridlinesVisibility="Hidden" 
                                     Margin="4,2,4,2" Loaded="SettingsGrid_Loaded"
 
                <telerik:RadGridView.Columns> 
                    <telerik:GridViewDataColumn UniqueName="Index" IsReadOnly="True" DataType="{x:Type System:Int32}"/> 
                    <telerik:GridViewDataColumn UniqueName="Name" IsReadOnly="True" DataType="{x:Type System:String}"/> 
                    <telerik:GridViewDataColumn UniqueName="Boolean1" DataType="{x:Type System:Boolean}"/> 
                    <telerik:GridViewDataColumn UniqueName="Boolean2" DataType="{x:Type System:Boolean}"/> 
                    <telerik:GridViewDataColumn UniqueName="NumSeconds" DataType="{x:Type System:Int32}"/> 
                </telerik:RadGridView.Columns> 
                <telerik:RadGridView.SortDescriptions> 
                    <cm:SortDescription PropertyName="Index" Direction="Ascending" /> 
                </telerik:RadGridView.SortDescriptions> 
            </telerik:RadGridView> 
 

I tried adding a SortDescription object to the SortDescriptions collection in the grid loaded event, but that did the same thing.

Thoughts?
Greg
GPJ
Top achievements
Rank 1
 answered on 08 Jul 2009
2 answers
110 views
Hi,

I have implemented a custom GridViewRow Template but the vertical scrolling of the grid is gone...  I'm not sure if I turned it off though since there doesn't seem to be any property like "VerticalScrollBarVisibility" to set?
       
Here is a sample of how I am defining my grid:

            <telerik:RadGridView x:Name="SettingsGrid" ItemsSource="{Binding ElementName=UC, Path=CurrentSettingList}" ScrollMode="RealTime"  
                                     AutoGenerateColumns="False" ShowGroupPanel="False" IsFilteringAllowed="False" ColumnsWidthMode="Fill" ShowColumnHeaders="False" 
                                     CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserSortColumns="False" VerticalGridlinesVisibility="Hidden" 
                                     Margin="4,2,4,2" Loaded="SettingsGrid_Loaded"
 

Greg
GPJ
Top achievements
Rank 1
 answered on 08 Jul 2009
4 answers
362 views
Hi,
I want to be able to display a different context menu depending on which column cell the user right-clicks on as described on this article for the RadGridView for WinForms:
http://www.telerik.com/support/kb/winforms/gridview/radgridview-custom-context-menu-dependent-on-element-clicked.aspx


I need to be able to do the same in WPF. Is it possible?
Thanks,
Laura
Pavel Pavlov
Telerik team
 answered on 08 Jul 2009
3 answers
92 views
Hello,
I tried to recreating the 'First Look' sample with different objects. The code below is taken from the sample. I have only changed one line there.

public Example() 
        { 
            InitializeComponent(); 
            this.sampleRadCarousel.ItemsSource = DAL.GetCustomers(); 
            this.sampleRadCarousel.Loaded += new RoutedEventHandler(sampleRadCarousel_Loaded); 
        } 
 
        void sampleRadCarousel_Loaded(object sender, RoutedEventArgs e) 
        { 
            Path path = CreateLinePath(); 
            Telerik.Windows.Controls.RadCarouselPanel panel = this.sampleRadCarousel.FindCarouselPanel(); 
            panel.ItemsPerPage = 7; 
            panel.Path = path; 
        } 

The issue I am having is that the carousel does not display items until I move the mouse wheel or move the items in a different way.

The moduleCarousel.FindCarouselPanel().BringDataItemIntoView(customer); does not help. Is there a way to refresh or something ?
Milan
Telerik team
 answered on 08 Jul 2009
1 answer
108 views
I have a line chart bound to a collection, the X-Axis has DateTime values. The collection gets a new item added every few seconds, and the chart correctly updates. But if I have a tooltip displaying when the chart updates, that tooltip becomes fixed to the screen, permanently visible, even if I move the application window away, until I close the application.

I'm using the 2009 Q2 controls.

Steve
Giuseppe
Telerik team
 answered on 08 Jul 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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?