Telerik Forums
UI for WPF Forum
2 answers
156 views
In this code:

Customer cutomer = (Customer) (record as DataRecord).Data;  
cutomer.HasOrders = true;  

I am casting record as a Customer.  What if I don't know that my RadGrid is bound to Customer objects?  Is there a way to tell what type of objects are bound to my radgrid and then cast out each record in order to get access to the properties?

Thanks,
Scott



Milan
Telerik team
 answered on 15 Dec 2008
0 answers
90 views
Hi,
I have few questions on inline editing:

1. There is a protected variable isInEditMode, which indicates that a RadTreeViewItem is in edit mode. Is there a public property or any other way to identify whether a RadTreeViewItem  is in edit mode?
2. Pressing F2 triggers inline editing, after editing node text, if i press enter then Edited event gets fired but if i use mouse click to lose focus from editing item, then it (Edited event) does not, why?
3. I am initiate the inline editing by calling BeginEdit() but want to disable it on F2 key press, Is there any way to achieve this?

Thanks
Sonal
sonal
Top achievements
Rank 1
 asked on 15 Dec 2008
2 answers
114 views
I think an ASP.Net (like DevExpress has) would be great!  


Al
Alfred Ortega
Top achievements
Rank 2
 answered on 13 Dec 2008
4 answers
162 views
Greetings,
   Since updating to the Q3 release I've noticed an error when using arrow keys to navigate the values in a GridViewComoboxEditor. 
This can be seen using the wpf Editor demo. http://demos.telerik.com/wpf/.  I used the Country column for testing.

Replication:
1) User enters combo box cell and begins edit.
2) User presses the down arrow key to select the next value in the list. (Or Up arrow key for previous value).

Behavior:
The next item in the list is selected.
Focus is moved to the grid.
The next row in the grid is shown as selected.
Original cell remains in edit.

Expected Behavior.
The next item in the list is selected.
No focus change.
The current (or selected rows) remain selected.
No additional rows are selected.

Thanks,
  Chris
Christopher
Top achievements
Rank 1
 answered on 12 Dec 2008
3 answers
640 views

Just starting out and trying to work through some of the learning curve struggles, but this one has me stumped.

I'm trying to set a default theme for my grids inside a resource dictionary, I've tried the app.xaml file but also without success.

Here's my code:
 <ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<!-- Resource dictionary entries should be defined here. -->
<Style TargetType="{x:Type telerik:RadGridView}">
<Style.BasedOn>
<Style TargetType="{x:Type telerik:RadGridView}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type telerik:RadGridView}">
<AdornerDecorator>
<telerik:Theming.Theme>
<telerik:TelerikTheme/>
</telerik:Theming.Theme>
</AdornerDecorator>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Style.BasedOn>
</Style>
</ResourceDictionary>

 

 

I started with an edit template and stripped out everything else.  When I run my application the grid is blank, actually it is blank in the designer as well as the Properties window.  If I add a x:Key value, the grid will reappear.  So it is applying my style in some fashion.  What am I missing?

Thanks,
-Sid Meyers.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Milan
Telerik team
 answered on 12 Dec 2008
2 answers
141 views
Hi,

I have a strange error with RadTabControl.
I put a UserControl on a RadTabItem, this UserControl has a TreeView on it. I set the SelectedItemChanged event for the TreeView in the UserControl's Initalized event (i've also tried setting it in the xaml, same result). Now when I select a node the event fires two times (and the selection jumps back to the root node).

When I put this UserControl  on a normal wpf TabControl, it works as expected, the event fires once. So I think the problem is RadTabControl related.

Please help me sort this out.

thanks,
Levente
Levente Mihály
Top achievements
Rank 1
 answered on 11 Dec 2008
3 answers
228 views
How do I get the telerik controls to look like the default windows controls. I am only using the DatePicker and it has a different visual theme to the rest of my application.
Miroslav
Telerik team
 answered on 11 Dec 2008
2 answers
230 views
Hello,

I want to display a TimeSpan within a RadGauge. My thoughts were that I should use a NumericScale. However, I cannot seem to get it to work. I want to make a TimeSpan look like a digital clock in the form of hh:mm:ss.

Is there a way to do this with the RadGauge? If so, is there some sample code that demonstrates this?

Basically, I am looking to create something that looks like the clock in the Time Monitoring Tool found in the demos here: http://demos.telerik.com/wpf/
Frustrated Dev
Top achievements
Rank 1
 answered on 10 Dec 2008
1 answer
148 views
I'd like to display the foreign key value rather than the ID in the combobox editors.  I found this example (http://www.telerik.com/community/forums/wpf/gridview/how-to-display-the-foreign-key-value-in-grid.aspx), however with the new Q3 release this approach no longer works.

Is there an new approach for handling this now?

Thanks,
  Christopher
Nedyalko Nikolov
Telerik team
 answered on 05 Dec 2008
3 answers
145 views
Hi All.

I have about a 1500 items of CallItem class in List collection.

This is description of CallItem:
public class CallItem  
    {  
        private DateTime callDateTime;  
 
        public DateTime CallDateTime  
        {  
            get { return callDateTime; }  
            set { callDateTime = value; }  
        }  
        private String calledNumber;  
 
        public String CalledNumber  
        {  
            get { return calledNumber; }  
            set { calledNumber = value; }  
        }  
        private String logicCall;  
 
        public String LogicCall  
        {  
            get { return logicCall; }  
            set { logicCall = value; }  
        }  
        private Int64 callDuration;  
 
        public Int64 CallDuration  
        {  
            get { return callDuration; }  
            set { callDuration = value; }  
        }  
        private Double costWithTaxes;  
 
        public Double CostWithTaxes  
        {  
            get { return costWithTaxes; }  
            set { costWithTaxes = value; }  
        }  
        private Double costWithDiscount;  
 
        public Double CostWithDiscount  
        {  
            get { return costWithDiscount; }  
            set { costWithDiscount = value; }  
        }  
 
        private String abonentNumber;  
 
        public String AbonentNumber  
        {  
            get { return abonentNumber; }  
            set { abonentNumber = value; }  
        }  
 
        public CallItem(String abonentNumber, DateTime callDateTime, Int64 callDuration, String calledNumber, Double costWithDiscount, Double costWithTaxes, String logicCall)  
        {  
            this.abonentNumber = abonentNumber;  
            this.callDateTime = callDateTime;  
            this.callDuration = callDuration;  
            this.calledNumber = calledNumber;  
            this.costWithDiscount = costWithDiscount;  
            this.costWithTaxes = costWithTaxes;  
            this.logicCall = logicCall;  
        }  
          
    }  
 

I geting all records and bindind they to GridView like this:
List<CallItem> items = GetAllItems();  
dataGridView.ItemsSource = items;  
dataGridView.CreateFilterDescriptions();  
 

And when I (or user) drag and dropping column (for example AbonentNumber) on grouping panel I need to waiting about 35 seconds.

if I heed to waiting about 35 seconds when I need grouping 1500 records then how long I need to waiting if I must grouping about 15000 records or 150000 records?

How i can increase performance of grouping in GridView? Or may be for my task I dont need to use GridView and grouping?

Andy
Top achievements
Rank 1
 answered on 05 Dec 2008
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?