Telerik Forums
UI for WPF Forum
1 answer
71 views
Hi

I'm using the RadDragAndDropManager along with the RadGridView; it appears like the the column re-ordering and the grouping now no longer work. Do we have to code this manually if we use the RadDragAndDropManager?
Miroslav
Telerik team
 answered on 24 Jul 2009
2 answers
175 views
Hello guys, i have that lines in my code-behind:
public partial class MainWindow : Window 
    { 
        public MainWindow() 
        { 
            this.InitializeComponent(); 
            MainWindowViewModel model = new MainWindowViewModel(); 
            RadChart1.DefaultView.ChartArea = model.MainChartArea; 
            RadChart1.DefaultView.ChartLegend.UseAutoGeneratedItems = true
        }         
    } 
    public class MainWindowViewModel 
    { 
        private ChartArea _area; 
        public ChartArea MainChartArea 
        { 
            get  
            { 
                if (_area == null
                    _area = CreateChartArea(); 
                return _area; 
            } 
        }         
        private ChartArea CreateChartArea() 
        { 
            ChartArea area = new ChartArea(); 
 
            DataSeries ser1 = new DataSeries(); 
            ser1.Add(new DataPoint(23)); 
            ser1.Add(new DataPoint(45)); 
            ser1.Add(new DataPoint(33)); 
            ser1.Add(new DataPoint(12)); 
            ser1.Add(new DataPoint(50)); 
            ser1.LegendLabel = "Series 1 Label"
            area.DataSeries.Add(ser1); 
 
            DataSeries ser2 = new DataSeries(); 
            ser2.Add(new DataPoint(45)); 
            ser2.Add(new DataPoint(50)); 
            ser2.Add(new DataPoint(60)); 
            ser2.Add(new DataPoint(30)); 
            ser2.Add(new DataPoint(25)); 
            ser2.LegendLabel = "Series 2 Label"
            area.DataSeries.Add(ser2); 
 
            return area; 
        } 
    } 
and that is the XAML part:
<Grid x:Name="LayoutRoot"
        <control:RadChart x:Name="RadChart1"
            <control:RadChart.DefaultView> 
                <chart:ChartDefaultView> 
                     
                    <chart:ChartDefaultView.ChartLegend> 
                        <chart:ChartLegend x:Name="CustomLegend" Header="Legend Header" UseAutoGeneratedItems="True"
                        </chart:ChartLegend> 
                    </chart:ChartDefaultView.ChartLegend> 
                    <chart:ChartDefaultView.ChartTitle> 
                        <chart:ChartTitle> 
                            <TextBlock Text="Declarative RadChart"/> 
                        </chart:ChartTitle> 
                    </chart:ChartDefaultView.ChartTitle> 
                </chart:ChartDefaultView> 
            </control:RadChart.DefaultView> 
        </control:RadChart> 
 
    </Grid> 
but now... i don't have the Legend generated. So what's missing? How to get back the Legend if i use something like MVVM?


Liberte
Top achievements
Rank 1
 answered on 24 Jul 2009
2 answers
277 views
Hi

I'm trying to customise the RadCalendar, but I do not see how I can change the hover over and selection colors for days when in certain views (E.g. month/week view)

I have tried editing the Template using Blend and also checked out the post at
http://www.telerik.com/community/forums/wpf/calendar/how-to-change-datepicker-monthview-s-header.aspx

which is somewhat relevant, but I do not see any such property.

How should I go about achieving this?



Regards
Nikolay
Telerik team
 answered on 24 Jul 2009
3 answers
151 views
The text can be translated "drag a column header here to group by that column" to other languages

How can I do?

Thanks
Carles Vazquez
Top achievements
Rank 1
 answered on 23 Jul 2009
4 answers
147 views
I cannot get the Sample project to show the GridView from the Q2 release.  So, I decided to open the project in debug and see what was going on.  I find it very hard to believe that you are releasing a sample that compiles with 13 warnings of Obsolete classes.  How are we supposed to be using the sample project as a basis of our development if you are delivering usages of obsolete items?

Not pleased at all with this...
Stefan Dobrev
Telerik team
 answered on 23 Jul 2009
3 answers
284 views
I am using a RadCarousel and would like to change how the navigation buttons look.  I am assuming that the way to go about this is to use a ControlTemplate, however I have been unable to affect the visual appearance of the ScrollViewer.  Does anyone have an example of how to apply custom styling to the scrollviewer in a RadCarousel?

Thanks
Milan
Telerik team
 answered on 23 Jul 2009
8 answers
289 views
Hi

My RadPanelBar is bound to a collection of objects like this:

XAML:
<HierarchicalDataTemplate x:Key="hdt" ItemsSource="{Binding ClientPublications}">                         
            <TextBlock Text="{Binding Name}"></TextBlock> 
</HierarchicalDataTemplate> 
 
<telerik:RadPanelBar x:Name="reportMenuPanelBar" Grid.Row="1" Margin="1,0,1,1" ItemsSource="{Binding}" ItemTemplate="{StaticResource hdt}" Selected="reportMenuPanelBar_Selected"
</telerik:RadPanelBar> 

C#:
IList<ClientReport> reports = mgr.GetAllClientReports(); 
reportMenuPanelBar.DataContext = reports; 

I want the textweight for the child panel bar items to be different (i.e. bold or normal) depending on the value of an object's property.

How can I do this?

Thanks.
Ryan
Top achievements
Rank 1
 answered on 23 Jul 2009
1 answer
249 views
Hi all,

I'm trying the combo box control for WPF.

How to attach a command at the selectionchange event ?

Thanks
Valeri Hristov
Telerik team
 answered on 23 Jul 2009
3 answers
176 views
Hello,

I am trying to create a totals row using code.
I saw the Totals example using XAML and also found the following post:
http://www.telerik.com/community/forums/wpf/gridview/2q2-9-radgridview-footer-row-sample-question.aspx
however I got stuck. No value is displayed in the Totals row.

Thanks,

Erez


<Window x:Class="TestTelerikQ2.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="378" Width="536">
    <Grid>
        <StackPanel Orientation="Vertical">
            <telerik:RadGridView Margin="12,20,-12,-20"
                                Name="radGridView1"
                                Loaded="radGridView1_Loaded"
    ShowColumnFooters="True" AutoGenerateColumns="False" >
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn  UniqueName="Number"
       DataMemberBinding="{Binding Number}">
                    </telerik:GridViewDataColumn>
                </telerik:RadGridView.Columns>
               
            </telerik:RadGridView>
        </StackPanel>
    </Grid>
</Window>



using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.GridView;
using Telerik.Windows.Data;

namespace TestTelerikQ2
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1 : Window
    {
        public Window1()
        {
            try
            {
                InitializeComponent();

                GridViewFooterCell g;
               
                GridViewFooterRow footerRow = new GridViewFooterRow();

                Telerik.Windows.Data.SumFunction sum = new SumFunction();

                sum.Caption = "sum: ";

 

                sum.ResultFormatString = "{}{0:c}";

                sum.SourceField = "Number";

                Telerik.Windows.Controls.GridViewDataColumn column =
                        (Telerik.Windows.Controls.GridViewDataColumn)radGridView1.Columns["Number"];

               

                //column.Footer = footerRow;

                DataTable dt = new DataTable();
                DataView dv;

                dt.Columns.Add("Display", typeof(string));
                dt.Columns.Add("Number", typeof(int));

                dt.Rows.Add("show", 1);
                dt.Rows.Add("show", 2);
                dt.Rows.Add("hide", 3);

                dv = new DataView(dt);

 

                radGridView1.ItemsSource = dv;

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

                       
        }

    }
}

Stefan Dobrev
Telerik team
 answered on 23 Jul 2009
3 answers
150 views
Hello,

I have a small issue with a dataview and selecting a row while being in edit mode in a cell.

Below is the code-
If I start the below app, double click into one of the visible cells and than press on the
"ClickMe" button, the RowFilter is changed by code, the last line become visible, however
it is not selected even due I try to do so.

If I press again on the button,  the row is then selected.

Any ideas ?

Thanks,

Erez

P.S: "RadControls for WPF Q1 2009 SP2"




<Window x:Class="WpfToTelerikForum.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="333" Width="639" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <StackPanel Orientation="Vertical">
        <telerik:RadGridView Margin="12,20,-12,-20"
                             Name="radGridView1"
                             Loaded="radGridView1_Loaded" />
        <Button Margin="8" Height="50" Width="50" Content="ClickMe" Click="Button_Click"/>
    </StackPanel>
</Window>

 

 

using System;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.GridView;
using Telerik.Windows.Data;

namespace WpfToTelerikForum
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();
        }

        private void radGridView1_Loaded(object sender, RoutedEventArgs e)
        {
            DataTable dt = new DataTable();
            DataView dv;

            dt.Columns.Add("Display", typeof(string));
            dt.Columns.Add("Number", typeof(int));

            dt.Rows.Add("show", 1);
            dt.Rows.Add("show", 2);
            dt.Rows.Add("hide", 3);

            dv = new DataView(dt);

            dv.RowFilter = "Display = 'show'";

            radGridView1.ItemsSource = dv;

        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DataTable dt;
            DataView dv;

            dv = ((DataView)radGridView1.ItemsSource);
            dt = dv.Table;

            dt.Rows[dt.Rows.Count-1]["Display"] = "show";

            radGridView1.Records[radGridView1.Records.Count-1].IsSelected = true;
        }
    }
}

 

 

Rossen Hristov
Telerik team
 answered on 23 Jul 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?