Telerik Forums
UI for WPF Forum
3 answers
107 views
can we have a radpager for Treelistview control? if yes, how it works in case of ondemand load(upon expand a node, get the data).

Thanks,
Suman
Rossen Hristov
Telerik team
 answered on 08 Feb 2011
5 answers
157 views
Hi,
  I recently noticed the memory usage of my application increasing when I repeatedly expanded and collapsed items.  I immediately assumed that I had set something up incorrectly, so I immediately created an application using the code in the getting started tutorial, and indeed it appears to suffer from the same issue.  In order to reproduce this issue you can run the code from the getting started tutorial and repeatedly expand and collapse one of the items.  I am referencing telerik controls version 2010.2.812.35.  All work was completed in Visual Studio 2008.

Is this a known issue?  Is there a known workaround?

Thanks,
-Gabe
Hristo
Telerik team
 answered on 08 Feb 2011
0 answers
89 views
Hi
My requirement is to have tab control having all its tab items horizontally where each tabitem  will be overlapping with another tab item
Asish
Top achievements
Rank 1
 asked on 08 Feb 2011
2 answers
160 views
I am working on my first WPF app and am trying to find similar functionality in the RadGridView that exists in the RadGrid for ASP.NET which I have lots of experience in.

With RadGrids, I could create a GridTemplateColumn that contains various controls like labels and dropdowns that I could acquire instances of using .FindControl() in the codebehind's ItemDataBound event.  I could then put any text I wanted into these controls based on logic in the codebehind.

I discovered the DataTemplate object in the RadGridView, but it seems I can only use this to bind data from an object's member property.  What I want to do is insert my own custom information directly rather than rely on an object member since the data I want to display might not be offered by any member within the object.

Links to where this information can be found will be all I need unless you'd like to offer any other additional info here.
gunther
Top achievements
Rank 1
 answered on 07 Feb 2011
4 answers
144 views
I am experiencing some odd behavior with Grouping.

1) Image Grouping 1.jpg relates to this behavior.  I have dragged my column (called 'TDC') to the Grouping Header.   Grouping shows correct, except for the rows where the value in the TDC column exceeded 8 characters.  For that the heading above the grouped row is blank. All other rows are grouped correctly and the heading shows correctly.  Note that the Grouped by displays TDC, which is correct.

2) Image Grouping 2.jpg relates to this behavior.   Instead of dragging the TDC column to the Grouping Header I am using the Right Click Context menu.  The code for this comes verbatim from the Telerik Examples for WPF.  The same grouping behavior as in 1 is observed.  The Grouped by displays CurrentTDCString instead of the TDC. The Unique Name is displayed instead of the Header Name.

3) Image Grouping 3.jpg relates to this behavior.  I have dragged my column (called 'Sub TDC') to the Grouping Header.   Grouping is done correctly, but the heading above all the grouped rows are always empty. 

Both the TDC and Sub TDC columns are bound to Combobox items. The difference between the TDC and Sub TDC columns are that the TDC column use the ItemsSource binding while the Sub TDC use the ItemsSourceBinding binding.  I have to do this because the items source for the Sub TDC column depends on the value selected in the TD column.

Help appreciated.
Stefan
Top achievements
Rank 1
 answered on 07 Feb 2011
4 answers
310 views
Hi

My RadTreeView's are in a HiearchicalDataTemplate so the number of TreeViews is not known at design time.

I need to handle the ContextMenu's click event on a RadTreeViewItem but obviously I cannot just write RadTreeView.AddHandler

Does anyone have an alternative idea?

Thanks.

