Telerik Forums
UI for WPF Forum
1 answer
106 views
I have spent a few hours trying to figure out how to find a combobox in myWPF Gridview cell. I need to find it after gridview row is bound. There are no examples out there. It needs to happen in code behind Can anybody help? This is really driving me nuts.
Dimitrina
Telerik team
 answered on 23 May 2011
1 answer
108 views
I have a list of items that are generated based on user selections and I would like to display them on a timebar. I did create a converter to convert from my item to a RadLinearSparkline, but I can not figure out how to attach this Observable collection to display on the RadTimeBar. Is it only possible in the code behind?
Datafyer
Top achievements
Rank 1
Veteran
 answered on 23 May 2011
6 answers
487 views
Hey all,

I am writing an installer. It has a list of commands to execute and I need to show the progress.  I have a quite complex application that I am really using, so I created a sample app.  At first I was using the regular .NET 4 WPF DataGrid, but the .NET 4 DataGrid just wan't behaving stable.  See my recent post on MSND: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/e4eeb10b-8b27-4b26-a435-baa0ae4ea47a/

Anyway, my company has licensed Telerik, I was told, so I thought I would try the Telerik GridView.

I replaced the DataGrid with the Telerik GridView but I can't really even get started because the SelectedItem is not changing when the bound value changes.  It is a readonly bound value and I have it set to mode=oneway.  While debugging the NotifyPropertyChanged("CurrentCommand") is properly called.  This is one part that was working fine with the DataGrid.

Here is my sample app: DataGridExecutionListWithTelerik.zip

