Telerik Forums
UI for WPF Forum
9 answers
683 views
Hello. I'm trying to use RadDocking in my project, but I am having trouble with floating panes. In my scenario, I want to float a docked pane and to set the floating window size to either specific value or fullscreen, depending on pane content. I need to do it from code-behind.
I've found this solution: http://www.telerik.com/forums/add-maximize-button-to-radpane-header
And the idea begind it works. But it also creates an unwanted side effect. I can see the window changing size twice: first, when it appers on the screen (at this point it has some initial size, like 200x300), and second time, when I change its size in PaneStateChange event handler. If pane contains some rendering-heavy content this double resizing is especially noticeable. So the question is: is there a way to set initial ToolWindow size, before it is actually displayed (and rendered) for the first time?
Nasko
Telerik team
 answered on 28 Feb 2017
4 answers
254 views
Hello,

I have a requirement where user should be able to traverse through the spreadsheet columns vertically using only Tab or Enter Key.
For ex: If I have entered some value in column1, cell 1, when I press Tab, focus should move on to the next cell in the same column1. and I should be able to keep doing this for, suppose, next 1000 rows.  Then I would like to start on column2, cell1, and do the same traversal using Tab key or Enter key and so on.
So my question is how do I capture the tab key press event or enter key press event and move the focus on to the next cell below the current cell ( not the cell on the right side)  for data entry ?

I would really appreciate the quick response.
Thank you.

Tanya
Telerik team
 answered on 27 Feb 2017
4 answers
234 views
regards
I'm working with RadPivotGrid and RadPivotFieldList (WPF), the data comes from a cube olap. I'm trying to export to excel but when I do after a while the application crashes and I get the following exepcion:
ContextSwitchDeadlock was detected
Message: The CLR has been unable to transition from COM context 0x63ef2c8 to COM context 0x63ef438 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.

as I can fix, I would give an example please?
Polya
Telerik team
 answered on 27 Feb 2017
0 answers
83 views

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

 

Lukasz
Top achievements
Rank 1
 asked on 27 Feb 2017
1 answer
274 views

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.

 

 

Polya
Telerik team
 answered on 27 Feb 2017
4 answers
165 views

Installing the Demos failed

 

Please see att. image

Torben
Top achievements
Rank 2
Iron
 answered on 24 Feb 2017
7 answers
414 views

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

 

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Feb 2017
2 answers
84 views

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?

Polya
Telerik team
 answered on 24 Feb 2017
2 answers
133 views

Is there any way to force the radribbongroup into not center the header horizontally (I want strech)?

Thanks

Inger Marie

Inger Marie
Top achievements
Rank 1
 answered on 24 Feb 2017
1 answer
180 views

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

 

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Feb 2017
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?