Telerik Forums
UI for WPF Forum
1 answer
131 views

I have seen several threads about this topic and all of them end with a reference to

http://blogs.telerik.com/vladimirenchev/posts/09-04-03/how_to_save_and_load_settings_with_radgridview_for_wpf.aspx

Unfortunately it is out of date, because it doesn’t work with the last Telerik release libraries version 2009.2.813.35. I have tried to fix but I can’t makes it works and serialize to save it. I feel like inventing the wheel!

 

Could someone from Telerik update it?

Vlad
Telerik team
 answered on 07 Oct 2009
1 answer
107 views
Hi,

I got this un-handled exception in tree control, even though I had try catch block in the code"
any idea on this what would be the reason?
One more thing its referring to a path which does not exists on my machine?
c:\Builds\WPF_Scrum\Navigation_WPF_2009_Q1_SP2\Sources\Development\Controls\Navigation\TreeView\RadTreeViewItem.Events.cs

Exception: Object reference not set to an instance of an object.
Stack Trace:    at Telerik.Windows.Controls.RadTreeViewItem.HandleSingleClickFunctionality() in c:\Builds\WPF_Scrum\Navigation_WPF_2009_Q1_SP2\Sources\Development\Controls\Navigation\TreeView\RadTreeViewItem.Events.cs:line 816
   at Telerik.Windows.Controls.RadTreeViewItem.OnHeaderMouseLeftButtonUp(Object sender, MouseEventArgs e) in c:\Builds\WPF_Scrum\Navigation_WPF_2009_Q1_SP2\Sources\Development\Controls\Navigation\TreeView\RadTreeViewItem.Events.cs:line 811
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
Exception Source: Telerik.Windows.Controls.Navigation

Thanks,
Bala

Bobi
Telerik team
 answered on 07 Oct 2009
1 answer
131 views
Hi,

I'm using WPF controls version 2009.2.904.35.
I need to make the RadGridView to validate cell value, make the background red and show a tooltip when the cell value is not correct. I tried using CellValidating event, modifying e.Cell.Background and setting tooltip using .NET SetTooltip utility function, but it works only for FIRST time. the rest of the modifications to the cell does not trigger the grid to be refreshed.

Can you please send me a common example which validates the cells in the beginning when loading the data, and further when cell values are updated.

Thanks a lot,
Ruben.
Nedyalko Nikolov
Telerik team
 answered on 07 Oct 2009
1 answer
103 views
Hi All,

I'd appreciate if someone can explain how to add a header row to a radgridview programmatically or via the XAML.

Attached is the result that I want to get.

Thanks,

Yaron.
Vlad
Telerik team
 answered on 07 Oct 2009
1 answer
75 views
hello

I have a recurrent problem with the WPF component online demo.

When playing with, I very oftent get the famous Windows Blue screen.
I don't have the issue with the VS version of the demo

Is there any known issue?

thanks
Milan
Telerik team
 answered on 07 Oct 2009
1 answer
286 views
Hi,

I have a categorical 2D bar chart where I would like the bars to be a specific width (about 20) or at least minwidth 20 for the bars. Then I want the chart so expand it's width in case there are a lot of bars or categories. Basically take the space it needs.

Right now it seems like even if I don't set a width or only a min width the chart tries to cramp everything together instead of just expanding its width.

So the question is, how do i do that?

This is my current template:
<ControlTemplate TargetType="telerik:Bar"
   <Canvas> 
      <Rectangle x:Name="PART_DefiningGeometry" 
                 Height="{TemplateBinding ItemActualHeight}" 
                 RadiusX="2" 
                 RadiusY="2" 
                 Stroke="Transparent" 
                 StrokeThickness="1" 
                 MinWidth="20" 
                 Style="{TemplateBinding ItemStyle}" /> 
   </Canvas> 
</ControlTemplate> 

I attached a image that shows how it looks at the moment.
Vladimir Milev
Telerik team
 answered on 07 Oct 2009
1 answer
108 views
Take the FirstLook example of the TileView.

Remove the height/width attributes and set Margin to 0, effectively making the height and width dynamic.
(To test you'll also need to set the LayoutRoot's margin to 0)

Run that, and the images are suddenly out of control, and the performance seems to plummet.
Tihomir Petkov
Telerik team
 answered on 07 Oct 2009
1 answer
139 views

HI,

Just wondering if there is a way to change the weekday view by letting a week starting from Wednesday and ending on Tuesday.

Thanks,

Kevin

Valeri Hristov
Telerik team
 answered on 06 Oct 2009
2 answers
244 views
hello, i am using  gridview with mvvm pattern and binding
i use columns like this to build my grid:

<telerik:GridViewColumn IsSortable="False" HeaderText="Amount"
                        <telerik:GridViewColumn.CellStyle> 
                            <Style TargetType="telerik:GridViewCell"
                                <Setter Property="Template"
                                    <Setter.Value> 
                                        <ControlTemplate TargetType="telerik:GridViewCell"
                                            <StackPanel> 
                                                <TextBox PreviewKeyDown="TextBox_PreviewKeyDown" HorizontalAlignment="Stretch" 
                                                         Margin="3" VerticalAlignment="Center" 
                                                         Text="{Binding Path=Amount, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></TextBox> 
                                            </StackPanel> 
                                        </ControlTemplate> 
                                    </Setter.Value> 
                                </Setter> 
                            </Style> 
                        </telerik:GridViewColumn.CellStyle> 
                    </telerik:GridViewColumn> 


the problem is i can´t set tab index to my controls (textboxes), i want to press tab and move to my textbox, how can i do so?
when i press tab i get focus in the cell not in my textbox

matias
Top achievements
Rank 1
 answered on 06 Oct 2009
1 answer
100 views
I would like to create a parent grid that will contain all of the columns for a multi-use table but where I can derive/inherit from it depending on the circumstance (I did not create this table so please don't suggest that it should be normalized).  For example, My table contains fields labeled "Field1" to "Fieldx". Field1 for one record may mean something completely different for Field1 of a different record and this is usually designated by a particular company. So, I would like to create one parent grid with the ability to perform CRUD operations on this table but "inherit" the xaml so I can change the columnar header names and eventually lookup lists based on the company being used.

I have been researching this topic for most of the day but have yet to find the "right" solution. There are many possibilities but I would like advice in advance on the best path to take so I don't go down any rabbit trails.

1. One possibility that I found was to put the grid in a user control and then inherit the user control. However, this was criticized because either it doesn't allow the user to edit the columns of the child user control at design time or it created reference issues within the encapsulated user control.

2. Another possibility was to subclass Telerik's gridview but that seems like overkill and I believe there has to be something easier.

3. Another idea is to create a content template. I don't know much about content templates and don't know if learning and implimenting this idea would be a waste of time.

Thank You in advance.
Stefan Dobrev
Telerik team
 answered on 06 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?