Telerik Forums
UI for WPF Forum
5 answers
387 views
Hello,

How can I handle a Transition between Pages?

Thanks
Stefan

<Window.CommandBindings> 
        <CommandBinding Command="NavigationCommands.GoToPage" Executed="GoToPageExecuteHandler" CanExecute="GoToPageCanExecuteHandler" /> 
    </Window.CommandBindings> 
 
    <Grid> 
        <Grid.ColumnDefinitions> 
            <ColumnDefinition Width="*" /> 
        </Grid.ColumnDefinitions> 
        <Grid.RowDefinitions> 
            <RowDefinition Height="Auto" /> 
            <RowDefinition Height="*" /> 
        </Grid.RowDefinitions> 
 
        <Menu Name="menuemal" Grid.Column="0" Grid.Row="0">  
            <MenuItem Header="Page 1" Command="NavigationCommands.GoToPage" CommandParameter="Page/Page1.xaml" CommandTarget="{Binding ElementName=frmContent}" /> 
            <MenuItem Header="Page 2" Command="NavigationCommands.GoToPage" CommandParameter="Page/Page2.xaml" CommandTarget="{Binding ElementName=frmContent}" /> 
            <MenuItem Header="Page 3" Command="NavigationCommands.GoToPage" CommandParameter="Page/Page3.xaml" CommandTarget="{Binding ElementName=frmContent}" /> 
            <MenuItem Header="Page without master" Command="NavigationCommands.GoToPage" CommandParameter="Page/PageWithoutMaster.xaml" CommandTarget="{Binding ElementName=frmContent}" /> 
        </Menu> 
 
        <Frame NavigationUIVisibility="Hidden" Name="frmContent" Grid.Column="0" Grid.Row="1" Source="Page/Page1.xaml" /> 
          
        <telerik:RadTransitionControl Grid.Column="1" 
                                   Content="{Binding SelectedItem, ElementName=frmContent}" Duration="00:00:03" > 
            <telerik:RadTransitionControl.Transition> 
                <telerikTransitions:MotionBlurredZoomTransition /> 
            </telerik:RadTransitionControl.Transition> 
        </telerik:RadTransitionControl> 
          
    </Grid> 
Pana
Telerik team
 answered on 20 Jul 2010
1 answer
104 views
Hi,
Thanks for the wonderful chart control provided from telerik. Is there a feature like dragging the chart area and datapoints gets updated depending on the drag. I tried with RadDrapDropManager but could not.

Using RadDragDropManager, i should drop the drag. that should not be the case for me...

Scenario:
1. RadChart holding queue with 1000 data points.
2. But the current chart view shows only latest 10 points.
3. If drag the chart area to left/right, then data points must get updated. (this must depend on drag sensitivity).
4. This is some thing like playing the chart area w.r.t to datapoints in the queue.
5. Should have an event warning me that i am at point 0 and point 1000 on the graph. (start and end of the queue).

Thanks,
Lakshman
Velin
Telerik team
 answered on 19 Jul 2010
1 answer
88 views
Hi, 

I am getting an error when typing into the RadComboBox that states that it cant cast from type x to type y. The situation that we have is that the combo box is bound to a list of types that all implement a given interface but which do not necessarily share a common base type. The interface defines a property Description which is what we're actually binding to. If I use the combo box with the mouse and select from the list then all is fine, it is only when typing into the combo box that it blows up. Please see the attached stack trace for more info.

Thanks, Steve
Valeri Hristov
Telerik team
 answered on 19 Jul 2010
3 answers
137 views
Hello,

I have come across what I believe is a bug in the GridViewComboBoxColumn. The reason for this assumption is that I was able to take a working example of what I was trying to accomplish from this form (see http://www.telerik.com/community/forums/wpf/gridview/displaying-related-table-data.aspx for the attached working version) and reproduce the problem in my environment.

Let me stop to explain what it is I am trying to accomplish. The high level explanation is that I am trying to set the ItemSource property of the GridViewComboBoxColumn to the defaultview of a datatable I am operating on. The behavior is that no values are displayed in the column cells, but editing the column yields a combobox that is properly bound to the datatable.

This behavior can be reproduced with the following steps:

1) Grab the sample project that was provided by Pavel Pavlov of the Telerik team.
2) Convert the project to VS2010.
3) Run the project to make sure it is behaving as it should be.
4) Set the target framework to .NET framework 4.0 Client Profile.
5) Run the project to make sure it is behaving as it should be.
6) Remove all Telerik references.
7) Re-add Telerik references from RadControls for WPF 2010 SP2 (I have a trial license if that makes any difference; version number for assembies is 2010.1.603.35 if that helps).
8) Run the project. You will see that the TownID column is now full of blank cells.

