Telerik Forums
UI for WPF Forum
1 answer
344 views
I want to add a simple context menu to a treeview. So far I have

<telerik:RadTreeView ItemsSource="{Binding Customers}">
  
    <telerik:RadContextMenu.ContextMenu>
        <telerik:RadContextMenu>
            <telerik:RadMenuItem Header="New" />
            <telerik:RadMenuItem Header="Open"/>
            <telerik:RadMenuItem Header="Delete" />
        </telerik:RadContextMenu>
    </telerik:RadContextMenu.ContextMenu>
</telerik:RadTreeView>

When I run it and right-click the treeview, I get nothing. There is no data, so there are no nodes, but that shouldn't matter - how would the user selected the New option?


Petar Mladenov
Telerik team
 answered on 03 May 2011
1 answer
152 views
Hi,

I'd like to be able to insert content (like a table or image for example) during during the RichTextBox drop event. During the drop event, I'd like to tag it somehow so that at a later time I can identify the table or image and replace with new content.

I've considered using a Comment as a marker - but have some questions around this:

1.) Is this the best way to achieve this?
2.) I've been able to add the comment to the document, but don't understand how to access the content contained between the CommentRangeStart and CommentRangeEnd elements.


Thanks in advance!

Jason
Iva Toteva
Telerik team
 answered on 03 May 2011
2 answers
109 views
Hello,

Recently we upgraded our telerik controls to version 2011.1.419.35. In this project we're hosting a RadGridView control in a RadTileViewItem. The problem we're running into is when we resize any of the RadTileViewItem's the one containing the RadGridView isn't behaving like the rest. sometimes it will be too big or too small or the other items disappear from view.

below is simple example that repeats my problem.

<Window x:Class="WpfApplication18.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadTileView>
            <telerik:RadTileViewItem>
                <telerik:RadGridView />
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem>
                <Button Content="Button 1" />
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem>
                <Button Content="Button 2" />
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem>
                <Button Content="Button 3" />
            </telerik:RadTileViewItem>
        </telerik:RadTileView>
    </Grid>
</Window>

Any Ideas?

Thanks Much,
~Boots
Boots
Top achievements
Rank 1
 answered on 03 May 2011
2 answers
112 views
Hi, I want to have a custom column with a user control that floats when activated like the window in an embedded combo box does. I used your examples and was able to embed my custom user control, but when it activates (I hit space) it sizes the column to the height and width of the user control. I would like to have the user control actually float on top like a combo box does when you dropmit down. My user control will have multiple controls. I will actually have several custom user controls placed in multiple custom columns. These will represent compound data the may not always be used I will already be using multiple level hierarchies in the caraway. The goal is to make a green screen replacement keyboard centric data input screen. The idea with the user controls is to let the person doing the data entry drop Into these sub levels when needed. Since these sub types are needed infrequently, rather than fill up a row with columns that aren't used most of the time, I want to be able to fold up the functionality like this. The structure I am mapping is not only complex, but the columns available changes depending on the customer and the type of order being placed. Thanks formthe help
Tom Testa
Top achievements
Rank 1
 answered on 03 May 2011
1 answer
52 views
Hi,
I want to use the CustomFilterRow for the GridView as explained in the WPF Demo application. So far it's working pretty fine but it still lacks some functionality that I need to have: Like in the filtering control that is shown when built-in filtering is enabled I need to show the distinct values in the filterrow. Therefore I want to replace the Textbox by a Combobox and bind it to distinct values of the corresponding column. Alternativly It would be nice to be able to use the built-in like filtering control and show it by the customfilterrow. I am quite sure that all of my requierements can be done, but I haven't found anything applicable while searching for hours!

Thanx for any hints!
Vlad
Telerik team
 answered on 03 May 2011
0 answers
177 views
I am using Telerik gridvew and created dynamically. I want to Show Each column Header under two subheader through programatically in wpf using c#
Satyajit
Top achievements
Rank 1
 asked on 03 May 2011
1 answer
99 views
Hi,

I have implemented loadondemand for my radtreelistview

when the control is loaded,
the filter on one of the colums is only displaying data members that exists in the first level items
this is fine,
but I would expect when I expand some rows,
and open the filter panel again, the data members exist in child rows should also be availible in the filter panel

