Telerik Forums
UI for WPF Forum
5 answers
105 views

Good morning

I am developing an application WPF touchscreen, I need to have scrolling programatically.
The example 117850_117835 if it works to me, but with Q3 displays error in the following line.

Panel = Me.RadGridView1.ItemsControl.VirtualizingPanel

'temsControl' is not a member of 'Telerik.Windows.Controls.RadGridView'
As it works in the Q3

Thanks

Vlad
Telerik team
 answered on 11 Jan 2010
6 answers
157 views

Is there a way to determine the actual position of a RadTileViewItem in a RadTileView? Something like
RadTileView.GetPosition(RadTileViewItem item, out int row, out int column)?

Thanks,
Michael

Tihomir Petkov
Telerik team
 answered on 10 Jan 2010
7 answers
186 views
Hi,

I've created a treeview which has the TriStateMode enabled and defined a callback function when an item were checked/unchecked.

My problem is that I get notified multiple times if a subitem was checked. The first notification is for the top element, and the next notification is for the top level's child element and so on... The last notification is the checked item itself.

Is there a way to determine the item which was checked?

Thanks
Dieter
Valentin.Stoychev
Telerik team
 answered on 08 Jan 2010
1 answer
83 views
Hello :)
Exists pt-br resource for WPF controls?
Valentin.Stoychev
Telerik team
 answered on 08 Jan 2010
2 answers
98 views
I have a gridview, using version 2009.3.1208.35 and MVVM. Style and visibility is applied like the following:
        <telerik:RadGridView.Resources> 
            <Style TargetType="{x:Type GridView:GridViewRow}"
                <Setter Property="Background" Value="#FFFFe1" /> 
                <Style.Triggers> 
                    <DataTrigger Binding="{Binding Path=OperationId}" Value="0"
                        <DataTrigger.Setters> 
                            <Setter Property="Background" Value="#FFFFFF" /> 
                        </DataTrigger.Setters> 
                    </DataTrigger> 
                    <DataTrigger Binding="{Binding Path=OperationStatus}" Value="9"
                        <DataTrigger.Setters> 
                            <Setter Property="Visibility" Value="Collapsed" /> 
                        </DataTrigger.Setters> 
                    </DataTrigger> 
                </Style.Triggers> 
            </Style> 
        </telerik:RadGridView.Resources> 
 
Everything looks fine when the grid is loaded, but, if I scroll vertically, it seems like <Setter Property="Visibility" Value="Collapsed" /> doesn't work anymore. No more rows are collapsed. Is this is a bug, or am I missing something?

Roy
Roy Halvorsen
Top achievements
Rank 1
 answered on 08 Jan 2010
1 answer
168 views
Hello,

The column of my grid is set to SizeToContent, which of course causes my column size to increase to the size of the lengthiest data in the column, which is great. When the row is removed, however, the column remains at that extended size. I would like to be able to have my column automatically "snap back" to the next lengthiest bit of data remaining in the grid, but have been unable to find a way to accomplish this with any of the existing properties. Is there a way to accomplish this kind of behaviour I'm missing?

Thanks,

Dave
Pavel Pavlov
Telerik team
 answered on 08 Jan 2010
3 answers
631 views
I have a RadTabControl with a Custom ContentTemplate. It works fine, and displays the content as I'd expect when first viewing the tab. However, when changing from one tab, back to the original tab, I find that the data inside the content presenter is no longer being displayed. It appears as if the DataContext or ItemsSource binding is no longer being applied as I'd expect.

Below is a short expample which should illustrade what I'm seeing. I'm using MVVM, and the ClosedOrderCol in the code snippet below is an ObservableCollection on the ViewModel.

Any help would be appreciated.

