Telerik Forums
UI for WPF Forum
1 answer
128 views
I am new to Visual Studio, C#,...
So please bear with me if my Q is naive.

I downloaded WPF control from your website.
Is there a sample program that I can run to test the grid. The example.cs that I see in each control folder is not it (I think).

Please help :(

Sally
Jimmy
Telerik team
 answered on 07 Oct 2008
1 answer
290 views
Hi.
I found something that might not be a bug, but took me some time to find the error in my code, because no error was thrown.

If the UniqueName of OrderId in the XAML below is changed from "OrderID" to "orderid" for instance, the expand-icon will appear on the row for a hierarchy, but when clicked no rows appears below. So it seems as if UniqueName is "half case sensitive".

I do not know if this should be corrected, or if this is proper behavior of the control, but I think that either the expand icon is shown and there is data below, OR no expand icon and no data below.

These are great controls, by the way.
Thanks.

        <telerik:RadGridView AutoGenerateColumns="False" Name="radGridView1" ShowGroupPanel="False"
            <telerik:RadGridView.Columns> 
                <telerik:GridViewDataColumn HeaderText="Order Number" UniqueName="OrderID" /> 
                <telerik:GridViewDataColumn HeaderText="Order Reference" UniqueName="OrderReference" /> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 


Dimitar Dobrev
Telerik team
 answered on 07 Oct 2008
1 answer
117 views
After setting the itemsource of the radcarousel with items. I can't use set the selecteditem with an item I know it's the itemsource collection.



Milan
Telerik team
 answered on 07 Oct 2008
5 answers
167 views
I am using the RadCarouselPanel inside a ListBox and have always set ItemsPerPage to be around 20.  When I decided to lower this to 5 or 10, I get "index was outside the bounds of the array" when clicking on the item in my ListBox.  If I set back to 20, it works again.

This is the stacktrace for the exception:


         StackTrace    "   at Telerik.Windows.Controls.Carousel.Animations.DecreaseItemsPerPageAnimation.AddItemToStay(ChildIndexPair item)\r\n   at Telerik.Windows.Controls.Carousel.Animations.DecreaseItemsPerPageAnimation.AddItemToAnimate(ChildIndexPair item)\r\n   at Telerik.Windows.Controls.RadCarouselPanel.PrepareAnimation(PathAnimation animation)\r\n   at Telerik.Windows.Controls.RadCarouselPanel.RunScheduledAnimation()\r\n   at Telerik.Windows.Controls.RadCarouselPanel.MeasureOverride(Size availableSize)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n   at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n   at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Border.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Control.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Border.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Control.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Border.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Control.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Border.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Page.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Border.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Control.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Border.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Control.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)\r\n   at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Border.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Window.MeasureOverrideHelper(Size constraint)\r\n   at System.Windows.Window.MeasureOverride(Size availableSize)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.ContextLayoutManager.UpdateLayout()\r\n   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)\r\n   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()\r\n   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()\r\n   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)\r\n   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)\r\n   at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)\r\n   at System.Windows.Interop.HwndTarget.OnResize()\r\n   at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)\r\n   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)\r\n   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)"    string
Milan
Telerik team
 answered on 07 Oct 2008
1 answer
63 views
Hello,

i am using multi column tree view in my application. i am getting one error in STYLEs, which i am not able to recorgnize.

Type reference cannot find public type named 'RadTreeListView'.

Please in to this and let me know as soon as possible.


Regards

Raghuraj
Valentin.Stoychev
Telerik team
 answered on 06 Oct 2008
0 answers
267 views
Hello,

I have problem with binding of multi column tree view with DataSet.
Actually the problem is - when i bind the multi-column treeview in XAML with ObjectDataProvider, treeview shows the data for the 1st treeview item, however, for the rest of all child item it does not show the data.
 
<ObjectDataProvider x:Key="objectData" MethodName="CreateDataSet"
                                ObjectType="{x:Type local:DataModel}"/>

<HierarchicalDataTemplate x:Key="DetailTemplate"
                                      ItemsSource="{Binding Detail-to-Info}"
                                      ItemTemplate="{StaticResource CellTemplate_Name}">               
                    <TextBlock Text="{Binding Detail}"/>
            </HierarchicalDataTemplate>

<HierarchicalDataTemplate x:Key="MasterTemplate"
                                      ItemsSource="{Binding Master-to-Detail}"
                                      ItemTemplate="{StaticResource DetailTemplate}">
                <DockPanel>
                    <ToggleButton x:Name="Expander"
                      Style="{StaticResource ExpandCollapseToggleStyle}"
                      Margin="{Binding Level,Converter={StaticResource LevelToIndentConverter},RelativeSource={RelativeSource AncestorType={x:Type telerik:RadTreeViewItem}}}"
                      IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadTreeViewItem}}}"
                      ClickMode="Press"/>
                    <TextBlock Text="{Binding Name}" FontWeight="Bold"/>
                </DockPanel>
                <DataTemplate.Triggers>
                    <DataTrigger Binding="{Binding Path=HasItems,RelativeSource={RelativeSource AncestorType={x:Type telerik:RadTreeViewItem}}}"
                     Value="False">
                        <Setter TargetName="Expander" Property="Visibility"    Value="Hidden"/>
                    </DataTrigger>
                </DataTemplate.Triggers>
            </HierarchicalDataTemplate>


