Telerik Forums
UI for WPF Forum
1 answer
167 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
310 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
158 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
164 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
132 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
124 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
149 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
9 answers
397 views
Hi,

I'm new to the telerik wpf controls and I want to know if there is a way to make use of the RadToolBarTray and use it in place of the standard notifier control? Does telerik have anything that improves upon the  WinForms.NotifyIcon or the context menu for that control? I didn't see any previous samples or forum posts related to the tray icon.

Thanks,
Scott
Nikolay
Telerik team
 answered on 19 Nov 2010
3 answers
342 views
Hello,

In certain cases I need to allow user to edit and delete rows, but in certain cases user can edit rows, but can not delete them

How can I disable deletion of rows?

Thank You
Yavor Georgiev
Telerik team
 answered on 19 Nov 2010
1 answer
86 views
Hi,

I manage rotate the Timeline ScheduleView and in that mode appointments have very small width. Please take a lot at attach.

Could you guide me how to fix it?

Thanks,
Anatoly
Dani
Telerik team
 answered on 19 Nov 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
DataPager
PersistenceFramework
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
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?