Telerik Forums
UI for WPF Forum
1 answer
246 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
841 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
102 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
475 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
830 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
253 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
191 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
88 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
4 answers
138 views
I have a RadGridView control that is being populated from a WCF service and if I set the autogeneratecolumns=True, when I enter the cell and change the contents, it changes works fine; however if I set it to false it reverts back to the original content of the cell.   I want to be able to control which columns display

My WCF service returns the data into a datatable.

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

I tried adding the column in XAML and doing it in VB.NET and when autogen is false -- it won't keep the change.   

Is there some other code behind that I need to do to make the cell change stay ?

        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 
 

Ivan Ivanov
Telerik team
 answered on 31 Mar 2017
2 answers
253 views

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

 

Sébastien
Top achievements
Rank 1
 answered on 31 Mar 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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?