Telerik Forums
UI for WPF Forum
1 answer
98 views
Hi! Is it possible to change sort logic for grid? For example user apply sorting by some column, but i need to leave one row unsorted (in the end of list).
Vlad
Telerik team
 answered on 28 Jan 2009
1 answer
123 views
Hi,
I am looking for a vertical navigator control like the navigator on the telerik site or many other sites. I found PanelBar, but Implements this control ICommandSource, so I am able to associate ICommand items with it??
Can I load the content via data binding?

With best regards

Gerhard
Tihomir Petkov
Telerik team
 answered on 27 Jan 2009
1 answer
1.4K+ views
Hello!

Currently i am working on an application wich needs two datepickers - a StartDate and an EndDate . I am having problems binding this two controls with DateTime properties on an object . For binding values i am using the attribute SelectedDate = {Binding Path=StartDate}, but no binding is created . I would like to know if this is the correct way of binding this control to date fields or if there is another way of doing this... I have search throught the website/documentation but I can't find a proper response.

Any help would be great !
Thanks,
Ivan Frias.

Miroslav Nedyalkov
Telerik team
 answered on 27 Jan 2009
1 answer
374 views
Hi !
I would like to know if it's possible to define the initial date, some sort of default value for this control . I have searched through the properties list and I can't find it .Also I searched through the documentation and found nothing ..
Hope you could help, with an example or point me to the right direction .

Thanks,
Ivan Frias
Miroslav Nedyalkov
Telerik team
 answered on 27 Jan 2009
1 answer
76 views
I have a radcarousel bound to an objectdataprovider which has an instance of an observablecollection<T> where T is a personentity class in my system. If I change a property value of one of the personentity (like firstname) those changes are not reflected in the Carousel. Any help will be much appreciated.

Matt Francis
Top achievements
Rank 1
 answered on 26 Jan 2009
3 answers
233 views
Hello,

I'm having an issue where the column header is missing when you add a column to the grid after it has initially been created.  I have created a sample project that demonstrates my issue, but it appears I can't attach it so I included the code at the end of this post.  To reproduce it, just click on the 'Add Column' button.  Am I doing something wrong in my code or is this a bug?

In my example I'm also calling Rebind() and UpdateLayout() on the grid after adding the column because if I don't then no data appears in the column, though the column itself is added.

Note: I borrowed the Custom and Order classes from a sample app on this forum.

Thanks,

Joel


Window1.xaml
<Window x:Class="AddColumnIssue.Window1" 
    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" 
    Title="Window1" Height="380" Width="701"
    <Grid> 
        <Grid.RowDefinitions> 
            <RowDefinition Height="30" /> 
            <RowDefinition Height="*" /> 
        </Grid.RowDefinitions> 
         
        <Button x:Name="AddColumnButton" Grid.Row="0" Height="23" Width="75" Click="AddColumnButton_Click" >Add Column</Button> 
         
        <telerik:RadGridView x:Name="ItemsGrid" Grid.Row="1" ItemsSource="{Binding}" AutoGenerateColumns="False" /> 
    </Grid> 
</Window> 

Window1.cs
    public partial class Window1 : Window 
    { 
        public Window1() 
        { 
            InitializeComponent(); 
            AddColumns(); 
            this.DataContext = BuildCustomers(); 
        } 
 
        private void AddColumnButton_Click(object sender, RoutedEventArgs e) 
        { 
            AddColumn(typeof(string), "Email", 200); 
            RefreshGrid(); 
        } 
 
        private void AddColumns() 
        { 
            AddColumn(typeof(int), "Number", 100); 
            AddColumn(typeof(string), "Name", 100); 
        } 
 
        private void AddColumn(Type dataType, string name, int width) 
        { 
            GridViewDataColumn column = new GridViewDataColumn(); 
            column.DataType = dataType; 
            column.HeaderText = name; 
            column.UniqueName = name; 
            column.Width = new GridLength(width); 
            column.IsReadOnly = true
 
            ItemsGrid.Columns.Add(column); 
        } 
 
        private void RefreshGrid() 
        { 
            ItemsGrid.Rebind(); 
            ItemsGrid.UpdateLayout(); 
        } 
 
        private static ObservableCollection<Customer> BuildCustomers() 
        { 
            ObservableCollection<Customer> customers = new ObservableCollection<Customer>(); 
            ObservableCollection<Order> orders = new ObservableCollection<Order>(); 
 
            for (int i = 0; i < 10; i++) 
                orders.Add(new Order { Number = i, Details = "Order" + i }); 
 
            for (int i = 0; i < 100; i++) 
                customers.Add(new Customer { Email = "Mail" + i, Name = "Name" + i, Number = i, Orders = orders }); 
 
            return customers; 
        } 
    } 

