Telerik Forums
UI for WPF Forum
2 answers
90 views
Editing a single row by showing a RadWindow with the data of a row on its fields. I want to do that by double clicking a row of RadGridView.

Here is my code snippet for EventHandler when double clicking:

1.private void grdProducts_MouseDoubleClick(object sender, MouseButtonEventArgs e)
2.{
3.  Product product = (sender as "not-sure-what-to-use-here-as-sender") as Product;
4.  ShowProductWindow(product);
5.}


Here is my code snippet for calling the RadWindow:
01.private void ShowProductWindow(Product product)
02.{
03. if (product != null)
04.    {
05.   ProductWindow productWindow = new ProductWindow(product, amazonContext);
06.   productWindow.Closed += ProductWindowClosed;
07.   productWindow.ShowDialog();
08. }
09.}


Can anyone help me to accomplish this? It would be a great help.

Regards,
RPM
Robert Peter
Top achievements
Rank 1
 answered on 08 Sep 2014
1 answer
113 views
It is possible to modify the "Print Settings Dialog" on the RadPrintPreviewDialog
after configuring a print, I would like to be able to save that configuration,
so that the next print is made with the pre-set settings.

Similarly, during the configuration of the GridView component,
when I open the Form with GridView so it includes
the settings previously selected in "Column Header Context Menu".

How can I write and read those parameters?
Dimitrina
Telerik team
 answered on 08 Sep 2014
1 answer
152 views
Hello,
I am working on integrating the RadRichTextBox into our product, the integration went very well up until I hit the FindReplaceDialog. I've tried applying default styles to RadWindow, FIndReplaceDialog, and everything else I can think of but I am unable to change the pop-up header color to match our product's theme. Our product uses Unity and Prism and currently does not use MEF so I am trying to avoid having to create a custom FindReplaceDialog and use the dialog via MEF. Is there any way that I can get a style to apply to the pop-up window? Any advice would be greatly appreciated! Thanks,

Below are some small snippets of the styles I've been attempting to use:

1.<Style x:Key="RadWindowStyleABC" TargetType="{x:Type telerik:RadWindow}">    
2.<Setter Property="Foreground" Value="{StaticResource WindowForeground}"/>    
3.<Setter Property="Background" Value="{StaticResource WindowBackground}"/>

1.<Style TargetType="{x:Type dialogs:FindReplaceDialog}" BasedOn="{StaticResource RadWindowStyleABC}">
2.    <Setter Property="Header" Value="find/replace"/>
3.</Style>
4. 
5.<Style TargetType="{x:Type telerik:RadWindow}" BasedOn="{StaticResource RadWindowStyleABC}"/>

Masha
Telerik team
 answered on 08 Sep 2014
5 answers
268 views
Hello,

While exporting data from Pivot Grid into Excel, always we are getting OOM (Out Of Memory) exception. Even the Pivot Grid contains of 20000 records.

And if we export 4000-5000 records, the excel export is very very slow.

If we increase the number of records then we are getting OOM exception.

The data binding and other things are working fine as we expected with this Pivot Grid. Only thing we are facing the issue is Pivot Grid Excel export.


Actually we have implemented the code based on the below link provided by Telerik. In the Telerik SDK browser also the Pivot Grid is not exporting well. There also we are getting OOM exception if the Pivot Grid contains more than 20000 records.

http://www.telerik.com/help/wpf/radpivotgrid-features-export.html


Please help me resolve the Pivot Grid - Excel export OOM and performance issues.


Thanks,
Shahrooz 
Kalin
Telerik team
 answered on 08 Sep 2014
1 answer
104 views
Hi,
I try to preform UI Automated tests using Microsoft UI Automation Tests Library.
I would like to find shapes that I placed on the Map using this library.
The deepest I can get is RadMap Control.
Is it possible to go deeper and find shapes in the map?

Regards,
Rafał
Peshito
Telerik team
 answered on 08 Sep 2014
1 answer
222 views
I have a every simple RadTreeview with 2 level deep children and a wrap panel to mimic explorer list view style.
The root level is showing fine, but beyond root level is NOT showing the children nodes.  It is, however, only showing the place holder (radtreeview.png).

It works fine if I use System.Windows.Controls.TreeView(TreeView.png), but I need to use RadTreeview.

Any help would be much appreciated.

    <Grid Margin="10" >
           <telerik:RadTreeView x:Name="trvMenu" 
                             ScrollViewer.VerticalScrollBarVisibility="Disabled">

            <telerik:RadTreeView.ItemsPanel>
                <ItemsPanelTemplate >
                    <telerik:RadWrapPanel Orientation="Vertical" />
                </ItemsPanelTemplate>
            </telerik:RadTreeView.ItemsPanel>
           
            <telerik:RadTreeView.ItemTemplate>
                <HierarchicalDataTemplate DataType="{x:Type MenuItem}" ItemsSource="{Binding Items}" >
                    <TextBlock Text="{Binding Title}" />
                </HierarchicalDataTemplate>
                
            </telerik:RadTreeView.ItemTemplate>
        </telerik:RadTreeView>
    </Grid>






Petar Mladenov
Telerik team
 answered on 08 Sep 2014
1 answer
163 views
I'm using the Telerik DragAndDrop in some of our applications and in general this works awesome. But at this point I'm testing my application with some touch devices. In the application is a Scrollviewer wich has PanningMode turned on, he DragAndDrop-controls are in this scrollviewer. 
At first it was like dragging these controls wasn't working. But later I noticed there was a visual shown on drop but it is just blocked when dragging the control around. I adjusted my scrollviewer to only scroll when there are two fingers used. But this didn't change the fact that the visual of the dragging is still blocked.

Also I have tried some tricks with the OnPreviewTouchDown- and OnPreviewTouchUp events of the scrollviewer. Till now I haven't found a good solution.

Is there anyone around here that tried the same or that has an option to try?

Thanks,
Alek
Telerik team
 answered on 08 Sep 2014
3 answers
133 views
I am using the following code to get an array of values from Excel;
rng = ws.Range[sCell1, sCell2];
object dataRows = rng.Value;

I then try to bind the array to a GridView using;
gvText.ItemsSource = dataRows;

However I get the error; "Array was not a one-dimensional array".

I have tried converting the array to an observable collection;
ObservableCollection<object> colRows = new ObservableCollection<object>(dataRows);

but this displays the error; â€‹"The best overloaded method match for 'System.Collections.ObjectModel.ObservableCollection<object>.ObservableCollection(System.Collections.Generic.IEnumerable<object>)' has some invalid arguments".

How can I bind the Excel data returned to the grid?
Raymond
Top achievements
Rank 1
 answered on 08 Sep 2014
16 answers
3.2K+ views
I am using dateTimePicker I want to disabled the dates later than from today's date and I want to show a kind of label showing today's date all the time inside the datetimepicker control  so that when user is navigating to other dates/months/years,today's date would be visible all the time.
diana
Top achievements
Rank 1
 answered on 06 Sep 2014
3 answers
179 views
Is direct insertion possible??
Petya
Telerik team
 answered on 05 Sep 2014
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?