Telerik Forums
UI for WPF Forum
1 answer
386 views
Hello.
I'm a beginner.
I think it's kind of difficult to make program related to Log-in stuff to me.
Do you have a plan to support Wpf Login Control.
Yana
Telerik team
 answered on 16 Oct 2013
1 answer
355 views
Hi,

I have a chart like the one in the attached image, this is the code:

<telerik:RadCartesianChart Name="CartesianChartDemo" Margin="10">
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior PanMode="Both" ZoomMode="Both"/>
            </telerik:RadCartesianChart.Behaviors>
        </telerik:RadCartesianChart>

CartesianChartDemo.VerticalAxis = new LinearAxis();
CartesianChartDemo.HorizontalAxis = new CategoricalAxis();
 
CartesianChartDemo.Grid = new CartesianChartGrid() { MajorLinesVisibility = GridLineVisibility.XY };
 
DataTable dtAlloys = new DataTable("DATA");
 
dtAlloys.Columns.Add(new DataColumn("Name", typeof(string)));
dtAlloys.Columns.Add(new DataColumn("Value1", typeof(double)));
dtAlloys.Columns.Add(new DataColumn("Value2", typeof(double)));
 
dtAlloys.Rows.Add(new object[] { "Value1", 70, 30 });
dtAlloys.Rows.Add(new object[] { "Value2", 15, 85 });
dtAlloys.Rows.Add(new object[] { "Value3", 50, 50 });
 
BarSeries barSer = new BarSeries();
barSer.ShowLabels = true;
barSer.CombineMode = ChartSeriesCombineMode.Stack100;
 
BarSeries barSer2 = new BarSeries();
barSer2.ShowLabels = true;
barSer2.CombineMode = ChartSeriesCombineMode.Stack100;
 
foreach (DataRow drAlloy in dtAlloys.Rows)
{
    barSer.DataPoints.Add(new CategoricalDataPoint() { Category = drAlloy["Name"], Label = string.Format("{0:N}", drAlloy["Value1"]), Value = double.Parse(drAlloy["Value1"].ToString()) });
    barSer2.DataPoints.Add(new CategoricalDataPoint() { Category = drAlloy["Name"], Label = string.Format("{0:N}", drAlloy["Value2"]), Value = double.Parse(drAlloy["Value2"].ToString()) });
    
}
 
CartesianChartDemo.Series.Clear();
CartesianChartDemo.Series.Add(barSer);
CartesianChartDemo.Series.Add(barSer2);

I am trying to use the MouseDown event to do something like show an alert with bar info or open a new window and pass it data from that bar that I am clicking.

How can I obtain the data of the bar that I am clicking?

It is ok to use that event or should I use another one?

Thanks,

Alberto



Petar Kirov
Telerik team
 answered on 16 Oct 2013
1 answer
147 views
I have byte array data in which it contains text and images.
Now i want to show that byte array into table paragraph.
I tired it with InlineImage  by converting byte array to stream but its not working

is there any option to show such a byte array containing of image and text together?

Thanx in advance
Petya
Telerik team
 answered on 15 Oct 2013
5 answers
482 views
I'm trying to implement paste functionality into my GridView, but have run into 2 issues.

First, even if the Grid is set with SelectionUnit="FullRow" SelectionMode="Single", after a paste occurs the top row where the data was pasted remains selected. I can then select another row, ending up with multiple-rows selected. Subsequent pastes start at the top-most selected row, even if it's not the most recently selected row. Therefore, in addition to a very strange display (with multiple rows selected and no apparent way to unselect them), you can never paste data into rows below where you have previously pasted data.

The second issue is that the InsertNewRows value of GridViewClipboardPasteMode no longer appears to be present, such that pasting data when not enough rows exist to accommodate truncates the paste.