<Navigation:RadTabControl> 
            <Navigation:RadTabControl.ItemContainerStyle> 
                    <Setter Property="ContentTemplate"
                        <Setter.Value> 
                            <DataTemplate>
                                <Grid>
                                   <ContentPresenter Content="{TemplateBinding Content}"/>
                                </Grid>
                            </DataTemplate> 
                        </Setter.Value> 
                    </Setter> 
            </Navigation:RadTabControl.ItemContainerStyle> 
            <Navigation:RadTabItem> 
                    <Controls:RadGridView Grid.Row="1" ItemsSource="{Binding ClosedOrderCol}" IsReadOnly="True"
                        <Controls:RadGridView.Columns>                        
                           <Controls:GridViewDataColumn Header="Closed" DataMemberBinding="{Binding DateClosed}" /> 
                        </Controls:RadGridView> 
            </Navigation:RadTabItem> 
            <Navigation:RadTabItem /> 
<Navigation:RadTabControl> 

Kiril Stanoev
Telerik team
 answered on 08 Jan 2010
7 answers
169 views
How do I select a new row, column[0] when I add it to my grid in code?

 

private void Button_Add_Items_Click(object sender, RoutedEventArgs e)

 

{

 

    Item item = new Item();

 

    i.ItemList.Add(item);

    rgvItems.SelectedItem = rgvItems.Items[rgvItems.Items.Count -1];

    rgvItems.ScrollIntoView(rgvItems.SelectedItem);

 


    //rgvItems.BeginEdit();

 

}



The BeginEdit takes me to the first row and column.

Thanks!
Milan
Telerik team
 answered on 08 Jan 2010
3 answers
306 views
Hello!

I use a Chart of many different line series and I want to take advantage of multiple Y Axis in my chart but it's kind of confusing at some point because you could not tell which axes is related to which line series. It would be very helpful if I could somehow bind the color of the line series with the color of the Y axis label or line label, but it seams that I cannot find a way.
Right now I am trying to create a style for  the AxisTitle that uses the same SolidColorBrush that the line series has (guess what - this is null when I'm trying to get it).


Style axisTitleStyleItem = new Style( typeof( AxisTitle ) );
axisTitleStyleItem.Setters.Add( 
new Setter
  { Property = Control.ForegroundProperty,
    Value = (SolidColorBrush)secondaryLineSeries.Appearance.Stroke } ); 

Maybe I'm not taking the right approach. Help would be welcomed at this point.
Thank you!
Roxana
Dwight
Telerik team
 answered on 08 Jan 2010
1 answer
81 views
We are using version 2009.1.526.35 of the GridView control. In some situations, we are encountering NullReferenceExceptions when the GridView attempts to layout with no items in it. We have found this problem happening under at least 2 scenarios:

1) Calling ApplyTemplate() on the GridView and all of its template children recursively.

2) Clearing/Removing all items from the GridView (in this case it seems to happen randomly - definitely not always).

In both cases, the problem is in the Measure pass and appears to be a problem with the GridView's panel. Looks like it is trying to access an item or the first item in the Grid when it is empty.

1) Is this a known issue?
2) Is it fixed in a newer version of the control?

Stack Trace:

   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgumentargument, ExceptionResource resource)

   at System.ThrowHelper.ThrowArgumentOutOfRangeException()

   at System.Collections.Generic.List`1.get_Item(Int32 index)

   atTelerik.Windows.Controls.GridView.GridViewVirtualizingPanel.GetChildIndexByPhysicalOffset(Doubleoffset)

   atTelerik.Windows.Controls.GridView.GridViewVirtualizingPanel.UpdateFirstVisibleChildIndex(Doubleoffset)

   atTelerik.Windows.Controls.GridView.GridViewVirtualizingPanel.SetVerticalOffset(Doubleoffset)

   atTelerik.Windows.Controls.GridView.GridViewVirtualizingPanel.ResetVerticalOffset()

   atTelerik.Windows.Controls.GridView.BaseVirtualizingPanel.MeasureOverride(SizeavailableSize)

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

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

   at System.Windows.ContextLayoutManager.UpdateLayout()

   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Objectarg)

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

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

   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(ObjectresizedCompositionTarget)

   at System.Windows.Media.MediaContext.RenderMessageHandler(ObjectresizedCompositionTarget)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegatecallback, Object args, Boolean isSingleParameter)

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

Vlad
Telerik team
 answered on 08 Jan 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
DataPager
PersistenceFramework
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?