Telerik Forums
UI for WPF Forum
1 answer
61 views
Hello,

I intend to display a duration per XCategory, so I bound the YValue DataPointMember to a TimeSpan. I got an exception then. If I do bind to double value, everything works fine.

What should I do here ? I want to have a good formating on the bar and y-axis here (e.g. 2 Minutes, 1 hour, or 00:11:00).

Thanking you in anticipation
Velin
Telerik team
 answered on 18 Mar 2010
1 answer
100 views
Hello,

I'm using the Carousel-control and need to collapse items in depency of some conditions. So I've tried to bind the Visibility-property of the item to a property of the corresponding object/viewmodel:

<Style TargetType="telerik:CarouselItem">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:CarouselItem">
                        <Grid ToolTip="{Binding Name}" Visibility="{Binding Visibility}">
.......

The result is, that the item is hided but not collapsed, although I set the property to collapsed.

Is there a possibility to collapse items?

Thank you!


Milan
Telerik team
 answered on 18 Mar 2010
8 answers
353 views
Hello

In a situation I set the IsSelected-Property of some RowItems to true. The property "IsSelected" of "GridViewRow" is bound to the grid over DataBinding.

Now I wanted to make sure, that when I select an item from code, which is not visible at this time, it is scrolled into view. So I connected the SelectionChanged-Event of the GridView. The Problem is, the SelectionChanged-Event is only executed, if the item that I'm selecting is already in view! If it's way at the end of the list, the Event is never triggered and so I don't see which item gets selected. As soon as I scroll down and the item jumps into view, the SelectionChanged-Event is triggered.

Any suggestions how I can accomplish this? Things are very losely coupled so I can't just tell the GridView to select the item, it has to operate as soon as one of it's Items has the "IsSelected" property set.

Thanks
NoRyb
NoRyb
Top achievements
Rank 1
 answered on 18 Mar 2010
2 answers
132 views
Hi,

We are using Teleriks Grid as well as WPF Datagrid. I want both grids to have the same styling. We want to go with Teleriks Vista Style. Since the styles are embebbed for telerik, will you be able to provide the styles to me?

Thnx & Rgds

Sujith
Milan
Telerik team
 answered on 18 Mar 2010
2 answers
109 views
Hi.
I just upgraded my project with the lastest DLL's of Q1 2010 version.
I have a view with a RadGridView control displaying a custom object, with the custom columns defined.

The definition of the columns is something like this:

<

 

TelerikControls:RadGridView.Columns>

 

 

 

<TelerikControls:GridViewSelectColumn Header="" />

 

 

 

<TelerikControls:GridViewDataColumn DataMemberBinding="{Binding CodigoAbonado}" Header="{DynamicResource LBL_AccionComercialView_CodigoAbonado}" IsReadOnly="True" IsFilterable="False"/>

 

 

 

<TelerikControls:GridViewDataColumn DataMemberBinding="{Binding CodigoPostal}" Header="{StaticResource LBL_AccionComercialView_CodigoPostal}" IsReadOnly="True" IsFilterable="False"/>

 

 

 

<TelerikControls:GridViewDataColumn Width="Auto" DataMemberBinding="{Binding CuentaNombre}" Header="{DynamicResource LBL_AccionComercialView_NombreCuenta}" IsReadOnly="True" IsFilterable="False"/>

 

 

 

<TelerikControls:GridViewDataColumn DataMemberBinding="{Binding IdFranquicia}" Header="{DynamicResource LBL_AccionComercialView_Franquicia}" IsReadOnly="True" IsFilterable="False"/>

 

 

 

<TelerikControls:GridViewDataColumn DataMemberBinding="{Binding Envios}" Header="{DynamicResource LBL_AccionComercialView_NumeroEnvios}" IsReadOnly="True" IsFilterable="False"/>

 

 

 

<TelerikControls:GridViewDataColumn DataMemberBinding="{Binding Facturacion}" Header="{DynamicResource LBL_AccionComercialView_Facturacion}" IsReadOnly="True" IsFilterable="False"/>

 

 

 