however, typing the child level data member in the text boxes and apply filter works
is there any way to regenerate the list in the filter panel?

in addition, when I have null values in the column, the apply filter takes forever to complete, the application just hang

I want to explain a bit of what I need to achieve with radtreelistview below,
so I can get some help and to see whether I can achieving the goals better with radtreelistview

What am I trying to do here is the following:

1. a three level radtreelistview, each level is a different type
2. each type will have different attributes or properties specific for them
3. since radtreelistview will have different levels to share the same columns, we decided to combine those attributes and set them to be editable only when applicable
4. some of the columns will be combobox columns, however, I don't want the user to select from a combo box when they are on a row that they shouldn't select one for that attribute
5. so I have set cell templates for those columns, in the cell template I have put in just a combo box, and has its Visibility binded to view model object
6. then the user can only select whenever applicable
7. now when i want to filter them, i can only use the numbers (the data memebers or value memebers) but not text (display memeber), do I need to create an attribute in the view model and fill in the value (text) depends on the view model's data or value memeber? or is there an easier way of doing it?

Cheers
Vlad
Telerik team
 answered on 03 May 2011
1 answer
105 views
Hi,

Currently the horizontal scrolling on the RadGridView cuts through the columns while scrolling horizontally. For example when you scroll, I would like to skip the entire column instead of half of it remaining on the viewing screen itself which doesn't seem presentable.

I  am passing over a screen shot of the issue we are facing. As you can notice that we have a few frozen columns as well.

http://i51.tinypic.com/65bqtt.png

Thanks,
Farhan

<telerik:RadGridView IsFilteringAllowed="False"
                                     x:Name="PricingEcoList"                                                                        
                                     ItemsSource="{Binding Path=TrancheDataCollection}"
                                     AutoGenerateColumns="False"                                                                                                                                          
                                     SelectedItem="{Binding SelectedTranche, Mode=TwoWay}"                                     
                                     FrozenColumnCount="4"                                   
                                     AlternationCount="2"
                                     EnableRowVirtualization="True"
                                     Style="{DynamicResource RadGridViewStyle}"
                                     SelectionMode="Extended"
                                     Background="{DynamicResource DealOverViewBackGrndGrad}"
                                     HeaderRowStyle="{DynamicResource GridViewHeaderRowStyle}"
                                     telerik:StyleManager.Theme="Windows7"
                                     >
Vlad
Telerik team
 answered on 03 May 2011
1 answer
103 views
I have these two classes

public class CustomerModel : _BaseModel
{
    public int CustomerId { get; set; }
    public string CustomerCode { get; set; }
    public string CustomerName { get; set; }
    public List<ProjectModel> Projects { get; set; }
}

and

public class ProjectModel : _BaseModel
{
    public int ProjectId { get; set; }
    public int UserId { get; set; }
    public int CustomerId { get; set; }
    public WarehouseModel PrimaryWarehouse { get; set; }
    public WarehouseModel SecondaryWarehouse { get; set; }
    public ProjectType ProjectType { get; set; }
    public string ProjectName { get; set; }
    public string ProjectNum { get; set; }
    public DateTime Date { get; set; }
    public string Comments { get; set; }
}

and my XAML:

<Window.Resources>
  
    <DataTemplate x:Key="Project">
        <TextBlock Text="{Binding ProjectName}" />
    </DataTemplate>
  
    <HierarchicalDataTemplate x:Key="Customer" 
                                ItemTemplate="{StaticResource Project}"
                                ItemsSource="{Binding Customers}">
        <TextBlock Text="{Binding CustomerName}" />
    </HierarchicalDataTemplate>
  
</Window.Resources>
     

and

<telerik:RadTreeView ItemsSource="{Binding Customers}"
              ItemTemplate="{StaticResource Customer}"/>

When I run it, I see the Customer nodes, but not the Project nodes
Petar Mladenov
Telerik team
 answered on 02 May 2011
4 answers
96 views
Hi,

I would like to localize texts like "Drag a column header and drop it here to group by that column" and others. The standard approach as explained at http://www.telerik.com/help/silverlight/common-localization.html doesn't work for me, because I need instant translation if the culture changes. So I would like to bind these texts to viewmodel properties. How can I do that?

Thanks,
L
Ludwig
Top achievements
Rank 1
 answered on 02 May 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
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?