Telerik Forums
UI for WPF Forum
1 answer
78 views
I have a grid with about 1,000 records and then grouped - the largest group has about 580 records in it. When I click on the group heading to expand this group it is very slow (over 1 to 2 seconds). The grid has 16 columns in it. When I make the window smaller (i.e. only a smaller portion of the grid is visible) this reduces the time to expand the group.

Can you suggest any likely causes for this behavior and/or any ways to optimize it

Thanks
Yoan
Telerik team
 answered on 08 Apr 2014
1 answer
127 views
I am trying to upgrade UI for wpf from 2012 version to the latest 2014 Q1. I got the build error complaining about MetroColors missing. I check the class is in old version's Telerik.Windows.Controls namespace but NOT in the new version's same assembly. Where should I get the assembly containing MetroColors class and related ones?
Yana
Telerik team
 answered on 08 Apr 2014
1 answer
138 views
 I am using the following CellTemplate because I need the IsEditable property for the combo box:


<telerik:GridViewDataColumn Width="100" >
                    <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <ComboBox DisplayMemberPath="Name"  SelectedValuePath="ID" SelectedValue="{Binding CountryID, Mode=TwoWay}" ItemsSource="{Binding Countries, Source={StaticResource CountriesList}}" />
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                </telerik:GridViewDataColumn>

My issue is that now my OnRowEditEndedCommandCommandExecuted event does not run, and I do not know how to get it to run when the normal combo box is edited to update the correct row. Any ideas? Thank you.
None
Top achievements
Rank 1
 answered on 07 Apr 2014
1 answer
88 views
Hey guys,

I noticed in the versions notes for internal build 2014_1_0324 there is a line in the 'What's new' section that says 'Introduced Auto themeable color value'.

Can you go into a little more detail about what this is, and how to use it?

Thanks,
Niko 
Alex
Telerik team
 answered on 07 Apr 2014
1 answer
168 views
I'm using ProLinq (http://prolinq.codeplex.com/) to expose IQueryable directly to clients of my service.

I'm binding this Queryable to my RadfGridView but it's not working how i expected: The IQueryable that the service return is only for one use, when grid need to refresh (by a filter change for example) the grid must be obtain other IQueryable from the service.

I'm trying to make this to work in several ways but i don't success for now :(
- I'm overload Filtering and Sorting events to change grid filter every time
- I'm try to convert the FilterDescriptor to System.Linq.Expression to get new IQueryable from service and apply the expression on it, but i don't know
- I'm trying use VirtualQueryableCollectionView but when i filter the grid the service is not called.

Any idea how i can complete this behavior?

Thanks.
Oscar
Top achievements
Rank 1
 answered on 07 Apr 2014
1 answer
108 views
Hello, I'm trying to validate pasting into the grid. I'm using PastingCellClipboardContent because it lets me know which cell is being pasted into and the value, but I can't cancel at this point. Even if I set the e.Handled = true, the value is in the cell. The Pasting event will cancel, but that event doesn't have a GridViewCellInfo object like PastingCellClipboardContent does, so I don't know which cell(s) are being pasted and their values. Is there a way to handle this so I can validate the input and cancel or allow each value for each cell?

Thanks,
Scott
Dimitrina
Telerik team
 answered on 07 Apr 2014
3 answers
103 views
I display a short list of data in WPF grid in MVVP environment.

I can edit some values in the grid itself and the SUM Agregate function is triggered and the Grid displays the new Total.

But if data is changed in the Model itself, the values are displayed in the grid rows but the SUM is not triggered !

In MVVP the Model is NOT aware of View controls and should not call a refresh method on the grid...

How can this be done ?

Thanks,

Michel

Dimitrina
Telerik team
 answered on 07 Apr 2014
1 answer
297 views
Hi,

I have this xaml code:

<telerik:RadGridView x:Name="DynTableGridView"
                   ItemsSource="{Binding DataTables">
  <telerik:RadGridView.RowDetailsTemplate>
    <DataTemplate>
       <telerik:RadBusyIndicator  IsBusy="{Binding ????? DoInput}">
              <Grid>
                ....................
                some code
                ....................
              </Grid>
           </telerik:RadBusyIndicator>
    </DataTemplate>
  </telerik:RadGridView.RowDetailsTemplate>
</telerik:RadGridView>
and  DynTablesViewModel class
     public class DynTablesViewModel:ViewModelBase
    {
        private ICollectionView _dataTables;
        private bool _doInput = true;
 
        public void InitData()
        {
             DataTables = new QueryableCollectionView(.........);
        }
        #region Property
 
        public bool DoInput
        {
            get { return _doInput; }
            set { _doInput = value; OnPropertyChanged("DoInput"); }
        }
        
        public ICollectionView DataTables
        {
            get { return _dataTables; }
            set { _dataTables = value; OnPropertyChanged("DataTables"); }
        }
         #endregion
    }
How to bind RadBusyIndicator in RowDetailsTemplate?  RadBusyIndicator  IsBusy="{Binding ????? DoInput}"
Vanya Pavlova
Telerik team
 answered on 07 Apr 2014
3 answers
174 views
Hello,

We have a property to display that is a List{Integer}. This should be a readonly only collection. Is the PropertyGrid smart enough to work with ReadOnlyCollections? Or what sort of DataTemplate magic do we need to do wiring it up?

Similar question for custom types like Enums, or strings, etc.

Thank ye...

Best regards.
Dimitrina
Telerik team
 answered on 07 Apr 2014
1 answer
168 views
Hello,

I'm trying to format a chart that has a status or category on the Y axis, and a time on the X axis. Please see attached image for an example of what I'm talking about. I've tried a couple different scenarios, but I'm having trouble adding CategoricalDataPoints to my LineSeries. I'm currently trying to use the RadCartesianChart, which I'm not even sure is the most appropriate. Could anyone provide some guidance on if I'm using the right chart, axes, etc...and maybe a small example of adding data to the series programatically? 

This is what I have so far, which I know is not well written, just trying to get a POC working. The CategoricalDataPoint is expecting a double as the value, but I actually just have a category.

RadCartesianChart chart = new RadCartesianChart();
            chart.HorizontalAxis = new DateTimeContinuousAxis();
            chart.VerticalAxis = new CategoricalAxis();
            LineSeries line = new LineSeries();
            line.Stroke = new SolidColorBrush(Colors.Orange);
            line.StrokeThickness = 2;
 
            SqlCeConnection con = new SqlCeConnection(connectionString); ;
            con.Open();
            using (SqlCeCommand command = new SqlCeCommand("SELECT Log.contact as contact, Status.name as status, Log.time as time FROM Log INNER JOIN Status ON Log.status_id = Status.id WHERE (Log.contact = 'Bob')", con))
            {
                SqlCeDataReader reader = command.ExecuteReader();
                while (reader.Read())
                {
                    DateTime time = Convert.ToDateTime(reader["time"]);
                    string person = Convert.ToString(reader["contact"]);
                    string status = Convert.ToString(reader["status"]);
 
                    if (time.DayOfYear == DateTime.Now.DayOfYear - 1)
                    {
                        line.DataPoints.Add(new CategoricalDataPoint() { Value = time, Category = status });
                    }
                }
            }
Pavel R. Pavlov
Telerik team
 answered on 07 Apr 2014
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?