Telerik Forums
UI for WPF Forum
5 answers
186 views
Hi..
When I launch my app on a user's machine I get the following error, in the event viewer

EventType clr20r3, P1 crm2k9.exe, P2 1.0.0.0, P3 4956a899, P4 presentationframework, P5 3.0.0.0, P6 488f142e, P7 6259, P8 e1, P9 system.windows.markup.xamlparse, P10 NIL.

Any ideas.. My XAML is ok, I have all the DLLs installed.
thanks in advance
Konstantin Petkov
Telerik team
 answered on 31 Dec 2008
2 answers
210 views

Hello ,

I have a problem about the method FindCarouselPanel().
Here is the code i wrote:

 

 

 

<Style x:Key="RadCarouselStyle1" TargetType="{x:Type telerik:RadCarousel}">  
            <Style.BasedOn> 
                <Style TargetType="{x:Type telerik:RadCarousel}">  
                    <Setter Property="Template">  
                        <Setter.Value> 
                            <ControlTemplate TargetType="{x:Type telerik:RadCarousel}">  
                                <Grid> 
                                    <Grid.ColumnDefinitions> 
                                        <ColumnDefinition Width="50*" /> 
                                        <ColumnDefinition Width="50*" /> 
                                    </Grid.ColumnDefinitions> 
 
                                    <Button x:Name="EnSolItem" HorizontalAlignment="Right" VerticalAlignment="Bottom" Grid.Column="0" Width="40" Height="40" Margin="0,0,40,0" Content="EnSol" /> 
                                    <Button x:Name="SolItem" HorizontalAlignment="Right" VerticalAlignment="Bottom" Grid.Column="0" Width="40" Height="40" Content="Sol" /> 
 
                                    <Button x:Name="SagItem" HorizontalAlignment="Left" VerticalAlignment="Bottom" Grid.Column="1" Width="40" Height="40" Content="SaÄŸ" /> 
                                    <Button x:Name="EnSagItem" HorizontalAlignment="Left" VerticalAlignment="Bottom" Grid.Column="1" Width="40" Height="40" Margin="40,0,0,0"  Content="EnSaÄŸ" /> 
 
                                    <Border Grid.ColumnSpan="2"  Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" 
                                    BorderThickness="{TemplateBinding BorderThickness}">  
 
                                        <telerik:CarouselItemsControl x:Name="PART_RootItemsControl"  Grid.ColumnSpan="2"/>  
                                    </Border> 
                                </Grid> 
                            </ControlTemplate> 
                        </Setter.Value> 
                    </Setter> 
                    <Setter Property="ClipToBounds" Value="True"/>  
                </Style> 
            </Style.BasedOn> 
        </Style> 

this is the template i'm using,

 

 

 

<telerik:RadCarousel x:Name="radCarousel"  Style="{DynamicResource RadCarouselStyle1}"/>

In my code Behind, I have an event handler and a function to give the path and etc.

 

void radCarousel_Loaded(object sender, RoutedEventArgs e)  
        {  
            Telerik.Windows.Controls.RadCarouselPanel panel = this.radCarousel.FindCarouselPanel();  
            this.radCarousel.ReflectionSettings.Visibility = Visibility.Visible;  
            this.radCarousel.ReflectionSettings.OffsetX = 0;  
            this.radCarousel.ReflectionSettings.OffsetY = 5;  
            this.radCarousel.ReflectionSettings.HiddenPercentage = 0;  
            this.radCarousel.ReflectionSettings.Opacity = 0.5;  
            this.radCarousel.ReflectionSettings.HeightOffset = 0;  
            this.radCarousel.ReflectionSettings.WidthOffset = 0;  
            this.radCarousel.ReflectionSettings.Angle = 0;  
 
            System.Windows.Shapes.Path path = CreateLinePath();  
 
            if (panel != null)  
            {  
                this.radCarousel.FindCarouselPanel().Path = path;  
                this.radCarousel.FindCarouselPanel().ItemsPerPage = 7;  
            }  
        }  
 
        private System.Windows.Shapes.Path CreateLinePath()  
        {  
            System.Windows.Shapes.Path newPath = new System.Windows.Shapes.Path();  
            PathFigureCollectionConverter figureConverter = new PathFigureCollectionConverter();  
            object geometryFigures = figureConverter.ConvertFromString("M30,200 L307.5,200");  
            PathGeometry newGeometry = new PathGeometry();  
            newPath.Stretch = Stretch.Fill;  
            BrushConverter brushConverter = new BrushConverter();  
            newPath.Stroke = (System.Windows.Media.Brush)brushConverter.ConvertFromString("#FF0998f8");  
            newPath.StrokeThickness = 2;  
            newGeometry.Figures = (PathFigureCollection)geometryFigures;  
            newPath.Data = (Geometry)newGeometry;  
            return newPath;  
        } 

 

 


