Telerik Forums
UI for WPF Forum
0 answers
102 views

I am  facing an issue while copying content from RadGridView to Excel.
my RadGridView has a GridViewSelectColumn as first column, which must be ignored while copying.
When we select rows and copy the content, we are getting the first column header as 'System.Windows.Controls.CheckBox Content: IsChecked:False'

may i know how to avoid this.

I tried 

private void copyingcontent(object sender, GridViewCellClipboardEventArgs e)
        {
            if (e.Cell.Column.DisplayIndex == 0)
            {
                e.Cancel = true;
            }
        }

but this didn't solve my issue. if possible provide solution with code snippet 

 

there was same question long back 

http://www.telerik.com/forums/issue-while-copying-content-from-radgridview

but the solution provided is not correct. sdk browser doesnt have this solution.the example shown in sdk browser is copying nly cell , not complete grid including headers.

rajesh
Top achievements
Rank 1
 asked on 04 Apr 2017
1 answer
194 views

Hi, I've installed the UI for WPF demo, and I would like to try out the RadGridView / GridView Control.

However, it is not available in my Visual Studio (2017) IDE, even though many many other Telerik controls are available.

If I try and add it manually, I get the error: Error The name "RadGridView" does not exist in the namespace "http://schemas.telerik.com/2008/xaml/presentation"

Can someone help me? I would like to evaluate Grid Controls specifically, so if there is a superior control to this one, I'm willing to try it.

Thanks

Brian

Brian
Top achievements
Rank 1
 answered on 03 Apr 2017
1 answer
213 views
public class Employee
{
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public string Title { get; set; }
    public string HomePhone { get; set; }
}
 
public class Order
{
    public string ShipAddress { get; set; }
    public string ShipName { get; set; }
    public string ShipPostalCode { get; set; }
    public string ShipCountry { get; set; }
    public Employee Employee { get; set; }
}

 

<telerik:RadPropertyGrid Item="{Binding}"
                            NestedPropertiesVisibility="Visible" />

 

Is there a way to flatten the Employee class so it doesn't have to be "opened" to edit it? I would really like to have all the Employee class properties be on the same level as the shipping properties like in the image.

 


Ivan Ivanov
Telerik team
 answered on 03 Apr 2017
2 answers
776 views

How can we change the TreeListView populated area background ?

WhenTreeListView background is set to Transparent or some color it does become transparent or changes color but as soon as we populate some rows they all have white background which cannot be changed by changing the background of any of the internal TreeListView elements.

I tried changing background of GridViewCell, GridViewRow, GridViewDataColumn, GridViewRowItem, TreeListViewRow, TreeListCellsPanel and pretty much every other element but the background of populated rows remains white.

Thanks.

Dean
Top achievements
Rank 1
 answered on 03 Apr 2017
0 answers
87 views
Can You please help ?
1. Is it possible to have a paging in WPF Pivot Grid?
2. Is it possible to have a lazy loading in WPF Pivot Grid?
Karen27
Top achievements
Rank 1
 asked on 03 Apr 2017
1 answer
451 views

Is it possible to use RadGridView without edit mode? Or even just to reduce the number of actions it takes to perform an edit?

 

The current process to change a value in a bound object is:

1) Double click a cell. This causes the cell to enter edit mode.

2) Change the value.

3) Press Enter or click out of the grid to commit the change.

 

This is a lot of actions just to edit a value. I would much rather:

1) Click once in a cell.

2) Change the value (committing on each key stroke).

 

Is this possible? We would prefer an MVVM approach too, if at all possible.

Stefan
Telerik team
 answered on 03 Apr 2017
25 answers
770 views

I'm researching various WPF Control Libraries for a large upcoming project, and am wondering what type of compatibility Telerik WPF has with PRISM 5.0? The project is for Windows 7 machines, but I have not been able to find very many resources indicating compatibility.

I saw some posts asking how to use RibbonBar with PRISM, but that's about it.

Does Teleriks WPF have some custom implementation of PRISM, or some proprietary MVVM framework?

Martin Ivanov
Telerik team
 answered on 03 Apr 2017
3 answers
200 views

I setup keytips a long time ago for the application however now out of the blue things are failing with the following error:

My version is 2016.3.914.45.

 

2017-02-02 10:54:17.6159|ERROR|20716|1|Telerik.Windows.Controls.RibbonView.KeyTipService.ShowTips|Unhandled exception|System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.RibbonView.KeyTipService.ShowTips()
   at Telerik.Windows.Controls.RibbonView.KeyTipService.ActivateKeyTips(KeyEventArgs args, Boolean hasTips)
   at Telerik.Windows.Controls.RibbonView.KeyTipService.HandleKey(KeyEventArgs args)
   at Telerik.Windows.Controls.RibbonView.KeyTipService.RibbonKeyUp(Object sender, KeyEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled)
   at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at MyApp.App.Main()
Martin Ivanov
Telerik team
 answered on 03 Apr 2017
1 answer
155 views

Hi there,

I'm having a Word document (6MB) which has 11 pages with image.

I'm using RadRichTextBox to load it into and then export it to a MemoryStream, then I got an OutOfMemoryException.

Here is the code sample:

                IDocumentFormatProvider pdf = DocumentFormatProvidersManager.GetProviderByExtension(ext);
                pdf.Export(radRichTextBox1.Document, stream);

When debugging, I observed that the stream is quite big (33MB). Could you please let me know why the stream is really big like that.

How can I fix the issue?

 

Mihail
Telerik team
 answered on 03 Apr 2017
1 answer
63 views
The Filter window that shows up when we invoke the Filter button does not disappear when we switch to other windows. As a result, this cause the Filter window does not close though we come back to the UI and click anywhere in the Grid.  Normally, when we click anywhere in Grid when the filter window is open, the filter window disappears. But when we switch to any other window other than the active window, this causes the Filter window to not close on clicking anywhere in the GridViewDataColumn.  I believe the issue here is that the owner window for the Data GridViewDataColumn is not properly set nor the window is displayed as Modal. Hence this issue is happening. Could you please provide a fix or suggest a workaround for this issue ?

Thanks,
-Viswa
Stefan Nenchev
Telerik team
 answered on 03 Apr 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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?