For reference, the options I'm using are:

       <telerik:RadGridView Grid.Row="0"  x:Name="HistoricalGridView" AutoGenerateColumns="False" ItemsSource="{Binding Path=HistoricalData}" 
                                 IsFilteringAllowed="False" ShowGroupPanel="False" CanUserSortColumns="False" 
                              ClipboardPasteMode="OverwriteWithEmptyValues,Cells" SelectionUnit="FullRow" SelectionMode="Single" >

Thanks for your help on these.

Louis
Maya
Telerik team
 answered on 15 Oct 2013
1 answer
159 views
Hi,

I have a radTreeView defined with its context menu in resources::

<UserControl.Resources>
    <sampleData:c_treeViewData x:Key="DataSource"/>
    <Style x:Key="ItemContainerStyle" TargetType="telerik:RadTreeViewItem">
        <Setter Property="IsExpanded" Value="True"/>
    </Style>
    <DataTemplate x:Key="ItemEditTemplate">
        <Grid>
 
            <StackPanel Orientation="Horizontal">
                <TextBox Text="{Binding Name, Mode=TwoWay}"/>
            </StackPanel>
 
        </Grid>
    </DataTemplate>
     
    <DataTemplate x:Key="c_proprietyValue">
        <TextBlock Text="{Binding Name}" FontSize="14" TextWrapping="Wrap" Width="200" />
    </DataTemplate>
 
 
    <HierarchicalDataTemplate x:Key="c_proprietyType" ItemTemplate="{StaticResource c_proprietyValue}"
       ItemsSource="{Binding propretyValues}">
        <StackPanel Orientation="Horizontal">
        <Image Source="{Binding Image}" Margin=" 0,0,6,0" Height="20" Width="20" />
        <TextBlock Text="{Binding Name}" FontWeight="Bold" FontSize="14">
              <telerik:RadContextMenu.ContextMenu >
                    <telerik:RadContextMenu Name="rcm_context1" Opened="RadContextMenu_Opened">
                    <telerik:RadMenuItem Name="Delete" Header="Delete" />
                    <telerik:RadMenuItem Name="Contraer" Header="Collapse tree" />
                    <telerik:RadMenuItem Name="Expandir" Header="Expand tree" />
                </telerik:RadContextMenu>
              </telerik:RadContextMenu.ContextMenu>
             
        </TextBlock>
        </StackPanel>
    </HierarchicalDataTemplate>
 
    <HierarchicalDataTemplate x:Key="c_block" ItemTemplate="{StaticResource c_proprietyType}"
       ItemsSource="{Binding propretyTypes}" >
        <StackPanel Orientation="Horizontal">
            <Image Source="{Binding Image}" Margin=" 0,0,6,0" Height="20" Width="20" />
             
            <TextBlock Text="{Binding Name}" FontWeight="Bold" FontSize="16" HorizontalAlignment="Stretch">
             
    <telerik:RadContextMenu.ContextMenu>
        <telerik:RadContextMenu Opened="RadContextMenu_Opened">
            <telerik:RadMenuItem Name="Rename" Header="Rename" />
            <telerik:RadMenuItem Name="Delete" Header="Delete" />
            <telerik:RadMenuItem Name="Contraer" Header="Collapse tree" />
            <telerik:RadMenuItem Name="Expandir" Header="Expand tree" />
        </telerik:RadContextMenu>
    </telerik:RadContextMenu.ContextMenu>
 
            </TextBlock>
 
        </StackPanel>
    </HierarchicalDataTemplate>
 
 
 
</UserControl.Resources>


I want to access the context menu to change the headers of the items depending on the country. 
Can you help me, please? I'm using VB.NET

Thanks

Daniel
Top achievements
Rank 1
 answered on 15 Oct 2013
6 answers
268 views
Hello, I have problem with my radGridView. When I delete or add new rows, gridview scroll items to the top. But I don't need it. How can I fix it ?
Yoan
Telerik team
 answered on 15 Oct 2013
2 answers
463 views
Hello,

