Telerik Forums
UI for WPF Forum
4 answers
183 views

Hi!

When creating a diagram with too many items with AutoLayout, it seems there is a maximum width the diagram will grow to.

Which causes a weird behavior of the items being places vertically.

 

Is it possible to set the width of the available space for the auto layout?

 

I've added a screenshot demonstrating the behavior.

 

Thanks!

Tulio
Top achievements
Rank 1
 answered on 22 Mar 2019
3 answers
262 views

Method to reproduce 
(telerik version 2018.1.220)

  1. Create a structure that has enum with [Flags] attribute as members
  2. Set the array of the above structure to SourceItems of RadPropertyGrid
  3. Set "Intersection" or "Union" for "PropertySetMode" of "RadProeprtyGrid"
  4. Run the application
  5. Changing enum member flags from PropertyGrid with FlagEnumEditor will not be applied.
    In addition, the following exception occurs when changing the flag

---
Exception thrown: 'System.InvalidCastException' in mscorlib.dll
Exception thrown: 'System.InvalidCastException' in mscorlib.dll
Exception thrown: 'System.Reflection.TargetInvocationException' in mscorlib.dll
System.Windows.Data Error: 8 : Cannot save value from target back to source. BindingExpression:Path=CurrentPropertySet[Types]; DataItem='PropertySetViewModel' (HashCode=30131813); target element is 'FlagEnumEditor' (Name=''); target property is 'Value' (type 'Object') InvalidCastException:'System.InvalidCastException: 'System.String' から 'enum_flags_test.MainWindow+EnumTest+Type' への無効なキャストです。
   System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
   System.String.System.IConvertible.ToType(Type type, IFormatProvider provider)
   System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   Telerik.Windows.Controls.RadPropertyGrid.<>c__DisplayClass2b.<OnPropertySetViewModelChanged>b__28(Object s, PropertyChangedEventArgs e)
   System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
   Telerik.Windows.Controls.Data.PropertyGrid.PropertySet.OnPropertyChanged(String fileName)
   Telerik.Windows.Controls.Data.PropertyGrid.PropertySet.set_Item(String property, Object value)'

---

Is there any workaround? 
Your help would be welcomed.

 

---

MainWindow.xaml.cs

public partial class MainWindow : Window
{
    public class EnumTest
    {
        [Flags]
        public enum Type
        {
            None = 0,
            First = 1 << 0,
            Second = 1 << 1,
        }
 
        public Type Types { get; set; } = Type.None;
    }
 
 
    public MainWindow()
    {
        InitializeComponent();
 
        PropertyGrid1.Item = new EnumTest[] { new EnumTest() };
    }
}

 

MainWindow.xaml

<Window x:Class="enum_flags_test.MainWindow"
        xmlns:local="clr-namespace:enum_flags_test"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
        <telerik:RadPropertyGrid
            x:Name="PropertyGrid1"
            PropertySetMode="Intersection"/>
    </Grid>
</Window>

 


Dilyan Traykov
Telerik team
 answered on 22 Mar 2019
4 answers
285 views
Hello.
Is there any way to replace the empty cells from the PivotGrid with zeros?.
the attached picture is an example of my PivotGrid I want to replace those empty cells with zeros.
Please Help me.
Martin Ivanov
Telerik team
 answered on 22 Mar 2019
1 answer
273 views
Hi, I using the NavigationView and created some itens but I dont know how use these buttons with my new pages.
Dinko | Tech Support Engineer
Telerik team
 answered on 22 Mar 2019
1 answer
224 views

Hello, how do we set the `GridViewDataColumn` to capture Tab and indent the text in the cell instead of moving to another cell?

Thank you,

Jan

Dinko | Tech Support Engineer
Telerik team
 answered on 22 Mar 2019
8 answers
1.1K+ views

Was trying to do a quick spike that changed the Background of the grid and in haste I used a named color instead of the hex value

<telerik:GridViewDataColumn Background="Black" IsReadOnly="True"   
DataType="{x:Null}" HeaderText="Company Name" UniqueName="CompanyName" /> 

instead of

 

<telerik:GridViewDataColumn Background="#10000000" IsReadOnly="True"   
DataType="{x:Null}" HeaderText="Company Name" UniqueName="CompanyName" /> 

and the selected row was no longer visible.  Finding the hex value for Black is not difficult, so if you bump into this issue that is the workaround.  It seems the issue is related to the Alpha portion of the color.  The named colors have alpha set to Opaque, so you must set the alpha channel to something less than FF.  I'm currently using E5 (90%) which makes a very faint highlight.

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 22 Mar 2019
3 answers
275 views
Quick Question:
Is it possible to create a pie chart with multiple series? Such as, a stacked pie chart or grouped pie chart.

Thanks,
JT
Martin Ivanov
Telerik team
 answered on 22 Mar 2019
4 answers
788 views

Hi.
When I open a combobox, selected item is scrolled somewhere in the bottom of dropdown area (Screenshot 1). I need to have selected item scrolled at the very top of  that area (Screenshot 2). Is this possible? How can I do that?

 Thank you.

 

Tomas

Martin Ivanov
Telerik team
 answered on 21 Mar 2019
1 answer
232 views
How do I add a border style of "Double" to a table in a RadRichTextBox?
Tanya
Telerik team
 answered on 21 Mar 2019
2 answers
619 views

Some interesting behaviour can be observed when using the search-as-you-type function of the grid and non-string columns.

Is there a generic way to handle these so you can literally search any column using a "contains" approach?

I have bound an external textbox for the filter, but it gives the same result when using the built-in controls. Observations are:

  1. string columns filter fine
  2. numeric columns filter as per screenshots. note the actual value is 3493.29 which is only found for its integer value, at which point the grid removes its decimal value, or its entire value, not any substring of that value
  3. date columns do not filter unless the entire date is entered, and it is not highlighted in the grid per normal

Is there a standard approach that can be utilised for all column types as the benefit to this and me not rolling my own, is the built in template and styling of the highlighted results.

 

Thank you,

Maurice

Maurice
Top achievements
Rank 1
 answered on 21 Mar 2019
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
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?