My overall goal is to Execute each command.  I must also do the following:
1. Show a progress spinner (which isn't in my sample but is working in my actual app) on the current item.
2. There are so many commands, there is scrolling.  So when it reaches the commands not visible, the GridView should scroll (I am using ScrollIntoView).  Then I need current command inprogress to always be visible.  When finished the item should stay scrolled to the bottom.

I need the SelectedItem to change when it changes in my ViewModel so the event fires so the ScrollIntoView function can be called.
Dimitrina
Telerik team
 answered on 23 May 2011
1 answer
225 views
Hi,
I am using RadGrid with 5 columns, in which one of the column hold Button. Click event of the button is binded using Command using MVVM model .eg(MyButtonCommand). when i click this button i need to show the RowDetailsTemplate. RowDetailsTemplate shows the some information about the row, but i don't have control to bring the Rowdetails when i click the button.

Is there anyway that i can show the RowDetails based on button inside the grid?
Adam Marshall
Top achievements
Rank 1
 answered on 23 May 2011
2 answers
127 views
Hi,

Is it possible to modify the appearance of the BulletGraph QualitativeRanges and/or FeaturedMeasure?
I would like to add gradient shading.

  • WPF version:  3.0.6920.4902
            (as per http://msdn.microsoft.com/en-us/library/aa349641.aspx)
  • OS:  Windows 7 Enterprise 64-bit
  • exact browser version:  IE9 v9.0.8112.16421
  • exact version of the Telerik product:  RadControls for WPF v2011.1.419.40
  • preferred programming language (VB.NET or C#):  C#


  • Thank you,
    - Martin
    Martin
    Top achievements
    Rank 1
     answered on 21 May 2011
    4 answers
    534 views
    Hi,

    I am using a RadTreeListView and would like to change template of the row. I have two requirements.
    1) Change expander to plusminus
    2) Change control template of the rows

    I am able to do item 1, by changing presentation mode in HierarchyExpandButtonStyle. It works fine until I try to create a control template for TreeListViewRow. I dont have to change anything to completely mess up the expander button. Even before making any changing to the control template of the rows, as soon as I scroll up and down, each row has a minus sign regardless of whether it is a parent item or not.

    Again, to reproduce, please follow these steps.
    1) Add the following styles to RadTreeListView.....a) HierarchyExpandButtonStyle  b) HeaderRowStyle   and c) RowStyle
    2) You dont have to change anything in any of the styles except the Hierarchy one. Just edit current control template of the RowStyle.
    3) Scroll up and down a couple time and you should see the expander button all over the place.

    I want to edit the row template to do the following. If there is another quick way to do these please let me know
    1) Hide PART_IndicatorPresenter
    2) Hide PART_IndentPresenter
    3) Prevent user from selecting a cell and hence not showing a black border around it. Selection of the whole row is permitted.

    Please help!
    Thank you for your time.
    Vikas

    
    
    Vikas
    Top achievements
    Rank 1
     answered on 20 May 2011
    2 answers
    233 views
    I'd like to respond to the enter key when a row is highlighted.  i.e. select the row using the arrow keys, then hit enter and essentially duplicate the functionality of the doubleclick action grabbing the row.datacontext like so:

    private void GridViewImportTransactions_MouseDoubleClick(object sender, MouseButtonEventArgs e)
            {
                FrameworkElement originalSender = e.OriginalSource as FrameworkElement;
                if (originalSender != null)
                {
                    var row = originalSender.ParentOfType<Telerik.Windows.Controls.GridView.GridViewRow>();
                    if (row != null)
                    {
                        //MessageBox.Show("The double-clicked row is " + ((PacerImportTransaction)row.DataContext).ID);
                        RawDataWindow _rawDataWindow = new RawDataWindow(((PacerImportTransaction)row.DataContext));
                        _rawDataWindow.ShowDialog();
                    }
                }
      
            }

    how do I do that?

    Jonathan
    Jonathan
    Top achievements
    Rank 1
     answered on 20 May 2011
    7 answers
    674 views
    Hi,

    We have just downloaded the latest release (2011 Q1 .NET 4.0), however intellisense cannot find RichTextBox. The reference to Telerik.Windows.Controls.dll (version 2011.1.315.40) is already added.

    Error in Visual Studio 2011:
    The tag 'RadRichTextBox' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'.


    Please advice. Thanks!
    Joel
    Top achievements
    Rank 1
     answered on 20 May 2011
    2 answers
    976 views
    Hello,

    I associated a contextmenu with a text box.. When "RightClick" on it, the contextmenu opens correctly as expected. I would like to open it in code-behind, let's say when user type CTRL+SPACE for instance or when the user clicks a button beside the textbox.

    How to achieve this with radContextMenu?

    Thanks in advance for your answer.
    regards
    --
    Eric
    Eric
    Top achievements
    Rank 1
     answered on 20 May 2011
    1 answer
    70 views
    According to the documentation here, to get the RadTreeViewItem so that you can dynamically set the context menu, you need to add a handler for the Opened event and retrieve it like so:

    RadTreeViewItem item = ((RadContextMenu)sender).GetClickedElement<RadTreeViewItem>();

    We have an application using RadDocking with the RadTreeView in a RadPane.  It works with the pane pinned but if I unpin the pane and right click, GetClickedElement returns null.  Here's some simple XAML to recreate it:

    <Window x:Class="DockingTreeViewContextMenu.MainWindow"
            Title="MainWindow" Height="350" Width="525">
        <Grid>
            <telerik:RadDocking>
                <telerik:RadDocking.DocumentHost>
                    <telerik:RadSplitContainer>
                        <telerik:RadPaneGroup>
                            <telerik:RadDocumentPane Header="Content"></telerik:RadDocumentPane>
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>
                </telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                        <telerik:RadPane Header="Pane 1">
                            <telerik:RadTreeView>
                                <telerik:RadContextMenu.ContextMenu>
                                    <telerik:RadContextMenu Opened="RadContextMenu_Opened">
                                    </telerik:RadContextMenu>
                                </telerik:RadContextMenu.ContextMenu>
                                <telerik:RadTreeViewItem Header="Item #1">
                                    <telerik:RadTreeViewItem Header="Item #1.1"></telerik:RadTreeViewItem>
                                    <telerik:RadTreeViewItem Header="Item #1.1"></telerik:RadTreeViewItem>
                                    <telerik:RadTreeViewItem Header="Item #1.1"></telerik:RadTreeViewItem>
                                </telerik:RadTreeViewItem>
                                <telerik:RadTreeViewItem Header="Item #2" />
                                <telerik:RadTreeViewItem Header="Item #3" />
                            </telerik:RadTreeView>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking>
        </Grid>
    </Window>


    So if I slide out the pane and right click the tree node, I get a null result whereas I get the RadTreeViewItem when the pane is pinned.  I'm I using the control incorrectly?
    Petar Mladenov
    Telerik team
     answered on 20 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?