Please let me know if this is a known issue and if/when you expect to be able to release a hotfix. Also, any workarounds you can think of that don't require me to rearchitecht all of my data storage objects would be appreciated.

Quick Start Notes:
    OS: Win XP SP3
    Application Type: WPF
    Target Framework: .Net Framework 4.0 Client Profile
    Language: C#.Net
    IDE: Visual Studio 2010
    Telerik Release Version: Q1 2010 SP2 (Trial License)
    My Telerik Assembly Version: 2010.1.603.35
    Sample (working) Telerik Assembly Version: 2010.1.309.35

Thank You,
Ryan Hansen


Pavel Pavlov
Telerik team
 answered on 19 Jul 2010
1 answer
351 views
I am using Visual studio 2010 and Telerik controls for WPF Q1 2010 version.
I am using nested radgridview (detailsview), checkbox has been placed in inner radgridview, i am trying to find out the checkbox but undable to do so.

How to find controls in nested radgridview

please see below my code.

Refer the attached image, in order to understand the problem.

<Grid>

               

        <telerik:RadGridView Grid.Row="1" Grid.Column="0" AutoGenerateColumns="False" ShowGroupPanel="False" Name="grdPendingOrderDetail">

            <telerik:RadGridView.Columns>

                <telerik:GridViewToggleRowDetailsColumn></telerik:GridViewToggleRowDetailsColumn>

                <telerik:GridViewDataColumn Header="Customer Codes" DataMemberBinding="{Binding CustomerCodes}" ></telerik:GridViewDataColumn>

                <telerik:GridViewDataColumn Header="Created On" DataMemberBinding="{Binding CreatedOn}" ></telerik:GridViewDataColumn>

                <telerik:GridViewDataColumn Header="Modified On" DataMemberBinding="{Binding ModifiedOn}" ></telerik:GridViewDataColumn>

                <telerik:GridViewDataColumn>

                    <telerik:GridViewDataColumn.CellTemplate>

                        <DataTemplate>

                            <Button Content="Resume" Click="Button_Click" Tag="{Binding CustomerCodes}"></Button>

                        </DataTemplate>

                    </telerik:GridViewDataColumn.CellTemplate>

                </telerik:GridViewDataColumn>

            </telerik:RadGridView.Columns>

            <telerik:RadGridView.RowDetailsTemplate>

                <DataTemplate>

                    <Grid>

                        <telerik:RadGridView AutoGenerateColumns="False" ItemsSource="{Binding PendingOrderCategories}" ShowGroupPanel="False" Name="grdPendingOrderCategory">

                            <telerik:RadGridView.Columns>

                                <telerik:GridViewToggleRowDetailsColumn></telerik:GridViewToggleRowDetailsColumn>

                                <telerik:GridViewDataColumn Header="Category Name" DataMemberBinding="{Binding CategoryName}" ></telerik:GridViewDataColumn>

                            </telerik:RadGridView.Columns>

                            <telerik:RadGridView.RowDetailsTemplate>

                                <DataTemplate>

                                    <Grid>

                                        <telerik:RadGridView AutoGenerateColumns="False" IsFilteringAllowed="False" ShowGroupPanel="False" Name="grdPendingOrder" ItemsSource="{Binding PendingOrders}">

                                            <telerik:RadGridView.Columns>

                                                <telerik:GridViewToggleRowDetailsColumn></telerik:GridViewToggleRowDetailsColumn>

                                                <telerik:GridViewSelectColumn IsGroupable="True" ></telerik:GridViewSelectColumn>

                                                <telerik:GridViewDataColumn Header="Sales Order ID" DataMemberBinding="{Binding SalesOrderID}" ></telerik:GridViewDataColumn>

                                            </telerik:RadGridView.Columns>

                                            <telerik:RadGridView.RowDetailsTemplate>

                                                <DataTemplate>

                                                    <Grid>

                                                        <telerik:RadGridView AutoGenerateColumns="False" Name="grdOrderDetail" ItemsSource="{Binding OrderDetails}">

                                                            <telerik:RadGridView.Columns>

                                                                <telerik:GridViewDataColumn Header="Product Code" DataMemberBinding="{Binding ProductCode}" ></telerik:GridViewDataColumn>

                                                                <telerik:GridViewDataColumn Header="Customer Code" DataMemberBinding="{Binding CustomerCode}" ></telerik:GridViewDataColumn>

                                                                <telerik:GridViewDataColumn Header="Customer Name" DataMemberBinding="{Binding CustomerName}" ></telerik:GridViewDataColumn>

                                                                <telerik:GridViewDataColumn Header="Price" DataMemberBinding="{Binding Price}" ></telerik:GridViewDataColumn>

                                                                <telerik:GridViewDataColumn Header="Quantity" DataMemberBinding="{Binding OrderQty}" ></telerik:GridViewDataColumn>

                                                            </telerik:RadGridView.Columns>

                                                        </telerik:RadGridView>

                                                    </Grid>

                                                </DataTemplate>

                                            </telerik:RadGridView.RowDetailsTemplate>

                                        </telerik:RadGridView>

                                    </Grid>

                                </DataTemplate>

                            </telerik:RadGridView.RowDetailsTemplate>

 

                        </telerik:RadGridView>

                    </Grid>

                </DataTemplate>

            </telerik:RadGridView.RowDetailsTemplate>

        </telerik:RadGridView>

    </Grid>

 

