Telerik Forums
UI for WPF Forum
1 answer
141 views
Hi,

  I have bound the GridView to a collection of objects implementing IDataErrorInfo for validation (as I want my validation on a view model, not in event handlers in the view). 

All appears to work well until I scroll horizontally or vertically.  Once I have seen an invalid cell on screen, scrolling to the side or up/down will then make it seem like other cells also have the same validation error. I assume this is down to the container recycling.  I have attempted to turn container recycling off using VirtualizingStackPanel.VirtualizationMode="Standard" but this had no effect.  There is way too much data to even consider turning row/column virtualization off.  Incidentally, I had this same grid working using the DataGrid from WPF Toolkit. Although the toolkit grid did have poorer performance it did not suffer this container recycling issue.

Is this a known issue - are there any workarounds? I'm really keen to start using the RadGridView but if I cannot get validation working as expected then I will have to stick to the toolkit.

Regards,

Andy
Nedyalko Nikolov
Telerik team
 answered on 09 Aug 2010
1 answer
193 views
Hi,

My RadGridView is binding to a DataTable, and one column is boolean checkbox. I have to click the chechbox for several times to enable to edit it, how do I solve this problem?

<Window x:Class="Window1"
    Title="Window1" Height="300" Width="300" xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView">
    <Grid>
        <my:RadGridView Name="RadGridView1" />
    </Grid>
</Window>
Class Window1 
  
    Public Sub New()
  
        InitializeComponent()
  
  
        Dim dt As New System.Data.DataTable
        dt.Columns.Add("hide", GetType(Boolean))
        dt.Columns.Add("highlight", GetType(String))
        dt.Columns(0).DefaultValue = True
        dt.Columns(0).ReadOnly = False
  
        dt.Columns(1).DefaultValue = "test"
        dt.Columns(1).ReadOnly = True
  
        Dim row1 As System.Data.DataRow = dt.NewRow
        row1("hide") = True
        row1("highlight") = "A"
        dt.Rows.Add(row1)
  
        Dim row2 As System.Data.DataRow = dt.NewRow
        row2("hide") = True
        row2("highlight") = "B"
        dt.Rows.Add(row2)
        RadGridView1.ItemsSource = dt
    End Sub
End Class
Vlad
Telerik team
 answered on 09 Aug 2010
1 answer
168 views
Is there a way to load up images from external folder and put inside the book?
Miroslav
Telerik team
 answered on 06 Aug 2010
7 answers
633 views
Try as I might, I can find no way to listen for a Click event within a GridViewHyperlink column cell. What am I missing? I am creating the columns of the grid dynamically based on metadata retrieved from a database, e.g.,

column = new GridViewHyperlinkColumn();
(column as GridViewHyperlinkColumn).ContentBinding = new Binding(columnInfo.FieldName);
column.DataMemberBinding = new Binding(columnInfo.FieldName);
column.IsFilterable = columnInfo.CanFilter;
column.Header = columnInfo.DisplayName;
column.IsEnabled = columnInfo.IsEnabled;
column.IsReadOnly = true;

What I would like to be able to do is write something like
(column as GridViewHyperlinkColumn).Clicked += MyClickHandler;
However, the Clicked event is not defined for the column type.

How can I receive the click event?

Thanks,
Chris.
Sathish
Top achievements
Rank 1
 answered on 06 Aug 2010
2 answers
155 views
I have an image column that displays an 18x18 image and the column header text is making the column too wide. It just doesnt look right. But I can wrap the text in the header, it will cut the width of the column in half. Is there a way to do this?

Thanks in advance...
Vanya Pavlova
Telerik team
 answered on 06 Aug 2010
1 answer
151 views
Hi,

I hate writing a title for a thread because sometimes it's impossible to explain my question in short :)

Anyway I've found the below style from this article in KB. What I want to do is being able to reuse this style in more than one chart or more than one series by just changing the color. But although I've tried to make "TemplateBinding" to Background property of Bar class or to some other control part but I wasn't able to do it. I couldn't find the place (if I can) to specify the Background property.

<Window.Resources>  
        <Style x:Key="MyStyle" TargetType="{x:Type telerik:Bar}">  
            <Setter Property="Template" >  
                <Setter.Value>  
                    <ControlTemplate TargetType="{x:Type telerik:Bar}">  
                        <Rectangle  
                                   x:Name="PART_DefiningGeometry"  
                                   Fill="Red"
                                   Stroke="Pink"   
                                   StrokeThickness="3"   
                                   Height="{TemplateBinding ActualHeight}"  
                                   Width="{TemplateBinding ActualWidth}"/>  
                    </ControlTemplate>  
                </Setter.Value>  
            </Setter>  
        </Style>  
    </Window.Resources>

As a summary what I want to do is to bind Fill property to some other property on a control and reuse this style. It should be easy! But not for me?

Does anyone have an idea?

Thanks
Sia
Telerik team
 answered on 06 Aug 2010
3 answers
251 views
Hi,

I'm trying to create a custom datetime picker from inheriting from RadDateTimePicker control.

Can you please tell the assembly name(dll name), where i can inhert the RadDateTimePicker class.

Thanks,
-Narendra
Dani
Telerik team
 answered on 06 Aug 2010
3 answers
210 views
Hi,

First, sorry for my bad english, i'm a french student in internship.

Well, in my application, i'm using MVVM pattern, and I've created an UserControl, with a telerik chart (using LineSerie).

