Telerik Forums
UI for WPF Forum
7 answers
172 views
We have installed the new version of the GridView and some bug/issues occurs.

1. If setting the items source before columns created (throw code), the list wont display the cell content (rows are empty)...
    (We fix this issus will setting the itemssource after...)

2. the sort is not woking... (wont change the result) (this is not fixed for us..)

Version working : 2010.3.1110.35
Not working : 2010.3.1314.40

We have put back the old version and its working..

Any clues...

Yavor Georgiev
Telerik team
 answered on 17 Mar 2011
3 answers
69 views
I trying to bind a "weakly-typed" data list into RadGridView, I considered IList<>, ObservableCollection<> but I think they not suit my scenario because I need to define type of element in those collections.

I found RadDataPager later but I do not need paging feature.

I wonder whether WPF RadGridView can bind to something like "DataTable" like in WinForm, but I asking it for WPF in case there is any ready component in Telerik WPF.

Anyway this is my scenario, single RadGridView is use and ready to receive data collection which may consist of different data type.

Please advise, thanks
tzuhsun
Top achievements
Rank 1
 answered on 17 Mar 2011
11 answers
604 views
Hello all,

I am new to WPF and RadControls and I am trying to use the RadGridView right now (reauirements of a new customer).

I bound my RadGridView to a simple collection of object. Displaying properties of objects works like a charm.
Anyway, I wasn't able to find how to create a calculated column based on on or several properties of the objetcs in the bound collection!

I searched the forum, the documentation and found nothing (even for the classic MS DataGrid)!

Is there any known working solution to create calculated data columns?
(be aware that it will not be possible for me to add the calclated field directly in the objects of the collection)

Thank you,
Best regards,

Daniel
Yavor Georgiev
Telerik team
 answered on 16 Mar 2011
2 answers
152 views
Hi there,

If im using 100% the Width of the Grid  <telerik:GridViewDataColumn Header="FirstName" Width="*" /> and wrapping with the scroll bar. Why the column goes out of the frame horizontally. but if i takeout the scroll bar everything seems perfect. And I want the scroll bar to be there.

Example:
<ScrollViewer BorderBrush="Transparent" BorderThickness="0" HorizontalScrollBarVisibility="Auto" >
         <telerik:RadGridView Grid.Row="1" ScrollMode="Deferred"    ShowGroupPanel="False"  AutoGenerateColumns="False">
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn Header="First Name" Width="200" />
                        <telerik:GridViewDataColumn Header="Last Name" Width="*" />
                        <telerik:GridViewDataColumn Header="Title" Width="200" />
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>
            </Grid>
</ScrollViewer>
sam Aryan
Top achievements
Rank 1
 answered on 16 Mar 2011
3 answers
178 views
Hi there,

Currently the Rad Pie Chart (seems) to start at the 3 o'clock position, and draws each slice in a counter-clockwise direction.

Is it possible to change the direction to clockwise?

Is it possible to start at the 12 o'clock position?

Some background:  We are displaying data in our application, and representing it in a Telerik Rad PieChart, and then exporting the data to Microsoft Excel 2010 via OpenXml, and creating a pie chart in Excel.  Because Excel starts drawing its pie chart at the 12 o'clock position (which can be changed by adjusting the angle of the first slice), and draws the slices clockwise, it looks different than the Telerik Rad PieChart in our application, which isn't a very good user experience.  So, we're hoping we can change the direction that the Telerik Rad PieChart draws its pie slices, and where it starts drawing its first slice.

Thanks!
Sia
Telerik team
 answered on 16 Mar 2011
1 answer
87 views
How i can preview richtext? Thank
Boby
Telerik team
 answered on 16 Mar 2011
1 answer
91 views
I'm using a RadGridView with SelectionUnit=FullRow. When I press the up/down arrow keys, the selected row moves to the new row that I've navigated to. When I press PageUp or PageDown, the grid scrolls, but the selection isn't updated. I've tried using a CustomKeyboardCommandProvider, but it seems like the PageUp/PageDown keys are handled specially by the grid: even when I return an empty List of ICommands, the grid still scrolls up and down. 

Any ideas on how to handle this?
Yordanka
Telerik team
 answered on 16 Mar 2011
1 answer
1.2K+ views
Hi!


I would like to know how to enable a button when items.count > 0 and disable it when items.count == 0 but into XAML using binding. I did this:

<Button x:Name="btnAceptar" Content="Aceptar" Command="{Binding GrabarCommand}" IsEnabled="{Binding ElementName=grdGrid, Path=Items.Count, Converter={StaticResource ConvertidorHabilitacionItemsGrid}, Mode=OneWay}" >

converter is:

public class ConvertidorHabilitacionItemsGrid : IValueConverter
 {
     public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
     {
         return !((int)value == 0);
     }
 
     public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
     {
         throw new NotImplementedException();
     }
 }


But it not works

thanks
Maya
Telerik team
 answered on 16 Mar 2011
2 answers
112 views

For the selected items I do not see the selected color for the columns that have a background color.  here is how i am setting them

<telerik:GridViewDataColumn Header="QTR" UniqueName="Quarter" Background="Silver" DataMemberBinding="{Binding Quarter}" Width="50" />
John Giblin
Top achievements
Rank 1
 answered on 16 Mar 2011
2 answers
117 views


I have 3 radio buttons that will do the following
1) rbAll: Get all the values
2) rbMapped: Get all the values where the program column is not blank
3) rbUnMapped: Get all the values where the program column is blank
I have all the button clicks go to the below method
I am getting a blank results for all them.  Any ideas

Telerik.Windows.Controls.GridView.FieldFilterDescriptor columnDescriptor = new Telerik.Windows.Controls.GridView.FieldFilterDescriptor("Program", typeof(System.String));
 
if (rbAll.IsChecked.Value)
{
    columnDescriptor.Filter1.Operator = Telerik.Windows.Data.FilterOperator.IsGreaterThan;
    columnDescriptor.Filter1.Value = "0";
    return;
}
if (rbMapped.IsChecked.Value)
{
    columnDescriptor.Filter1.Operator = Telerik.Windows.Data.FilterOperator.IsNotEqualTo;
    columnDescriptor.Filter1.Value = "";
}
else if (rbUnmapped.IsChecked.Value)
{
    columnDescriptor.Filter1.Operator = Telerik.Windows.Data.FilterOperator.IsEqualTo;
    columnDescriptor.Filter1.Value = "";
}
rgvSellingTitles.FilterDescriptors.Add(columnDescriptor);
John Giblin
Top achievements
Rank 1
 answered on 16 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?