I am creating an application where I need to have 4 RadWindows and each window has assigned a UserControl to its content.
I was taking a look to the window examples in the WPF Demo so I took some code from there, this is how I created the windows:
RadWindow window = new RadWindow();
        RadWindow window2 = new RadWindow();
        RadWindow window3 = new RadWindow();
        RadWindow window4 = new RadWindow();
 
        public MainWindow()
        {
            InitializeComponent();
 
            window.Header = "Window1";
            window.Owner = Application.Current.MainWindow;
            window.CanClose = false;
 
            window2.Header = "Window2";
            window2.Owner = Application.Current.MainWindow;
            window2.CanClose = false;
 
            window3.Header = "Window3";
            window3.Owner = Application.Current.MainWindow;
            window3.CanClose = false;
 
            window4.Header = "Window4";
            window4.Owner = Application.Current.MainWindow;
            window4.CanClose = false;
                         
            this.Loaded += OnExampleLoaded;
            this.Unloaded += OnExampleUnloaded;
 
        }


void OnExampleUnloaded(object sender, RoutedEventArgs e)
        {
            window.Close();
            window2.Close();
            window3.Close();
            window4.Close();
        }
 
        void OnExampleLoaded(object sender, RoutedEventArgs e)
        {
            double dblHeight = (this.ActualHeight / 2) - 15;
            double dblWidth = (this.ActualWidth / 2) - 20;
 
            window.Height = dblHeight;
            window.Width = dblWidth;
 
            window2.Height = dblHeight;
            window2.Width = dblWidth;
 
            window3.Height = dblHeight;
            window3.Width = dblWidth;
 
            window4.Height = dblHeight;
            window4.Width = dblWidth;
 
            window.Left = 10;
            window.Top = 34;
 
            window2.Left = dblWidth + 20;
            window2.Top = 34;
 
            window3.Left = 10;
            window3.Top = dblHeight + 44;
 
            window4.Left = dblWidth + 20;
            window4.Top = dblHeight + 44;
 
            window2.Content = new MyControl();
 
            window.Show();
            window2.Show();
            window3.Show();
            window4.Show();
        }

And the first attached image is how this look.

MyControl has 3 charts and a label:

<UserControl
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="ScoreBoard.MyControl"
             mc:Ignorable="d" Height="358.566" Width="391.232">
    <Grid Margin="0,10,10,10">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="132*"/>
            <RowDefinition Height="133*"/>
            <RowDefinition Height="27*"/>
        </Grid.RowDefinitions>
 
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
 
               
        <telerik:Label Content="Times" Margin="10,9,10,10" FontSize="36" FontWeight="Bold" HorizontalContentAlignment="Center" Grid.ColumnSpan="2"/>
 
        <telerik:RadCartesianChart x:Name="chartTimes1" Margin="10" Grid.Row="1" FontSize="11" FontWeight="Normal" >
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior PanMode="Both" ZoomMode="Both"/>
            </telerik:RadCartesianChart.Behaviors>
        </telerik:RadCartesianChart>
 
        <telerik:RadCartesianChart x:Name="chartTimes2" Margin="10" Grid.Row="2" FontSize="11" FontWeight="Normal" Grid.RowSpan="2" >
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior PanMode="Both" ZoomMode="Both"/>
            </telerik:RadCartesianChart.Behaviors>
        </telerik:RadCartesianChart>
        <telerik:RadCartesianChart Grid.Column="1" Margin="10" Grid.Row="1">
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:CategoricalAxis/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis/>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:BarSeries>
                <telerik:BarSeries.DataPoints>
                    <telerik:CategoricalDataPoint Category="{x:Null}" IsSelected="False" Label="10" Value="10"/>
                    <telerik:CategoricalDataPoint Category="{x:Null}" IsSelected="False" Label="20" Value="20"/>
                    <telerik:CategoricalDataPoint Category="{x:Null}" IsSelected="False" Label="30" Value="30"/>
                </telerik:BarSeries.DataPoints>
            </telerik:BarSeries>
        </telerik:RadCartesianChart>
 
    </Grid>
</UserControl>

