Telerik Forums
UI for WPF Forum
4 answers
127 views
Hello,

I am getting below exception can any one help me on this.its a bit urgent

STACK-TRACE
   at System.Windows.Rect.set_Width(Double value)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MakeVisible(Visual visual, Rect rectangle)
   at System.Windows.Controls.ScrollViewer.ExecuteNextCommand()
   at System.Windows.Controls.ScrollViewer.OnLayoutUpdated(Object sender, EventArgs e)
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
INNER EXCEPTION
Width must be non-negative.
STACK-TRACE
   at System.Windows.Rect.set_Width(Double value)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MakeVisible(Visual visual, Rect rectangle)
   at System.Windows.Controls.ScrollViewer.ExecuteNextCommand()
   at System.Windows.Controls.ScrollViewer.OnLayoutUpdated(Object sender, EventArgs e)
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
*****************END******************
Arpit
Top achievements
Rank 1
 answered on 23 Jun 2011
1 answer
169 views
I'm trying to show only the major ticks and hide all the minor ticks between them, I have set the following properties in my xaml file:
On the AxisX, I set AutoRange="False", MinorTicksVisibility="Hidden", yet all the minor ticks are still showing up. Suggestions?

<chart:ChartArea Grid.Row="1" x:Name="mainChartArea" LegendName="legend">
    <chart:ChartArea.AxisX >
        <chart:AxisX MajorGridLinesVisibility="Collapsed" IsDateTime="True"  DefaultLabelFormat = "dd-MMM"
        Title="Date" MinorTickPointMultiplier="0" AutoRange="False" MajorTicksVisibility="Visible"
        AxisLabelsVisibility="Visible" MinorTicksVisibility="Hidden" />
    </chart:ChartArea.AxisX>
</chart:ChartArea
Yavor
Telerik team
 answered on 23 Jun 2011
1 answer
535 views
How I can show 24 hour in RadTimePicker? Thanks!
Dani
Telerik team
 answered on 23 Jun 2011
1 answer
80 views
Hello.

I have a Test UC within a simple WPF-Grid an for test a Telerik RadGridView.When i added a new item, in the WPF-Grid, the Item is there, but in the Telerik Grid is after that empty. It shows new rows, but they are still empty (nothing is displayed.)

My Text xaml:
<UserControl x:Class="KfzOrtung6.Modells.UserControl1"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignHeight="498" d:DesignWidth="924"
             xmlns:my="clr-namespace:KfzOrtung6DataClasses.Modells;assembly=KfzOrtung6DataClasses"
             Loaded="UserControl_Loaded"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
     
    <UserControl.Resources>
        <CollectionViewSource x:Key="fahrzeugeViewSource" d:DesignSource="{d:DesignInstance my:Fahrzeuge, CreateList=True}" />
    </UserControl.Resources>
     
    <Grid DataContext="{StaticResource fahrzeugeViewSource}">
        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="88" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="32,28,0,0" Name="fahrzeugeDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" VerticalAlignment="Top" Width="654">
            <DataGrid.Columns>
                <DataGridTemplateColumn x:Name="ablaufsimkarteColumn" Header="Ablaufsimkarte" Width="SizeToHeader">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <DatePicker SelectedDate="{Binding Path=Ablaufsimkarte, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTextColumn x:Name="aktivColumn" Binding="{Binding Path=Aktiv}" Header="Aktiv" Width="SizeToHeader" />
                <DataGridTextColumn x:Name="bemerkungColumn" Binding="{Binding Path=Bemerkung}" Header="Bemerkung" Width="SizeToHeader" />
                <DataGridTextColumn x:Name="iDColumn" Binding="{Binding Path=ID}" Header="ID" Width="SizeToHeader" />
                <DataGridTextColumn x:Name="kennzeichenColumn" Binding="{Binding Path=Kennzeichen}" Header="Kennzeichen" Width="SizeToHeader" />
                <DataGridTemplateColumn x:Name="nameColumn" Header="Name" Width="SizeToHeader">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <ComboBox>
                                <ComboBoxItem Content="{Binding Path=Name}" />
                            </ComboBox>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTextColumn x:Name="rufnummerColumn" Binding="{Binding Path=Rufnummer}" Header="Rufnummer" Width="SizeToHeader" />
            </DataGrid.Columns>
        </DataGrid>
 
        <telerik:RadGridView x:Name="mygrid" Margin="32,136,0,35"
                             ItemsSource="{Binding}" HorizontalAlignment="Left" Width="654">
             
        </telerik:RadGridView>
         
        <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="795,162,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
    </Grid>
</UserControl>

My cs:
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
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 KfzOrtung6DataClasses.Modells;
 
namespace KfzOrtung6.Modells
{
    /// <summary>
    /// Interaktionslogik für UserControl1.xaml
    /// </summary>
    public partial class UserControl1 : UserControl
    {
 
