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.
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.
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.
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?

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()
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?
| <telerik:RadGridView Name="grd1" AutoGenerateColumns="False" Width="1000" Height="100" CanUserFreezeColumns="False"> |
| <telerik:RadGridView.Columns > |
| <telerik:GridViewDataColumn DataMemberBinding="{Binding ItemCode}" Header="ISBN" UniqueName="ItemCode" /> |
| </telerik:RadGridView.Columns> |
| </telerik:RadGridView> |
| Dim VenCode As String |
| If cbVendor.SelectedValue = "*" Then VenCode = "%" Else VenCode = cbVendor.SelectedValue |
| Dim sqlCmd As String |
| sqlCmd = "SELECT TOP 100 PERCENT dbo.ToBeReturned.ItemCode , dbo.Inventory.Title as Description, " _ |
| & "dbo.ToBeReturned.Qty, upper(RTRIM(Ltrim(dbo.ToBeReturned.RtnVendor))) as Vendor, dbo.ToBeReturned.Invoice, " _ |
| & "dbo.ToBeReturned.InvoiceDt, dbo.ToBeReturned.Discount, dbo.ToBeReturned.Price as Cost, " _ |
| & "UPPER(dbo.ToBeReturned.RtnVendor) as orgVendor FROM dbo.ToBeReturned " _ |
| & "INNER Join dbo.Inventory ON dbo.ToBeReturned.ItemCode = dbo.Inventory.ItemCode Where Vendor Like '" & VenCode & "'" |
| '//ieData.AddPrm("@myKey", pType.pString, "ARC", True) |
| '//ieData.FindQry("QryFindCat") |
| ieData.ChangeQry(sqlCmd) |
| Dim column As New GridViewDataColumn() |
| column.DataMemberBinding = New Binding("ItemCode") |
| column.Header = "ISBN" |
| column.UniqueName = "ItemCode" |
| Me.grd1.AutoGenerateColumns = False |
| Me.grd1.Columns.Add(column) |
| grd1.ItemsSource = ieData.dt |
| |
Hi everyone,
For some reasons, I made some changes on Header for undocked/floating window (called ToolWindow) editing ToolWindow template and modifying it.
As you can see on attached file, I increased font size, header height (rectangle was 22, now 48), changed colors etc...
Everything look fine BUT I can only drag the window clicking on the upper part on the header (actually I think the first 22 pixels). The new header height value is not taken in account and I don t know what to do.
Here is my changes:
<Rectangle Grid.ColumnSpan="2" Fill="WhiteSmoke" Height="48"/>
<Border x:Name="HeaderElement" Background="Transparent">
<ContentControl x:Name="Header" VerticalAlignment="Center" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Foreground="Gray" FontSize="22" FontFamily="{DynamicResource {x:Static telerik:Windows8ResourceKey.FontFamilyLight}}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsTabStop="False" Margin="6,0"/>
</Border>
Thanks in advance for your help
Seb