Telerik Forums
UI for WPF Forum
3 answers
173 views
In one of our RadGridViews, we have a date-field. The GridView recognises the date-type and - hen in edit-mode - shows a nice RadDateTimePicker. This works fine! Even the culture has been set.

<telerik:GridViewDataColumn
DataMemberBinding="{Binding ADato}" Header="A dato." Width="80" UniqueName="ADato" DataFormatString="{}{0:d}" >    
 </telerik:GridViewDataColumn>

But...
- How can we use the ctrl + arrowdown to open the calendar (wihout using the mouse)? 
- How can we select the whole text/date when entering the DateTimePicker or when he's got focus?
- Isn't it a bit strange that the RadDateTimePicker accepts letters/text/words...?
George
Telerik team
 answered on 09 Aug 2010
1 answer
130 views
Hi,
For data loading efficiency, I want to load the amount of object that would be visible in the grid (without scrolling), and load the rest later in a different thread.

Is there a way I can get the amount of rows that would be visible in the grid before populating it with data?

Thanks,
David
Vlad
Telerik team
 answered on 09 Aug 2010
6 answers
696 views
Hi,

How can show Horizontal scrollbar only on radgridview using property or method?

Thanks,
-Narendra
Narendra
Top achievements
Rank 1
 answered on 09 Aug 2010
1 answer
280 views
Just wanted to say I love your guys controls and support.  I use them for about everything.  I have been using the Infragistics grid only because up until this release, they seemed to have strong Excel-like Copy/Paste functionality.  So I am using the Gridview with WPF.

My question is this. I would like there to always be a new row available to add at the top, like the Infragistics Gridview.  Another reason why this is so important is that in some cases, my users might select 10 rows in Excel, copy them, click on the New Row and click paste, and it will insert as many rows needed and then always have an available row again to Add New Row.

Is this possible with your Gridview?  I see how you can add a button that adds a new row, but I want it to always be there and then be able to paste multiple rows into the grid. I am trying to get it as much like Excel as possible.

Yavor Georgiev
Telerik team
 answered on 09 Aug 2010
1 answer
123 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
175 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
121 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
603 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
134 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
140 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?