
Hi,
I have GridViewDataColumn with a edit template containing a com:
<telerik:RadButton Command="{Binding DoSomethingCommand}" Focusable="False"</telerik:RadButton>
My button command calls a command hander "MyViewModel.OnDoSomething" method in ViewModel attached to RadGridView row, but I am unable to figure out how to close edit mode after my handler is called. I tried to call CommitEdit() from Click() handler attached to button above. After adding click handler my "MyViewModel.OnDoSomething" is not called anymore.
I could fire new event from MyViewModel.OnDoSomething and intercept this event in View and call CommitEdit from there, but maybe there is a simpler way?
Thanks,
Łukasz
Hi,
I want to load some view in content of pane. The pane is create dynamically to doubleclick on the item's panelbar.
My solution have 2 projects. One for view's and one for model views.
The code from doubleclick is:
private void MenuItemDoubleClick(object sender) { UserMenuTab selectedItem = (sender as UserMenuTab); string propValueTitlu = selectedItem.Titlu.ToString(); if (propValueTitlu != null) { OuterDockPanes.Add(new RadPane { Header = propValueTitlu, Content = " ???? I want to put here the view ", Tag = "DocumentHost" }); } }I dont know how cand I upload the solution for better undestanding...
Thank you.
Installing the Demos failed
Please see att. image
Hello,
we are using the RadRibbonWindow in our WPF Application. Unfortunately, in the current version (2015.1) of the WPF controls, the RadRibbonWindow has a strange Margin on the right Border when Maximized. Also it seems like, that the content on the left is cut. It feels like the position of the Window is not correct. You can see through to the desktop, even when the Window is maximized.
I tried to override the Template but I couldn't find the Margin causing the problem.
I've also tried to use the new Internal Builds, but it wasn't fixed so far. In the 2014 version of the controls, everything worked fine.
The attached screenshot shows an empty appliction where the bug occures. I've changed my background color to black, so you can see it easily.
Best regards

Hello. Just on DialogResult, I'm not wrong! I use System.Windows.Forms.FolderBrowserDialog instance in my WPF MVVM application. Please see the following code from the View Model:
. . . . . . . .using System.Windows.Forms;. . . . . . . .FolderBrowserDialog dialog = new FolderBrowserDialog();DialogResult res = dialog.ShowDialog();if (res == DialogResult.OK){ this.PathToExcelExportRepository = string.Copy(dialog.SelectedPath); this.IsTurnOffExportToExcelSelected = false; this.IsTurnOnExportToExcelSelected = true; . . . . . . . . .}Where IsTurnOffExportToExcelSelected is:
public bool IsTurnOffExportToExcelSelected{ get { return this._isTurnOffExportToExcelSelected; } set { this.SetProperty(ref this._isTurnOffExportToExcelSelected, value); }}and IsTurnOnExportToExcelSelected is:
public bool IsTurnOnExportToExcelSelected{ get { return this._isTurnOnExportToExcelSelected; } set { this.SetProperty(ref this._isTurnOnExportToExcelSelected, value); }}Each one of these properties is binding source fore menu item in the View:
<telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu> <telerik:RadMenuItem Header="Turn on export to MS Excel" IsCheckable="True" IsChecked="{Binding IsTurnOnExportToExcelSelected, Mode=TwoWay}" Command="{Binding TurnOnExportToExcelCommand}"/> <telerik:RadMenuItem Header="Turn off export to MS Excel" IsCheckable="True" IsChecked="{Binding IsTurnOffExportToExcelSelected, Mode=TwoWay}" Command="{Binding TurnOffExportToExcelCommand}"/> </telerik:RadContextMenu></telerik:RadContextMenu.ContextMenu>here the source code of TurnOnExportToExcelCommand. It turns on export to CSV-file of the values of real-time chart data-points:
// This line is in the View Model constructor.this.TurnOnExportToExcelCommand = new DelegateCommand(this.turnOnExportToExcel);// This is the command definition in the View Model.public DelegateCommand TurnOnExportToExcelCommand { get; private set; }private void turnOnExportToExcel(){ FolderBrowserDialog dialog = new FolderBrowserDialog(); DialogResult res = dialog.ShowDialog(); if (res == DialogResult.OK) { this.PathToExcelExportRepository = string.Copy(dialog.SelectedPath); this.IsTurnOffExportToExcelSelected = false; this.IsTurnOnExportToExcelSelected = true; // Define for which chart (absolute or relative) export to CSV-file is turned on. if (this.IsAbsoluteSplineChartSelected || this.IsAbsoluteBarChartSelected) { // Export of absolute chart data-point to CSV-file: Interlocked.CompareExchange(ref this._isAbsoluteChartDataBeingExported, 1, 0); Task.Factory.StartNew(this.peekAbsoluteDataForExportToCsv, TaskCreationOptions.LongRunning); Task.Factory.StartNew(this.exportToCsvAbsoluteChartPoints, TaskCreationOptions.LongRunning); // Export absolute chart data-point values is turned on. GlobalStaticMembers.ChartsExportToExcelStatus[0] = true; } else if (this.IsComparativeSplineChartSelected || this.IsComparativeBarChartSelected) { // Export of relative chart data-point to CSV-file: Interlocked.CompareExchange(ref this._isComparativeChartDataBeingExported, 1, 0); Task.Factory.StartNew(this.peekComparativeDataForExportToCsv, TaskCreationOptions.LongRunning); Task.Factory.StartNew(this.exportToCsvComparativeChartPoints, TaskCreationOptions.LongRunning); // Export relative chart data-point values is turned on. GlobalStaticMembers.ChartsExportToExcelStatus[1] = true; } }}The condition of if-statement above is satisfied if DialogResult is DialogResult.OK. I verify it to set breakpoint in debugger. But if I click 'Cancel' button in the dialog then the debugger doesn't not show next steps but IsChecked property of IsTurnOnExportToExcelSelected menu item is set to true (the status of IsChecked property of TurnOffExportToMSExcel menu item is not changed). Why is TurnOnExportToMSExcel boolean property set to true if DialogResult is Cancel?
Is there any way to force the radribbongroup into not center the header horizontally (I want strech)?
Thanks
Inger Marie
Hello,
We are currently using some of your components and we are facing a lot of issues while using RadTreeView.
Most of them are related to drag/drop operations and the new position of the item in the new TreeView.
As you can see in the video that i attatched everything is working fine until the middle of the video after dragging 5 items to the new TreeView the drag template becomes unstable and blinks, after adding that one to the tree you are not able to keep dragging more items.
The only thing that we modifed is the item template and we are using the latest binaries of UI for WPF.
What we can do?
Thanks
Here you can find the video
https://www.dropbox.com/s/xy6pgw5toynbvpk/dragIssue.mp4?dl=0