private void Button_Click(object sender, RoutedEventArgs e)

        {

 

            Button btn = sender as Button;

            GridViewRow row = btn.ParentOfType<GridViewRow>();  //Row with CustomerName

            RadGridView grd = row.ChildrenOfType<RadGridView>()[0]; //Grid with category name

            GridViewDataControl grdVDC = grd as GridViewDataControl;

            string salesOrderIDs = "";

            foreach (GridViewRow rw in grdVDC.ChildrenOfType<GridViewRow>())  //foreach category name

            {

                RadGridView grdInner;

                GridViewDataControl grdVDCInner;               

                if (!(rw is GridViewNewRow))

                {

                    grdInner = rw.ChildrenOfType<RadGridView>()[0];

                    grdVDCInner = grdInner as GridViewDataControl;

                    foreach (GridViewRow rwInner in grdVDCInner.ChildrenOfType<GridViewRow>())  // foreach order in one category                

                    {

                        if (!(rwInner is GridViewNewRow))

                        {

                            bool select = (bool)((System.Windows.Controls.CheckBox)rwInner.Cells[1].Content).IsChecked;

                            if (select)

                            {

                                salesOrderIDs += ((System.Windows.Controls.TextBlock)rwInner.Cells[2].Content).Text;

                                salesOrderIDs += ",";

                                break;

                            }

                        }

                    }

                }

            }

        }

 

 

Yavor Georgiev
Telerik team
 answered on 19 Jul 2010
2 answers
145 views
Hello Telerik Team,

I Converted code VB to C#. In VB it is alreday tasted & worked perfectly but in C# Rebind is not working properly.

While loading window am setting like below:

  rgvSet.ItemsSource = DataModule.objSets;
  rgvOrders.ItemsSource = DataModule.objOrderList;
  rgvTour.ItemsSource = DataModule.objTourList;
  rgvTruck.ItemsSource = (from p in DataModule.objTruckList where p.Status == DataModule.Cons_Status_Available select p).ToList<clsTruck>();
  rgvTrailer.ItemsSource = (from p in DataModule.objTrailerList where p.Status == DataModule.Cons_Status_Available select p).ToList<clsTrailer>();
        rgvDriver.ItemsSource = (from p in DataModule.objDriverList where p.Status == DataModule.Cons_Status_Available select p).ToList<clsDriver>();

"rgv... " are RadgridView and all List are ObservableCollection. After doing such operation adding/removing/updating in collection am rebinding appropriate grid. Grid which having itemsource as LINQ query will not Rebind but Grid which have collection as Itemsource will rebind correctly.

What could be a reason? any idea?

Thanks...!!!
Snehal
Top achievements
Rank 1
 answered on 19 Jul 2010
