Telerik Forums
UI for WPF Forum
36 answers
2.2K+ views
After reading numerous solutions on this forum and the inability to use RadWindow as a regular window, I started experimenting with RadWindow and was able to consolidate some of the solutions in this forum and create a simple example which will enable RadWindow to be used as any other window. Following code example is self explanatory and should give you a starting point.

 

public partial class MainWindow : RadWindow
{
    public MainWindow()
    {
        InitializeComponent();
        RadWindowHelper windowHelper = new RadWindowHelper();
        windowHelper.TaskBarDisplayed += new EventHandler(windowHelper_TaskBarDisplayed);
        windowHelper.ShowWindowInTaskBar();
    }
  
    void windowHelper_TaskBarDisplayed(object sender, EventArgs e)
    {
        this.Show();
        this.WindowState = WindowState.Maximized;
        this.BringToFront();
        var window = this.ParentOfType<Window>();
        window.ShowInTaskbar = true;
        window.Title = "My RadWindow";
    }
}
  
  
public class RadWindowHelper
{
     public event EventHandler TaskBarDisplayed;
            
     public void ShowWindowInTaskBar()
     {
         if (this.TaskBarDisplayed != null)
            this.TaskBarDisplayed(this, new EventArgs());
     }
}

Vladi
Telerik team
 answered on 13 Jan 2014
1 answer
522 views
Hello, I'm trying to get the grid editing to behave like Excel. I've seen numerous posts on this, but some are a few years old, so I'm wondering if it is supported now. I'm setting the following grid properties to get close to what I want:
radGrid.SelectionUnit = GridViewSelectionUnit.Cell;
radGrid.EditTriggers = GridViewEditTriggers.TextInput | GridViewEditTriggers.CurrentCellClick;
 radGrid.SelectionMode = SelectionMode.Extended;

Specifically, I'm looking for the following behavior:

1. Select a cell. Start typing and the cell goes into edit mode. This works.
2. Select a cell. Single click the cell again causes the cell to go into edit. I would like the cell to go into edit mode on a double click, like Excel. Also, this causes a selection problem as well because if I mouse down in the already selected cell to do a multiple cell selection, I can't because the cell goes into edit. This is actually my biggest issue.
3. Press Enter key after edit causes the next cell to go into edit mode. I would like Enter to just move to the next cell without editing. This goes for the Tab key, and click another cell in the same row(clicking a cell in another row will not place that cell into edit mode). All place you into edit mode. Excel does not do this and this is the behavior I would like.

If there's a way to set properties to get the functionality I'm looking for, that would be great. Otherwise, any suggestions?
This post http://www.telerik.com/community/forums/wpf/gridview/cell-edit-mode.aspx discusses overriding the keyboard command provider. Is that what is recommended? It seems like editing like Excel would be functionality that should be built into the grid control.

Thanks,
Scott



Vera
Telerik team
 answered on 13 Jan 2014
4 answers
122 views
Hi,

I have to plot some rectangles in for example a RadCartesianChart.

I have tried to do it with the AreaSeries but when i do so all rectangle are bound to the x axis.

I want to be able to plot Rectangles anywhere within the RadCartesianChart(see attached image).

I hope you understand the problem :)

Can i do this using the AreaSeries or should i do something else?

Best Regards,
Jeppe
Unisense
Top achievements
Rank 1
 answered on 13 Jan 2014
1 answer
161 views
Hi,

I am developing a WPF application in my company.
The main window contains a Docking control.
UserControls are displayed in floating Panes at run time.
A floating Pane in the application is the only Pane in its PaneGroup and the PaneGroup is the only PaneGroup in its SplitContainer.
I use the RadPane.MakeFloatingDockable method to make a Pane floating but the Pane is initially displayed in the top left corner of the main window.
What do I need to do to initially display a floating Pane in the center of the main window ?

Thank you in advance for your help
Kalin
Telerik team
 answered on 13 Jan 2014
2 answers
114 views

I am using a horizontal path for the radcarousel panels. There are 3 panels in the carousel ItemsPerPage="3". The middle panel is the focused panel. Is there a way to specify spacing between central panel and panels on either side.
Thanks in advance
YK

Maya
Telerik team
 answered on 13 Jan 2014
5 answers
150 views
Hello,

I'm trying to save a radchart to a file using the save() method.
No matther what method overload I use I always get an ArgumentOutOfRange Exception with the following description:

[System.ArgumentOutOfRangeException] = {"The parameter value must be greater than zero.\r\nParameter name: pixelWidth"}

I'm not able to figure where to set that parameter in the RadChart.

Documentation on the method does not provide any usage examples and all the old posts on the forum I've found point on this issue to a demo page that no more exist (they point to demos based on chartview now).

Thanks for help

Antonello


Pavel R. Pavlov
Telerik team
 answered on 13 Jan 2014
1 answer
157 views
I've got charts where a series can be a user defined color and where specific points can be a user defined color. The models for my series & all my points already have that info & so I'm binding to those colors via styles for LineSeries, PointSeries, etc.  Whenever I use a DefaultVisualStyle or a PointTemplate, the legend markers in my RadLegend lose their color.  Is there a way to get all three things: series color via DefaultVisualStyle, point color via Point template, LegendItem Colors? PS - I have the ability to set the palette for the chart as well if that matters.
Mitchell
Top achievements
Rank 1
 answered on 10 Jan 2014
0 answers
74 views
I want a RadGridView which has repeated columns in it as you can see in the picture below.

enter image description here

This is just one RadGridView and colums are repeated. How can we do this with wpf RadGridView

Thanks,

Tingting
Top achievements
Rank 1
 asked on 10 Jan 2014
1 answer
144 views

Our requirement for the grid is to have checkbox column so that user be able to select multiple items using the checkbox. During that time, the CurrentItem should be the item user clicked on, which might select/unselect the checkbox, and we will load the detail info of the CurrentItem then display it in a panel outside of the grid.

Here's the definition of the grid:

<telerik:RadGridView
                IsSynchronizedWithCurrentItem="True"
                AutoGenerateColumns="False"
                ItemsSource="{Binding ItemCollection}"
                CurrentItem="{Binding CurrentItem}"
                SelectionMode="Multiple">
        <telerik:RadGridView.Columns>
            <telerik:GridViewSelectColumn />
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Name}"
                                        Header="Name" />
        </telerik:RadGridView.Columns>
    </telerik:RadGridView>

The behavior now is the CurrentItem will always be the first selected item, not the item currently has focus on.

Is there any way to fulfill our requirement?

I would appreciate any suggestions.

Dongzhi
Top achievements
Rank 1
 answered on 10 Jan 2014
2 answers
328 views

I'm evaluating telerik gridview for the project I'm working on.  I noticed the CurrentItem does not change when I change selections in the grid.  The setter on CurrentItem in the ViewModel only gets triggered at the very first time.  

Here's the definition of the Grid:
<telerik:RadGridView  Name="GroceryGrid"
                     ItemsSource="{Binding GroceryList}"
                     IsSynchronizedWithCurrentItem="True"
                     AutoGenerateColumns="False"
                     SelectionMode="Multiple"
                     CurrentItem="{Binding CurrentItem, Mode=TwoWay}"
                     SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                     ShowColumnFooters="True"
                     DockPanel.Dock="Top"
                  >

In the ViewModel:

private GroceryItem currentItem;
public GroceryItem CurrentItem
{
    get { return this.currentItem; }
 
    set
    {
        this.currentItem = value;
        base.RaisePropertyChangedEvent("CurrentItem");
    }
}

Please help.  Thanks!
Dongzhi


Dongzhi
Top achievements
Rank 1
 answered on 10 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?