Telerik Forums
UI for WPF Forum
6 answers
172 views
Hi,
I experience a weird behavior of the RadGridView with row and column virtualization turned on. At random times, upon setting the ItemsSource property, a single selected row remains 'hanging' in the empty area far down the last row in the grid. I have attatched a screenshot with visual representation of the problem. Turning the virtualization off solves this issue but it's inacceptable due to the large amount of the data that used with the grid. I am using version Q1 SP1 2010 of the grid.
Todor
Top achievements
Rank 1
 answered on 22 Nov 2010
1 answer
104 views
Hello,
We have an application with multiple RadPanes open at the same time, where the user can save data in their active pane/view with a ribbon level save button/command.  Due to this structure it is sometimes hard for the user's to visually see which pane is being saved other than knowing it is the active pane.

I wanted to know if there is a way to animate or change the color of a RadPane temporarily while an action is occuring, e.g. change the color to yellow while a save operation is occuring, green if it is successful, and red if the operation fails...but only for a few moments to indicate to them that that specific pane saved.

Is there some kind of behavior we could attach to for this?
Miroslav Nedyalkov
Telerik team
 answered on 22 Nov 2010
1 answer
162 views

Can I put two text boxes in each column header.

I need to have a row below the name to display the units for each column.

If so how to do it programatically.

Veselin Vasilev
Telerik team
 answered on 22 Nov 2010
1 answer
151 views
i have a sample code which has a observable collection of items. if i enter qty/rate , total field should display qty * rate. but i can't get it. item collection is updated but not shown in the gridview. give suggestion to show the updated total field in radgridview when qty/rate changes. here is the code

namespace RadGridViewWPF
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            ObservableCollection<Item> items = new ObservableCollection<Item>();
            for (int i = 0; i < 10; i++)
            {
                items.Add(new Item() { ID = 1, ItemName = "Item" + i, Qty = 1, Rate = 12});
            }
 
            this.RadGridView1.ItemsSource = items;
        }
    }
 
    public class Item
    {
        private int _ID;
 
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private string _ItemName;
 
        public string ItemName
        {
            get { return _ItemName; }
            set { _ItemName = value; }
        }
        private decimal _Rate;
 
        public decimal Rate
        {
            get { return _Rate; }
            set { _Rate = value; }
        }
        private int _Qty;
 
        public int Qty
        {
            get { return _Qty; }
            set { _Qty = value; }
        }
        private decimal _Total;
 
        public decimal Total
        {
            get { return _Qty * _Rate; }
            set { _Total = value; }
        }
         
         
    }
}
Vlad
Telerik team
 answered on 22 Nov 2010
7 answers
275 views
I can't get my RadComboBox to filter. I have  IsEditable="True"  IsReadOnly="False" IsFilteringEnabled="True" TextSearchMode="Contains" VirtualizingStackPanel.IsVirtualizing="False" . So why won't it filter? Do I need something else?
IsEditable="True"  IsReadOnly="False" IsFilteringEnabled="True" TextSearchMode="Contains"
                                  VirtualizingStackPanel.IsVirtualizing="False" 


IsEditable="True"  IsReadOnly="False" IsFilteringEnabled="True" TextSearchMode="Contains"
                                  VirtualizingStackPanel.IsVirtualizing="False" 
IsEditable="True"  IsReadOnly="False" IsFilteringEnabled="True" TextSearchMode="Contains"
                                  VirtualizingStackPanel.IsVirtualizing="False" 
 IsEditable="True"  IsReadOnly="False" IsFilteringEnabled="True" TextSearchMode="Contains"
                                  VirtualizingStackPanel.IsVirtualizing="False" 
 IsEditable="True"  IsReadOnly="False" IsFilteringEnabled="True" TextSearchMode="Contains"
                                  VirtualizingStackPanel.IsVirtualizing="False" 
 IsEditable="True"  IsReadOnly="False" IsFilteringEnabled="True" TextSearchMode="Contains"
                                  VirtualizingStackPanel.IsVirtualizing="False" 
David
Top achievements
Rank 1
 answered on 20 Nov 2010
1 answer
146 views
I have a grid with a column whose CellTemplate is being set dynamically on each row via the CellTemplateSelector property of the column.  The cell will either be a checkbox, textbox, combobox, or datepicker.  The controls are showing correctly, and they are binding correctly.  However, when I tab into a cell in this column, I have to tab twice to actually be able to modify the data.  The first tab puts the cursor into the correct cell but not into the embedded control.  The second tab puts the cursor into the control.  Is there a way around this?

Also, is there a simple way to get the cell to respond to the Enter key after editing data in one of these controls (specifically the text box) rather than having to tab or click out of the cell?  I'm sure I could probably handle KeyUp or KeyDown events to make it work, but I was looking for a way to handle it within the XAML.

Thanks,
Ben
Veselin Vasilev
Telerik team
 answered on 19 Nov 2010
6 answers
150 views
I have a DynamicLayer and my own implementation of IMapDynamicSource

I have implemented ItemsRequest, and it returns the MapPinPoints from an Observable collection.  However, if I alter the Observable collection, then how can I make the DynamicLayer call the ItemsRequest again to see if any of the new points are now visible?
Simon
Top achievements
Rank 1
 answered on 19 Nov 2010
1 answer
122 views
Hi,
I have a data object class with System.ComponentModel.DisplayNameAttribute attribute.
When setting grid's ItemsSource with a collection of this data object, I see that the overriden DisplayName property getter is called by the grid, even though I set the Header property of each column hard-coded, and AutoGenerateColumns on the grid is set to false.

Is there a way to disable the grid's usage of this attribute without removing it from the data object?

Thanks,
Regards,
David.
Rossen Hristov
Telerik team
 answered on 19 Nov 2010
2 answers
105 views
Hi,

I have defined a dynamic layer, and I am trying to deliver up RadCharts.  As per your examples, I set the MapLayer Location Property on the RadChart.

If I add the charts directly to an InformationLayer, then they work
If I add them on the dynamic layer I get the following exception

Specified index is out of range or child at index is null. Do not call this method if VisualChildrenCount returns zero, indicating that the Visual has no children.\r\nParameter name: index\r\nActual value was 0.

   at System.Windows.FrameworkElement.GetVisualChild(Int32 index)\r\n   at System.Windows.Media.Visual.InternalGet2DOr3DVisualChild(Int32 index)\r\n   at System.Windows.Media.VisualTreeHelper.GetChild(DependencyObject reference, Int32 childIndex)\r\n   at Telerik.Windows.Controls.RadChart.PopulateLogicalChildren()\r\n   at Telerik.Windows.Controls.RadChart.OnApplyTemplate()\r\n   at Telerik.Windows.Controls.Map.DynamicLayer.MapSquares.CheckVisibility()\r\n   at Telerik.Windows.Controls.Map.DynamicLayer.RequestSlices(Int32 matrixIndex)\r\n   at Telerik.Windows.Controls.Map.DynamicLayer.ProcessRequests()

Is there something that I am not doing properly.

Thanks
Simon
Simon
Top achievements
Rank 1
 answered on 19 Nov 2010
3 answers
127 views
Hi,

I have turned off Spring Animations so that when I pan or zoom the map, the shapes in the information layers do not lag behind the tiles.

This works fine, apart from when zooming in and out the shapes are drawn in slightly the wrong place.  I then need to pan the map slighly in order to get the shapes back in the correct position

If I turn on Spring Animations again, I get the time lag, but they are always in the correct position

You can see what I mean from my screen shot
Simon
Top achievements
Rank 1
 answered on 19 Nov 2010
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?