While i'm setting the 

 

 

 

this.radCarousel.FindCarouselPanel().Path = path;

 

 

 

this.radCarousel.FindCarouselPanel().ItemsPerPage = 7;
part, FindCarouselPanel() returns null. Yesterday it was working. I didn't changed anything except the Style of radCarousel. Should i be implementing the RadCarouselPanel to style as well?
Please help.

 

 

 

 

 

Hristo Deshev
Telerik team
 answered on 30 Dec 2008
1 answer
2.1K+ views
HI there!
Anyone knows how to remove ( at least hide )  the grouping bar that appears above the radgridview component ?You know, that bar wich says "Drag a column header and drop here ...blah blah blah" . I cannot find a suitable property or method to do that ...

Please help,
Ivan Frias
Hristo Deshev
Telerik team
 answered on 29 Dec 2008
1 answer
124 views
Does the WPF version of GridView support exporting to Excel?
Hristo Deshev
Telerik team
 answered on 29 Dec 2008
3 answers
170 views
Hi,

I'v taken a look at the progressbar - since I guesd it cood be used as a gauge control in an app I develeope.

By testing it at the samples I found your numeric updown there.
And since it did some "strange" things I went to the numeric up down sample.
At his moment I was hopeing you simply made a miste at the progressbar sample.

So my first exipriences I'm "keyboard oriented" - so i would never click 50 time on an up button to change a value of 20 to 70 :)

First thing - I can't focus the things via TAB - not that problem.

I focus it with the mouse - results very different.
Sometime it marks the whole numer - sometimes not.
Doubleclick does not (as expected) mark the whole field - it stops at the comma seperator.

Anyhow - I can mark it all - draging with the mouse.

Now I expect - everything marked - I type and this will replace the text :)
So I marked the "beta" value (1,14) and type 300.
I get??? YES 0 nothing else.
OK - some hack with focus and so goes on - I go in front of the 0 in the texfield and type 3 --- YES it is there.
Since the 0 is still in the field I see no 30 with the cursor between 3 and 0.
What is missing to get 300? A zero - so type it - the result?
0 - not this time NOT - I get 100 - the 0 goes in and the 3 changes to 1.

YES I found out why - the control is limited to 100.
OK - mark the 100 again (draging the mouse).
Type 99 - and get? 9 - type another 9 and get 99.
Mark all type 12 -- get 2....

OK - I take the value Shares.
I mark all type 321 and get 21 :)
I move the cursor to the front type 3 and get 321.
Ups I like 421 I move the cursor between 4 and 21 hit backspace than 4 and get?
Right - 214 - because hitting the backspace removes the 3 (as it should) and than moves the cursor back to the end of the number (not expected).

I'll stop now - I guess you can play for hours with that thing; alwas getting a funny result.
But you can't use such a thing in a production environment.

Starting from the fact that a marked number is NOT replaced by what you type and ending in setting the value to MAX if you type to much.

Expect you give 1.000.000 as max.
The user types (from a form) 3469738 and than (by mistake) another 0.
He gets? 1000000 -- all the number he did type are gone.

Do this in a normal control - you get Uuuuups a number to big - or it does not accept the last digit since the value is to large.
But forcing the user to retype complex numbers....

Was this control tested only by mouse?
Or did anyone put it on a from - navigate via TAB and enter numbers?
If so - why did nobody see that it "eats" the first number you enter?

Sorry for my anger - but a simple unit test on an input control should include a "replace by entering numbers".
And not doing such a simple test is not a sign of quality!


Regards

Manfred
Hristo Borisov
Telerik team
 answered on 29 Dec 2008
1 answer
290 views
Hi..
How can change the Time Monitor Tool example to display the current time?
thanks again
Andrey
Telerik team
 answered on 29 Dec 2008
1 answer
130 views
Hi..
Doe the TreeView support node images like the Telerik.WinControls.UI.RadTreeView ?
thanks in advance
Konstantin Petkov
Telerik team
 answered on 29 Dec 2008