<local:RadTreeListView x:Name="treeTest" DataContext="{StaticResource objectData}"
                               ItemsSource="{Binding MasterTable}"
                               ItemTemplate="{StaticResource MasterTemplate}">
            <local:RadTreeListView.Columns>
                <GridViewColumn Header="
Component" CellTemplate="{StaticResource MasterTemplate}" />
                <GridViewColumn Header="State on Master" />
                <GridViewColumn Header="State on Backup" />
            </local:RadTreeListView.Columns>
        </local:RadTreeListView>




Please look into it and let me know, where i lacking to achieve the goal.

Regards

Raghuraj
Raghuraj
Top achievements
Rank 1
 asked on 04 Oct 2008
1 answer
144 views
In my RadCarouselPanel, I want to pick an item, check to see if that's the top most item,, and then if so, do something.  I've tried the SelectionChanged and MouseDown events of my ListBox, but IsSelectedTopItem is always false.
Milan
Telerik team
 answered on 03 Oct 2008
1 answer
108 views
Hi,

I am using RadGrid for WPF. I am binding a Collection Class with out using dataset..

Can anybody help me to do...

Problem Iam Facing : When i define parent filed "GridViewDataColumn", I not able to define child filed "GridViewDataColum"

 

Nedyalko Nikolov
Telerik team
 answered on 02 Oct 2008
1 answer
156 views
Can I specify spacing between my items?  It would be great if there was something like a PathStop where I can tell the carousel where to display an item.  I can set different ItemsPerPage which do somewhat what I want, but it ultimately doesn't work because I want custom placement of items along my path.


Milan
Telerik team
 answered on 01 Oct 2008
3 answers
258 views
Following your examples, I am trying to set PathStops.  No matter what I do to the PathFraction and Values, I still get the default behavior (center item is biggest, items fade out to the left and right).  I tried setting IsScalingEnabled="True" IsOpacityEnabled="True" on my RadCarouselPanel, but it has no effect.  I also tried setting TopItemPathFraction in the Properties window and I get an unhandled exception "Object reference not set to an instance of an object.".  I also found OverridesDefaultStyle, but that doesn't do anything for me.  Can you help?  

Also, do you have a list of all the properties and what they mean?

<ListBox x:Name="lstThumbsCarousel" Grid.Row="2"   ItemContainerStyle="{DynamicResource ThumbNailContainerStyle}" MouseRightButtonUp="ShowContextMenu" SelectionChanged="lstThumbsCarousel_SelectionChanged" Loaded="lstThumbsCarousel_Loaded"
            <ListBox.ItemsPanel> 
                <ItemsPanelTemplate> 
                    <telerik:RadCarouselPanel x:Name="radCarouselPanel"
                         <telerik:RadCarouselPanel.ScaleStops> 
                            <telerik:PathStopCollection> 
                                <telerik:PathStop PathFraction="0.0" Value="0.1" /> 
                                <telerik:PathStop PathFraction="0.47" Value="0.2" /> 
                                <telerik:PathStop PathFraction="0.5" Value="0.4" /> 
                                <telerik:PathStop PathFraction="0.53" Value="0.8" /> 
                                <telerik:PathStop PathFraction="1.0" Value="1.0" /> 
                            </telerik:PathStopCollection> 
                        </telerik:RadCarouselPanel.ScaleStops>   
                    </telerik:RadCarouselPanel> 
                </ItemsPanelTemplate> 
            </ListBox.ItemsPanel> 
        </ListBox> 
 

Milan
Telerik team
 answered on 30 Sep 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
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?