In the design of MyControl I change the size of the control and the charts changes its size whether I make it smaller or larger, as you can see in the image MyControl.

But when I assign MyControl to the window content and I change the size of the window, the control appears to be fixed in the center but It doesn't change its size.

Do I need to configure or assign MyControl in a different way?

Regards,

Alberto


Alberto
Top achievements
Rank 1
 answered on 15 Oct 2013
6 answers
209 views
Hello,

I am using a RadBook in kombination with the RadDataPager in my application. I added 55 pages from Word (.png) statically, like this:

        <telerik:RadDataPager x:Name="radDataPager1" Source="{Binding PagedItems, ElementName=book1}" Margin="-1000,585,168,0" VerticalAlignment="Top" Width="1464" HorizontalAlignment="Right" Grid.Column="1"  Grid.ColumnSpan="2" DisplayMode="All"  />
        <telerik:RadBook x:Name="book1" HardPages="None" FoldSize="300,150" Margin="-1000,142.5,168,0" RightPageIndex="55" Grid.ColumnSpan="2" HorizontalAlignment="Right" Width="1464" d:LayoutOverrides="GridBox" Height="443" VerticalAlignment="Top" Grid.Column="1">
            <telerik:RadBookItem>
                <Image Source="/FuelOPTBA20;component/Images/1.png"></Image>
            </telerik:RadBookItem>
            <telerik:RadBookItem>
                <Image Source="/FuelOPTBA20;component/Images/2.png"></Image>
            </telerik:RadBookItem>
            <telerik:RadBookItem>
                <Image Source="/FuelOPTBA20;component/Images/3.png"></Image>
            </telerik:RadBookItem>
                            .
                            .
                            .

                            .

            <telerik:RadBookItem>
                <Image Source="/FuelOPTBA20;component/Images/53.png"></Image>
            </telerik:RadBookItem>
            <telerik:RadBookItem>
                <Image Source="/FuelOPTBA20;component/Images/54.png"></Image>
            </telerik:RadBookItem>
            <telerik:RadBookItem>
                <Image Source="/FuelOPTBA20;component/Images/55.png"></Image>
            </telerik:RadBookItem>
        </telerik:RadBook>



when I start the application and press the << or >> button of the DataPager the program throws an null pointer exception:

System.NullReferenceException wurde nicht behandelt.
  HResult=-2147467261
  Message=Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
  Source=Telerik.Windows.Controls.Navigation
  StackTrace:
       bei Telerik.Windows.Controls.RadBook.OnCurrentSheetIndexChanged(Int32 newValue, Int32 oldValue) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Book\RadBook.cs:Zeile 1302.
       bei Telerik.Windows.Controls.RadBook.set_CurrentSheetIndex(Int32 value) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Book\RadBook.cs:Zeile 528.
       bei Telerik.Windows.Controls.RadBook.OnRightPageIndexChanged(Int32 rightPageIndex) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Book\RadBook.cs:Zeile 2274.
       bei Telerik.Windows.Controls.RadBook.OnRightPageIndexPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Book\RadBook.cs:Zeile 1195.
       bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       bei System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       bei System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       bei Telerik.Windows.Controls.RadBook.set_RightPageIndex(Int32 value) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Book\RadBook.cs:Zeile 353.
       bei Telerik.Windows.Controls.RadBook.NavigateToPage(PageToNavigateTo pageToNavigateTo) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Book\RadBook.cs:Zeile 2240.
       bei Telerik.Windows.Controls.RadBook.FirstPage() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Book\RadBook.cs:Zeile 616.
       bei Telerik.Windows.Controls.Book.BookPagedCollectionView.MoveToFirstPage() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Book\BookPagedCollectionView.cs:Zeile 143.
       bei Telerik.Windows.Controls.Data.DataPager.DataPagerViewModel.MoveToFirstPage() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataPager\DataPagerViewModel.cs:Zeile 183.
       bei Telerik.Windows.Controls.RadDataPager.<>c__DisplayClass1.<MoveToPage>b__0(Int32 i) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:Zeile 940.
       bei Telerik.Windows.Controls.RadDataPager.MoveToPage(Int32 pageIndex, Func`2 pageMoveOperation) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:Zeile 972.
       bei Telerik.Windows.Controls.RadDataPager.MoveToPage(Int32 pageIndex, Func`1 pageMoveOperation) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:Zeile 940.
       bei Telerik.Windows.Controls.RadDataPager.MoveToFirstPage() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataPager\RadDataPager.cs:Zeile 841.
       bei Telerik.Windows.Controls.RadDataPager.OnMoveToFirstPage(Object sender, ExecutedRoutedEventArgs e) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataPager\RadDataPager.Commands.cs:Zeile 52.
       bei System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
       bei System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
       bei System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
       bei System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
       bei System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
       bei System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
       bei System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
       bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       bei System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
       bei System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
       bei MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
       bei System.Windows.Controls.Primitives.ButtonBase.OnClick()
       bei System.Windows.Controls.Button.OnClick()
       bei Telerik.Windows.Controls.RadButton.OnClick() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Buttons\RadButton.cs:Zeile 398.
       bei System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       bei System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
       bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       bei System.Windows.Input.InputManager.ProcessStagingArea()
       bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       bei System.Windows.Threading.Dispatcher.Run()
       bei System.Windows.Application.RunDispatcher(Object ignore)
       bei System.Windows.Application.RunInternal(Window window)
       bei System.Windows.Application.Run(Window window)
       bei System.Windows.Application.Run()
       bei FuelOPTBA20.App.Main() in c:\Projects\GIT\FuelOPTBA20\FuelOPTBA20\obj\x86\Debug\App.g.cs:Zeile 0.
       bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       bei System.Threading.ThreadHelper.ThreadStart()
  InnerException: 


when I went step by step throw the pages (from end to beginning) it works, after this I can properly press the << and >> button. This works reliably traceable.

Greetings Uwe







Yoan
Telerik team
 answered on 15 Oct 2013
1 answer
83 views
Hi, 

The DataPager does not show up at the end of the GridView.

WPF Trial Project.

Here is my code :

    <Grid >
        
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        
        <controls:RadGridView  
                      Name="radGridView1" controls3:StyleManager.Theme="Windows8Touch" ColumnWidth="*" AutoGenerateColumns="False">
            <controls:RadGridView.Columns>
                <controls:GridViewDataColumn DataMemberBinding="{Binding Type}"  Header="Type" >
                    <controls:GridViewDataColumn.AggregateFunctions>
                        <data:CountFunction Caption="Total # of records: " />
                    </controls:GridViewDataColumn.AggregateFunctions>
                </controls:GridViewDataColumn>
                <controls:GridViewDataColumn DataMemberBinding="{Binding NumDossier}" Header="Numéro de dossier" />
                <controls:GridViewDataColumn DataMemberBinding="{Binding NomCommune}" Header="Nom commune" />
                <controls:GridViewDataColumn DataMemberBinding="{Binding Ref}"  Header="Ref" />
            </controls:RadGridView.Columns>
        </controls:RadGridView>

        <telerik:RadDataPager 
                                Name="xRadDataPager" 
                                Source="{Binding Items, ElementName=radGridView1}" 
                                PageSize="5" />
    </Grid>

Any suggestion?
Regards,
Maya
Telerik team
 answered on 15 Oct 2013
4 answers
267 views
Hi,

I have downloaded the demo project in order to test it. Unifortunatly I cannot add a reference to the library :
  • Telerik.Windows.Data.dll
Also, I cannot use the datapager :

            <telerik:RadDataPager Name="xRadDataPager" Source="{Binding Items, ElementName=radGridView1}" PageSize="5" />
               
Any help please?

I'm working with the WPF demo project - VisualStudio 2012.

Regards,
Alice
Top achievements
Rank 1
 answered on 15 Oct 2013
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?