8 answers
259 views
How set content height in RadPanelBarItem 100%? That after item closed, content stretch at the height of the window!
I want get design like Outlook panel.

Thanks.

PS: Sorry for my English )
Konstantin Petkov
Telerik team
 answered on 26 Dec 2008
2 answers
461 views

I am creating a date picker in my code and want to change its background whenever its value is not valid(specified by IsValidFieldValue flag), but its not working .

Here is my code for creating the control and style :

// Binding to be set for control 
Binding binding = new Binding("Value"); 
binding.Mode = BindingMode.TwoWay; 
binding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged; 
 
string datePickerXamlTemplate = "<telerik:RadDatePicker x:Name=\"uxDatePickerCustomField{0}\" Grid.Row=\"1\" Grid.Column=\"1\" Height=\"24\" HorizontalAlignment=\"Left\" Margin=\"8,5,8,5\" Width=\"125\" xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:telerik=\"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" />"; 
string datePickerXaml = string.Format(datePickerXamlTemplate, field.Id, count); 
stream = new MemoryStream(ASCIIEncoding.Default.GetBytes(datePickerXaml)); 
RadDatePicker datePicker = (RadDatePicker)System.Windows.Markup.XamlReader.Load(stream); 
datePicker.SetBinding(RadDatePicker.SelectedDateProperty, binding); 
datePicker.Style = (Style)FindResource("DatePickerStyle"); 
datePicker.DataContext = field; // Object having properties - Value and IsValidFieldValue. Implements INotifyPropertyChanged
uxGrid.Children.Add(datePicker); // Added to a Grid  
 


    <UserControl.Resources> 
        <Style TargetType="{x:Type telerikInput:RadDatePicker}" x:Key="DatePickerStyle"> 
            <Style.Triggers> 
                <DataTrigger Binding="{Binding Path=IsValidFieldValue, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Value="false"> 
                    <Setter Property="telerikInput:RadDatePicker.Background" Value="#FFFFB9B9" /> 
                </DataTrigger> 
            </Style.Triggers> 
        </Style>       
    </UserControl.Resources> 

akjoshi
Top achievements
Rank 1
 answered on 24 Dec 2008
3 answers
166 views
I have a bug when I set the width of a column to * (i.e. take up all remaining space). This works fine if I populate the DataContext before I view the grid (e.g. in the constructor of WPF page) but fails when I populate the DataContext after the grid has been created and laid out (e.g. User choose an item to display in the grid at runtime).

Here is the code need to recreate the problem.

public class DummyObject 
    { 
 
        public DummyObject(string name, string notes) 
        { 
            Name = name; 
            Notes = notes; 
        } 
 
        public string Name 
        { 
            get; 
            set; 
        } 
 
        public string Notes 
        { 
            get; 
            set; 
        } 
    } 
Class or storing some data

public partial class Window1 : Window 
    { 
        public Window1() 
        { 
            InitializeComponent(); 
 
            //This works fine 
            //PopulateGrid(); 
        } 
 
        private void Populate_Click(object sender, RoutedEventArgs e) 
        { 
            //This will throw an exception 
            PopulateGrid(); 
        } 
 
        private void PopulateGrid() 
        {             
            List<DummyObject> myObjects = new List<DummyObject>() 
            { 
                new DummyObject("Justin", "Here is a note"), 
                new DummyObject("Paul", "Paul has a note too"), 
                new DummyObject("Sam", "Sam has a note that is much longer than the other notes"), 
                new DummyObject("Dean", "Nothing to see here"), 
                new DummyObject("Andrew", "Blah blah blah blah") 
            }; 
 
            mainGrid.DataContext = myObjects; 
        } 
    } 
Code behind of Window class

<Window x:Class="TeleirkDatagridBug.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="300" Width="300"> 
    <DockPanel> 
        <StackPanel DockPanel.Dock="Top"> 
            <Button Content="Populate" Click="Populate_Click"/> 
        </StackPanel> 
        <telerik:RadGridView AutoGenerateColumns="False" x:Name="mainGrid" ItemsSource="{Binding}"> 
            <telerik:RadGridView.Columns> 
                <telerik:GridViewDataColumn Width="100" HeaderText="Name" UniqueName="Name"/> 
                <telerik:GridViewDataColumn Width="*" HeaderText="Notes" UniqueName="Notes"/> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 
    </DockPanel> 
</Window> 
XAML for window

Hope you can help.

Regards

Justin
Hristo Deshev
Telerik team
 answered on 23 Dec 2008
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
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?