Milan
Telerik team
 answered on 26 Jan 2009
2 answers
170 views
Hi,

I'm trying to create a 3D Dougnut Chart, but are having troubles with the Series Mapping. Using the code below, I get the legend to show color coded items equal to the amount of rows in the table. But nothing else displays.

Doughnut3DSeriesDefinition definition = new Doughnut3DSeriesDefinition();  
 
definition.LegendDisplayMode = LegendDisplayMode.DataPointLabel;  
 
radChart1.DefaultSeriesDefinition = definition;  
 
   
 
radChart1.DefaultView.ChartLegend.Header = "TEST DATA";  
 
SeriesMapping seriesMapping = new SeriesMapping();  
 
ItemMapping itemMapping = new ItemMapping();  
 
itemMapping.DataPointMember = DataPointMember.YValue;  
 
itemMapping.FieldName = "DoubleData";  
 
seriesMapping.ItemMappings.Add(itemMapping);  
 
ItemMapping itemMapping2 = new ItemMapping();  
 
itemMapping2.DataPointMember = DataPointMember.Label;  
 
itemMapping2.FieldName = "StringData";  
 
seriesMapping.ItemMappings.Add(itemMapping2);  
 
radChart1.SeriesMappings.Add(seriesMapping);  
 
DataTable tt = new DataTable();  
 
tt = GetDataTable();  
 
radChart1.ItemsSource = tt;  
 
 


 

Any help would be much appreciated. Not really sure how the charting works.

Thanks,

Henry

 

Velin
Telerik team
 answered on 26 Jan 2009
1 answer
145 views
Hi,

I am trying to implement pagination in griedview and somehow got success by using the following code

var page = GridViewItemsControl.GetVirtualizingPanel(GridView1.ItemsControl);
            page.PageDown();

But I want movenext, moveprevious, move first and move last functionalities. Moreover I wanted to display the current page number also.

Please help me to achive this solution.

Thanks!

Vaithi.



Victor
Telerik team
 answered on 26 Jan 2009
1 answer
67 views

Hello

I wanted to know:

1) When I open the demo project with VS 2008 Professional Edition with SP1, VS crashes.any ideas? I'm using vista sp1, + telerik 2008 q3. I tried running vs with admin but didn't help

2) What's the name of the left control in the demo app(which lists particular control's demos)? It looks like treeview, but I liked it's effects and want to use it in my application. Thanks.

Boyan
Telerik team
 answered on 26 Jan 2009
1 answer
304 views
Hi there !
I have one window control wich holds two grids( one wich will be static - with a banner ) and the other will have two different user controls ( one for the list case and the other for adding/ editing data ) . I am defining several commandbindings & keybinds in order to have a fully functional keyboard shortcut system . The problem appears when I use the RadNumericUpDown control . When I insert a decimal value or other, my window control looses the focus; I have compared the state of the focus before and after using the numericupdown and I can see that the window focus status change ( from true to false )... I guess this happens right when i use the numericupdown control ... Any ideia / suggestions ?

Thanks,
Ivan Frias

Boyan
Telerik team
 answered on 23 Jan 2009
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?