I would like to change the line color when a property change.

Here is an example of what I want to do:

<Grid DataContext="{Binding PublicationCollecteurVM}" Width="auto" Height="auto">
           <Grid.Resources>
              <Style TargetType="telerik:Chart">
                 <Style.Triggers>
                       <!-- Well, You can imagine that I'm trying to change Line color-->
                       <DataTrigger Binding="{Binding Path=GestionNiveau,NotifyOnSourceUpdated=True}" Value="2">
                           <Setter Property="Chart.LineColor" Value="#FCB143"/>
                       </DataTrigger>
                       <DataTrigger Binding="{Binding Path=GestionNiveau,NotifyOnSourceUpdated=True}" Value="1">
                           <Setter Property="Chart.LineColor" Value="#FFFF48"/>
                       </DataTrigger>
                       <DataTrigger Binding="{Binding Path=GestionNiveau,NotifyOnSourceUpdated=True}" Value="3">
                           <Setter Property="Chart.LineColor" Value="#FE761B"/>
                       </DataTrigger>
                 </Style.Triggers>
              </Style>
           </Grid.Resources>
           <telerik:RadChart x:Name="RadChart1"  telerik:StyleManager.Theme="Office_Black"  Grid.Row="1" Height="193" Width="372" Grid.Column="1" ItemsSource="{Binding NbHitLus}">         
               <telerik:RadChart.DefaultView>
                   <telerik:ChartDefaultView>
                       <telerik:ChartDefaultView.ChartArea>
                           <telerik:ChartArea LegendName="CustomLegend">
                               <telerik:ChartArea.AxisX>
                                   <telerik:AxisX MajorGridLinesVisibility="Collapsed"
                                                  Title="Minute" />
                               </telerik:ChartArea.AxisX>
                               <telerik:ChartArea.AxisY>
                                   <telerik:AxisY MajorGridLinesVisibility="Collapsed"
                                                  MinorTicksVisibility="Visible"
                                                  Title="NbHitsLus" AutoScale="True" />
                               </telerik:ChartArea.AxisY>
                           </telerik:ChartArea>
                       </telerik:ChartDefaultView.ChartArea>
                       <telerik:ChartDefaultView.ChartLegend>
                           <telerik:ChartLegend Visibility="Collapsed" x:Name="CustomLegend" UseAutoGeneratedItems="True" Width="0">
                               <telerik:ChartLegend.Header>Custom legend header</telerik:ChartLegend.Header>
                           </telerik:ChartLegend>
                       </telerik:ChartDefaultView.ChartLegend>
                       <telerik:ChartDefaultView.ChartTitle>
                           <telerik:ChartTitle HorizontalAlignment="Center" >
                               <TextBlock TextAlignment="Center">
                                   <TextBlock Text="{Binding infoProg}"/>
                                   <LineBreak/>
                                   <TextBlock Margin="-8,0,0,0">Numéro collecteur :</TextBlock>
                                   <TextBlock Text="{Binding IdCollect}"></TextBlock>
                                   <TextBlock Padding="10,0,0,0">Numéro log :</TextBlock>
                                   <TextBlock Text="{Binding IdLog}"></TextBlock>
                               </TextBlock>
                           </telerik:ChartTitle>
                       </telerik:ChartDefaultView.ChartTitle>
                   </telerik:ChartDefaultView>
               </telerik:RadChart.DefaultView>
               <telerik:RadChart.DefaultSeriesDefinition>
                   <telerik:LineSeriesDefinition/>
               </telerik:RadChart.DefaultSeriesDefinition>
           </telerik:RadChart>
       </Grid>

So first could you tell me how to change Line color ?

Thank's
Yves
Top achievements
Rank 1
 answered on 06 Aug 2010
9 answers
295 views
I'm having some really bad performance when adding rows to the grid. I've got the grid items bound to an ObservableCollection. I'm then adding 7000 rows one-by-one to this collection. It basically freezes up for a couple of minutes.

I've done some profiling to try and find out what's holding things up and it seems to be spending about a 1/3 of the time in QueryableCollectionView:ProcessSynchronousCollectionChangedWithAdjustedArgs. Is there a way to set up the grid to avoid this call?

The main problem in that method is that it calls PropertyChangeInfo:GetChangedPropertyNames which compiles a linq expression foreach each propertyAccess. Any suggestions for improving the performance there?

Thanks!
TSRG - IT
Top achievements
Rank 1
 answered on 06 Aug 2010
8 answers
151 views
Hi,

I'm new to Telerik Controls. I'm trying to use the carousel controls in Expression Blend 4; having the few questions below

- Unlike the RadCaruosel for WinForm, I couldn't specify the eliptical path for the carousel items in Expression Blend (and VS2010), on WPF. Is that a limitation on this control for WPF currently? If not, how can I set the eliptical path (at design time)
- I've 8 items on the Carousel control (I tried it on Carousel and CarouselPanel), but only 5 are visible at a time. Other three would scroll in when I click the item near to them. Is there a way I can show all the 8 controls on my real estate?

Lastely, How can I compare and identify whether the user clicked on the top most item on the Carousel Panel? For example, out of my 8 items, if the user clicks on the item 6 it would be made as the top item. When the user clicks on it again, I want to identify it and perform some action.

Thanks in advance.
Ela
Vlad
Telerik team
 answered on 06 Aug 2010
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
FileDialogs
Book
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?