</TelerikControls:RadGridView.Columns>

 

 

 

where "TelerikControls" is
xmlns:TelerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"

The application crashed with the following error:

"Null object reference exception.

Original Error StackTrace:

en Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.FindRootVisual()

en Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.Initialize()

en Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnAllowDragChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)

en System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

en System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

en System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

en System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)

en System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)

en System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)

en Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.SetAllowDrag(DependencyObject obj, Boolean value)

en Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnApplyTemplate()

en System.Windows.FrameworkElement.ApplyTemplate()

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureChild(UIElement child, Size constraint)

en Telerik.Windows.Controls.GridView.GridViewCellsPanel.GenerateChild(IItemContainerGenerator generator, Size constraint, GridViewColumn column, Int32& childIndex, Size& childSize)

en Telerik.Windows.Controls.GridView.GridViewCellsPanel.EnsureAtleastOneHeader(IItemContainerGenerator generator, Size constraint, List`1 realizedColumnIndices, List`1 realizedColumnDisplayIndices)

en Telerik.Windows.Controls.GridView.GridViewCellsPanel.DetermineRealizedColumnsBlockList(Size constraint)

en Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

en System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Control.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Control.MeasureOverride(Size constraint)

en Telerik.Windows.Controls.GridView.GridViewRowItem.MeasureOverride(Size constraint)

en Telerik.Windows.Controls.GridView.GridViewHeaderRow.MeasureOverride(Size availableSize)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Border.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Decorator.MeasureOverride(Size constraint)

en System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Control.MeasureOverride(Size constraint)

en Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

en System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Border.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

en System.Windows.Controls.Grid.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Border.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

en System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Border.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.Controls.Control.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

en System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

en System.Windows.FrameworkElement.MeasureCore(Size availableSize)

en System.Windows.UIElement.Measure(Size availableSize)

en System.Windows.ContextLayoutManager.UpdateLayout()

en System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)

en System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()

en System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

en System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)

en System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)

en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)

en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

"

Any idea of what's happening?
Is version Q1 2010 not stable for this control?

Thanks in advance.

Alex Martinez
Top achievements
Rank 1
 answered on 18 Mar 2010
1 answer
59 views
Hi,
How can i access InvalidBorder of the row in Q1 2010 release?
In older release i use to do 

void DataGrid_RowLoaded(object sender, RowLoadedEventArgs e)
{
Rectangle rect = e.Row.ChildrenOfType<Rectangle>() 
                .Where(c => c.Name == "InvalidBorder")
                .First() as Rectangle;

But in Q1 2010 release this statement gives exception 
 "Expression cannot contain lambda expressions"
exception message says "Sequence contains no elements"

thx
virendra

Vlad
Telerik team
 answered on 18 Mar 2010
1 answer
24 views
Hello, we want to provide forms, e.g., to administer master data for article (Windows Forms or better WPF).
The users should be able to arrange themselves the fields (text fields, combo, etc.) to form the surface adaptably. Do you have a proposal, how can one realise such a thing?
Hristo
Telerik team
 answered on 18 Mar 2010
1 answer
71 views
Hi,
I have UserControl with RadGridView. If start it from WPF application everything is OK, but if I start from VB6 then grouping in RadGridView doesn't work. In earlier versions was ok.
Is there currently a work around for this issue?

Thanks in advance,
Evald
Tihomir Petkov
Telerik team
 answered on 18 Mar 2010
1 answer
175 views
I'm trying to use tiles as a dashboard so i want to be able to add or remove tiles via a context menu

once I have opened my context menu how can I determine which tile the mouse is over?

thanks
Tihomir Petkov
Telerik team
 answered on 18 Mar 2010
1 answer
203 views
 

Hai

am having a WPF user control in my telerik Form, when i click my button in my form , i just want to pass some value to the textbox which is in the usercontrol, tell me how to do this.

Hristo
Telerik team
 answered on 18 Mar 2010
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)
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
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?