Telerik Forums
UI for WPF Forum
2 answers
105 views
Hello again,

I have another anoying bug in the GridView! With the following grid's XAML code:

<telerik:RadGridView Grid.Row="1" Margin="0,5,0,5" Name="rgvAdministrativeAgent" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" SelectionChanged="rgvAdministrativeAgent_SelectionChanged" AutoGenerateColumns="False" RowEditEnded="rgvAdministrativeAgent_RowEditEnded" ValidationMode="Row">  
    <telerik:RadGridView.Columns> 
        <telerik:GridViewDataColumn Header="Name" DataMemberPath="Name" /> 
        <telerik:GridViewDataColumn Header="Abbreviation" DataMemberPath="Abbreviation"  /> 
    </telerik:RadGridView.Columns> 
</telerik:RadGridView> 

When I start editing a row, everything is fine until I hit the "enter" key!

Then, the RowEditEnded event is launched as expected but when it ends, the row stay in edit mode! As long as I use the "enter" key, it will stop the edition mode and worse: it will relaunch each time the RowEditEnded event with a strange behavior because de e.newData stays the same as the first time the event was launched (even if data was modified before hitting "enter" key).

The only way to get out of this is to click anywhere else (wich launches also the RowEditEnded).

I don't know if it is normal, but I would expect the grid to stop editing the row when hitting "enter".
Is there any workaround?

Thanks,

Daniel
Daniel Nevers
Top achievements
Rank 1
 answered on 09 Oct 2009
3 answers
145 views
<TabItem.header>
<textBlock>ABC</textBlock>
</TabItem.Header>

When I am modifying Header template like this then it's not raising tab click event but when I click somewhere to end corners of tabheader.Event fires.I think It is something related with bubble events Which is not working when modifying header.

Please help me for this.
Kiril Stanoev
Telerik team
 answered on 08 Oct 2009
5 answers
278 views
Hi,

The grid control looks good performance and feature wise.
However i was wondering how to switch on the cell-only/cell-row navigation (with keyboard) feature.

Can anybody suggest me on this?

Thanks,
Anurodh
Hristo
Telerik team
 answered on 08 Oct 2009
2 answers
228 views

Hi.

I updated to Q2 2009 SP1 and now I have problem with small sliders (Width less than 56).
I use default theme (I think Office_black) and when I want to create slider with small Width it is not working right.

For example I want to do something like this:

myTestSlider = new Telerik.Windows.Controls.RadSlider();
myTestSlider.IsSnapToTickEnabled = true;
myTestSlider.TickPlacement = Telerik.Windows.Controls.TickPlacement.None;
myTestSlider.TickFrequency = 1;
myTestSlider.Focusable = false;
myTestSlider.Width = 34; // 8+20+6
myTestSlider.Minimum = 1;
myTestSlider.Maximum = 10;
Canvas.SetLeft(myTestSlider, 10);
Canvas.SetTop(myTestSlider, 10);
myTestCanvas.Children.Add(myTestSlider);

Slider Control has width 34 but its "internal" parts look and work like on width around 56 and so right part is not visible and goes beyond right border.
I don’t know if I am doing something wrong but currently I am not able to make small sliders.

Best regards,
Michal

Michal
Top achievements
Rank 1
 answered on 08 Oct 2009
3 answers
463 views
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
         
    { 
        if (e.Item is GridHeaderItem) 
        { 
            GridHeaderItem header = (GridHeaderItem)e.Item; 
            // to set the height of the Grid Header 
            header.Height = Unit.Pixel(20); 
 
            // to add an Image in the Grid Header 
            Image img=new Image(); 
            img.ID = "Image1"
            img.ImageUrl = "~/Image1.gif"
            header["columnUniqueName"].Controls.Add(img); 
 
        } 
    } 


Can anyone please let me know how to do above thing in WPF RADGRIDVIEW because radgridview dont have any event like ItemDataBound. I m also using Telerik.windows.control namaspace not Telerik.Web.UI. 



Below is my Code

// I m adding Columns dynamically,

GridViewDataColumn IsUnRead = new GridViewDataColumn();
IsUnRead.Header = "R";
IsUnRead.UniqueName = "IsUnRead";
IsUnRead.Width = new GridLength(40);
this.gvEmail.Columns.Add(IsUnRead);



I want to have Image in header also dynamically by code.


Thanks in advance. Your view will be highly appreciated.

MIRAL SHAH 
Milan
Telerik team
 answered on 07 Oct 2009
1 answer
150 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
116 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
158 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
116 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
86 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
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?