5 answers
1.0K+ views
Hi,
In our application we have a requirement in which we want to show a tree hierarchy in expanded state, we should not able to collapse it and no expander be shown.
How can we do it using RadTreeView ?

Regards,
Balaram Barange


Tina Stancheva
Telerik team
 answered on 19 Jul 2010
1 answer
84 views
Hello!
Assuming that I have 6 different SeriesMapping in a chart but in the chart's legend I want to show only 4 of them how should I do this??
I've tried to set their LegendLabel to null but this only puts the default "Series x" label in Legend which is not the desired behavior.

Thank you! 
Roxana
RoxanaC
Top achievements
Rank 1
 answered on 19 Jul 2010
2 answers
134 views
Hello,
Here is my gridview.
<UserControl x:Class="SilverlightApplication1.MainPage"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"
    xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView">
    <Grid x:Name="LayoutRoot">
         
        <telerikGrid:RadGridView x:Name="RadGridView1" ItemsSource="{Binding}" AutoGenerateColumns="False">
            <telerikGrid:RadGridView.ChildTableDefinitions>
                <telerikGrid:GridViewTableDefinition/>
            </telerikGrid:RadGridView.ChildTableDefinitions>
             
            <telerikGrid:RadGridView.Columns>
                <telerikGrid:GridViewDataColumn Header="ID" DataMemberBinding="{Binding ID}"/>
                <telerikGrid:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}"/>
            </telerikGrid:RadGridView.Columns>
             
            <telerikGrid:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <telerikGrid:RadGridView x:Name="SubGrid" DataLoading="SubGrid_DataLoading"
                                             AutoGenerateColumns="False" ItemsSource="{Binding Items}">
                    </telerikGrid:RadGridView>
                </DataTemplate>
            </telerikGrid:RadGridView.HierarchyChildTemplate>
        </telerikGrid:RadGridView>
    </Grid>
</UserControl>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Data;
using Telerik.Windows.Controls;
using System.Collections.ObjectModel;
using Telerik.Windows.Data;
using Telerik.Windows.Controls.GridView;
 
namespace SilverlightApplication1
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
 
            DataContext = from i in Enumerable.Range(0, 10)
                          select new MyObject()
                          {
                              ID = i,
                              Name = String.Format("Name{0}", i)
                          };
        }
 
        public class MyObject
        {
            public int ID { get; set; }
            public string Name { get; set; }
 
            public IEnumerable<MyObject2> Items
            {
                get
                {
                    return from i in Enumerable.Range(0, 10)
                           select new MyObject2()
                           {
                               x = i
                           };
                }
            }
        }
 
        public class MyObject2
        {
            public int x { set; get; }
 
            public IEnumerable<MyObject2> Items
            {
                get
                {
                    return from i in Enumerable.Range(0, 10)
                           select new MyObject2()
                           {
                               x = i
                           };
                }
            }
        }
 
        private void SubGrid_DataLoading(object sender, GridViewDataLoadingEventArgs e)
        {
            var grid = (GridViewDataControl)sender;
 
            var d = new GridViewTableDefinition();
            d.Relation = new PropertyRelation("Items");
            grid.TableDefinition.ChildTableDefinitions.Add(d);
 
            grid.AutoGenerateColumns = false;
            grid.Columns.Add(new GridViewDataColumn() { DataMemberBinding = new Binding("x") });
        }
    }
}

For the firs time it is child one and then it becomes self-hierarchical. Everything is OK, but in the real programm we use WCF service and MyObject and MyObject2 are DataContracts, and we need to call a WCF service in the get-methods of the Items property.
So, I ask you for help: How could I call the WFC method or maybe there is another way to make such hierarchy.
Jokerwolf
Top achievements
Rank 1
 answered on 19 Jul 2010
0 answers
75 views
Hi,

I have an exception with GridView in the part of using in the visual studio extention based on VSPackage described in this thread.
Any ideas about this problem?
Whether correctly I understand, what I cannot to use with the Telerik controls in the Visual Studio extensions based on VSPackage?
ifle
Top achievements
Rank 1
 asked on 18 Jul 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
Slider
Expander
TileList
PersistenceFramework
DataPager
TimeBar
Styling
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
CardView
DataBar
WebCam
FilePathPicker
Licensing
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? 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?