        KfzContext6 kt = new KfzContext6();
        public UserControl1()
        {
            InitializeComponent();
        }
 
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            kt.MFahrzeuge.Load();
            var cc = kt.MFahrzeuge.Local;
 
            // Laden Sie Ihre Daten nicht zur Entwurfszeit.
            //if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
            //{
            //  //Laden Sie hier Ihre Daten, und weisen Sie das Ergebnis der CollectionViewSource zu.
            CollectionViewSource myCollectionViewSource = (CollectionViewSource)this.Resources["fahrzeugeViewSource"];
                myCollectionViewSource.Source = cc;
            //}
        }
 
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            Fahrzeuge fz = new Fahrzeuge
            {
                ID = Guid.NewGuid(),
                Name = "LKW Test 2",
                Kennzeichen = "Sad-Br-505",
                Ablaufsimkarte = new DateTime(2000, 1, 1),
                Rufnummer = "",
                Aktiv = 1
            };
            kt.MFahrzeuge.Add(fz);
            kt.SaveChanges();
 
            mygrid.Items.Refresh();
        }
    }
}


Please can you help?

Reinhard




Maya
Telerik team
 answered on 22 Jun 2011
1 answer
398 views
i have the following tree:
----------------------------------
a
   1
   2
b
c
   1
   2
-------------------------------
is it possible to disable parent a and NOT disable child 1 and child 2?
because isEnabled property disable a,1,2 altogether?

is it possible to disable selection of parent a
(and not affect children selection)?

thank you!
Rachel
Petar Mladenov
Telerik team
 answered on 22 Jun 2011
3 answers
147 views
Hello,
I was wondering if there was any plans to have full parity between WPF and Silverlight for Telerik components as i'm currently writing a WPF LoB application that requires file upload and am about to roll my own. Should i go all the way with polish or is there something coming from telerik about this and should i do a bare minimum expecting to replace my component with it?
Thanks.
Petar Mladenov
Telerik team
 answered on 22 Jun 2011
0 answers
119 views
Hello,

i am using a RadGridview with sample data in a combobox popup.

<Popup x:Name="PART_Popup" Margin="0,1,0,0">
    <Border BorderBrush="#FF595959" BorderThickness="1" Background="#FF3D3D3D"
         MaxHeight="{TemplateBinding MaxDropDownHeight}"
         MinWidth="{TemplateBinding MinDropDownWidth}">
         <telerik:RadGridView x:Name="RadGridView1"
              ShowGroupPanel="False" CanUserFreezeColumns="False"
              RowIndicatorVisibility="Collapsed" IsReadOnly="True"
              IsFilteringAllowed="True" ItemsSource="{Binding Dokumente}"
              MaxWidth="500" MaxHeight="400"
              SelectedItem="{Binding SelectedItem, Mode=TwoWay}">
         </telerik:RadGridView>
    </Border>
</Popup>

The ItemSource of my RadGridView is a sample data element which fills the RadGridView with data. RadGridViewInComboBox

My problem is, that i can not bind the value of an selected Cell/Row to the ComboBox text.

In the example from Vladimir Enchev, the binding works, but the data of the GridView is not from sample data.
http://blogs.telerik.com/vladimirenchev/posts/10-04-09/how_to_filter_as_you_type_radgridview_inside_radcombobox_for_wpf_and_silverlight.aspx

Can you give me a solution for my Problem?

Greetings Michael
Michael
Top achievements
Rank 1
 asked on 22 Jun 2011
1 answer
99 views
Hi Telerik Team,

       It would be very grateful if you could you please share a demo project for exporting of a hierarchical grid having levels greater than 2. Exporting it to an excel.

    

Thanks,
Regards,
Mausami




Mausami
Top achievements
Rank 1
 answered on 22 Jun 2011
3 answers
164 views
Hello,

I have a very common problem that I have seen referred to multiple times in this forum.

My RadComboBox (Q1 2011) has several thousand items in it, and opening the dropdown is very sluggish and sometimes unusable. Using the VirtualizedStackPanel allows the dropdown to run blazing-fast, but of course I lose the ability to filter (as documented and mentioned in other forum posts).

The problem is that it is absolutely crucial that I'm able to perform filtering and have the speed provided by the VirtualizedStackPanel. All forum replies are unclear as to whether you plan on supporting this in the future. In the meantime, I was hoping that you could point me to a reasonable solution.

I did find a solution deep in your documentation that went so far as to use some kind of Google search provider, but the implementation was very involved.

Is there a simple way to mimick filtering behavior with a VirtualizedStackPanel? I'm open to just about anything at this point.

Thanks for your time,
Jon
Konstantina
Telerik team
 answered on 22 Jun 2011
3 answers
159 views

Hello

I add MouseButtonEventHandler to the grid

But in need to remove it from specific column

How can I do this?

Best regards

Ehud

Ivan Ivanov
Telerik team
 answered on 22 Jun 2011
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)
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
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?