<Grid>
    <Grid.Resources>
            <Style x:Key="ItemContainerStyle" TargetType="{x:Type telerik:RadTreeViewItem}">
                <Setter Property="IsSelected" Value="{Binding Path=IsSelected, Mode=TwoWay}" />
            </Style>
             
            <HierarchicalDataTemplate
                x:Key="TreeViewItemTemplate"
                ItemsSource="{Binding TreeViewItemChildren}">
                <StackPanel Orientation="Horizontal">
                    <telerik:RadContextMenu.ContextMenu>
                        <telerik:RadContextMenu>
                            <telerik:RadMenuItem Header="Add to bookmarks" />
                        </telerik:RadContextMenu>
                    </telerik:RadContextMenu.ContextMenu>
                    <Image Margin="0,0,2,0" Height="16" Width="16">
                        <Image.Style>
                            <Style TargetType="Image">
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding IconType}" Value="Folder">
                                        <Setter Property="Source" Value="{StaticResource Folder}"></Setter>
                                    </DataTrigger>
                                    <DataTrigger Binding="{Binding IconType}" Value="MultiPubReport">
                                        <Setter Property="Source" Value="{StaticResource MultiPubReport}"></Setter>
                                    </DataTrigger>
                                    <DataTrigger Binding="{Binding IconType}" Value="SinglePubReport">
                                        <Setter Property="Source" Value="{StaticResource SinglePubReport}"></Setter>
                                    </DataTrigger>
                                    <DataTrigger Binding="{Binding IconType}" Value="Publication">
                                        <Setter Property="Source" Value="{StaticResource Publication}"></Setter>
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </Image.Style>
                    </Image>
                    <TextBlock Text="{Binding Name}"></TextBlock>
                </StackPanel>
            </HierarchicalDataTemplate>
             
            <HierarchicalDataTemplate x:Key="TreeViewTemplate">
                <telerik:RadTreeView
                    x:Name="ReportsTreeView"                   
                    ItemsSource="{Binding TreeViewItemChildren}"
                    ItemTemplate="{StaticResource TreeViewItemTemplate}"
                    IsLineEnabled="True"
                    IsDragDropEnabled="True"
                    PreviewDragEnded="ReportsTreeView_PreviewDragEnded"                   
                    SelectionMode="Single"
                    ItemContainerStyle="{StaticResource ItemContainerStyle}">
                </telerik:RadTreeView>
            </HierarchicalDataTemplate>
             
            <HierarchicalDataTemplate
                x:Key="PanelBarItemTemplate"
                ItemsSource="{Binding TreeViewItemViewModels}"
                ItemTemplate="{StaticResource TreeViewTemplate}" >
                <TextBlock Text="{Binding Name}"></TextBlock>
            </HierarchicalDataTemplate>
             
        </Grid.Resources>
         
        <telerik:RadPanelBar
            x:Name="ReportMenu"            
            ExpandMode="Multiple"
            ItemTemplate="{StaticResource PanelBarItemTemplate}"
            VerticalAlignment="Top">
        </telerik:RadPanelBar>
             
    </Grid>
Ryan
Top achievements
Rank 1
 answered on 07 Feb 2011
4 answers
157 views

private
void gridView_Sorting(object sender, GridViewSortingEventArgs e)
 {
    try
    {
       if (schedules == null)
       {
          e.Cancel = true;
          return;
       }
 
 
       if (e.OldSortingState == SortingState.Ascending)
       {
          e.NewSortingState = SortingState.Descending;
          schedules = schedules.OrderByDescending(s => s.Role).ThenBy(s => s.Name).ToList();
       }
       else if (e.OldSortingState == SortingState.Descending)
       {
          schedules = schedules.OrderByDescending(s => s.Name).ToList();
          e.NewSortingState = SortingState.None;
       }
       else
       {
          e.NewSortingState = SortingState.Ascending;
          schedules = schedules.OrderBy(s => s.Role).ThenBy(s => s.Name).ToList();
       }
       this.radDataPager.Source = schedules;
       //e.DataControl.ItemsSource = this.radDataPager.Source;  // replaced by the next line which is the same thing.
       this.gridView.ItemsSource = this.radDataPager.Source;
       this.gridView.Items.Refresh();
 
       this.radDataPager.PageIndex = 0;
       e.Cancel = true;
    }
    catch (Exception ex)
    {
       txtStatus.Text = "Erorr in gridView_Sorting:"+ex.Message;
    }
 }
Custom Sorting (routine shown above) of GridView with DataPager does not seem to work.
It shows sorted items on the current page but it does not navigate to another page.

Can you provide small sample code that works?

Thanks.
gureumi
Top achievements
Rank 1
 answered on 07 Feb 2011
15 answers
268 views
Anyone know of a control developer who has a HTML RichTextBoc for WPF?

Bryan
Iva Toteva
Telerik team
 answered on 07 Feb 2011
1 answer
65 views
I am using version 2010.3.1110.40.

I have a RadTransitionControl that switches between two usercontrols through the bound content property. The switching works fine, however I have noticed that the top level bindings in both the usercontrols are not being set. To get things to work I have to set the binding in the code in the loaded event. I have even set a breakpoint on the get part of the bound collection and saw that it is not read at all. However, if I take the same usercontrol and place it by itself in the xaml then the breakpoint is hit during the xaml loading as it should be.
George
Telerik team
 answered on 07 Feb 2011
1 answer
108 views
Hi

I've got an app that makes extensive use of the RadDocking system. I'm implmenting some drag and drop functionality, and this works fine when dropping an item onto a docked pane, but not onto a floating pane. Is this a known bug?

If so, when is it due to be fixed? 

Thanks
Tom Davies
Tsvyatko
Telerik team
 answered on 07 Feb 2011
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)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?