Telerik Forums
UI for WPF Forum
2 answers
472 views
Hi Friends,

I am using the Telerik RadGridView. I need to show a list of master records and on expansion I need to show the detail of child records. Do you have any such sample. What will be the class structures with MVVM approach.

Right now I have a - GridViewModel - that has an ObservableCollection of GridRowViewModels (master records). GridRowViewModels is set to the ItemsSource property of the Gridview. 

Now on expansion, I need to display an ObservableCollection that I am exposing through GridRowViewModel in the expanded section.

Please help.



herb
Top achievements
Rank 1
Veteran
Iron
 answered on 20 Nov 2020
12 answers
595 views

In our application we use the autogenerate property grid fields mechanism. The property grid is located in a radpane (RadDocking) like in visual studio. The LabelColumnWidth of the property grid is set to 100px. 

We have the problem that long string values (f.i. file paths) in the property grid value column cause horizontal scrolling. Is there any possibility to disable the horizontal scrolling if the values of property fields are to long for the field?

We would like to have an autoresizing property grid. If the user increases the size of the dock the label column stays on 100px while the value column width increases to the the size: width of the RadPane - width of the column value.

That would be the behaviour I would expect.

 

Thanks and best regards,

Simon

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Nov 2020
2 answers
164 views

Hi!

Исходный текст

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Nov 2020
3 answers
168 views

Hi,

I increased the font size of a RadMenuItem in a RadContextMenu. This part works fine. However, if the RadMenuItem has a nested menu, then it has an expander icon which looks too small next to the large font. Is it possible to increase the expander icon?

Dilyan Traykov
Telerik team
 answered on 19 Nov 2020
2 answers
351 views

Hi

Is there a simple way to obtain the Item Type of the  items in the source collection of RadGridView?

I see that there is an Items.ItemType property, but this always seems to be null.

 

Thanks for any help.

 

Kind regards

Dave

David
Top achievements
Rank 1
Veteran
 answered on 19 Nov 2020
3 answers
74 views

Hello everyone,

I am currently stuck on a problem where edited appointments seem to get reset during the edit event chain.

Up until AppointmentSaving, everything looks normal. I set some breakpoints in my appointment's Start and End properties and both get updated to the new time. However, shortly after AppointmentSaving but before AppointmentEdited, the appointment's properties get reset to their previous state.

Through the aforementioned breakpoints, I was able to trace my problem down to the ScheduleView's EditableObjectBase class, more specifically its EndEdit() method, where a backup of the appointment's original state seems to be restored. Strangely though, CancelEdit() does not restore the state and leaves Start and End as is (in their edited state). Is this supposed to happen? I could not find any information about that behavior in the docs.

Martin Ivanov
Telerik team
 answered on 18 Nov 2020
1 answer
130 views

Hi, In telerik For my scatter point data (dynamically created in c#), I want to assign colors to each point dynamically by Point Template 
as
           var chart = new Telerik.Windows.Controls.RadCartesianChart();
            ScatterPointSeries scatterSeries = new ScatterPointSeries();
            for (int i = 0; i < 100; i++)
            {
                ScatterDataPoint point = new ScatterDataPoint();
                point.XValue = xvaluelist[i];
                point.YValue = yvaluelist[i];
                scatterSeries.DataPoints.Add(point);
                Brush color = new SolidColorBrush(colorlist[i]);

                Ellipse ellipse = new Ellipse();
                ellipse.Fill = color;
                ellipse.Stroke = color;
                ellipse.Height = 10;
                ellipse.Width = 10;
              DataTemplate datatemplate = new DataTemplate(typeof(Ellipse));
              FrameworkElementFactory element= new FrameworkElementFactory(typeof(Ellipse));
              element.SetValue(,);   //Issue is here
              datatemplate.VisualTree = element;

             scatterSeries.PointTemplates.Add(datatemplate);
             }        
            chart.Series.Add(scatterSeries);

element.SetValue accept two inputs that are dependencyproperty dp, object value

Martin Ivanov
Telerik team
 answered on 18 Nov 2020
1 answer
286 views

Hi, In telerik For my scatter point data (dynamically created in c#), I want to assign colors to each point dynamically by Point Template 

as

           var chart = new Telerik.Windows.Controls.RadCartesianChart();

            ScatterPointSeries scatterSeries = new ScatterPointSeries();
            for (int i = 0; i < 100; i++)
            {
                ScatterDataPoint point = new ScatterDataPoint();
                point.XValue = xvaluelist[i];
                point.YValue = yvaluelist[i];
                scatterSeries.DataPoints.Add(point);

                Brush color = new SolidColorBrush(colorlist[i]);

              DataTemplate datatemplate = new DataTemplate(typeof(Ellipse));
              FrameworkElementFactory element= new FrameworkElementFactory(typeof(Ellipse));
              element.SetValue(,);   //Issue is here
              datatemplate.VisualTree = element;

             scatterSeries.PointTemplates.Add(datatemplate);

             }        
            chart.Series.Add(scatterSeries);

 

element.SetValue accept two inputs that are dependencyproperty dp, object value

 

What should be dependency property and object value in this case so that I could assign colors to each point as from my color list.

Martin Ivanov
Telerik team
 answered on 18 Nov 2020
6 answers
130 views

Is it possible to make the grouping so that it would be more like this instead of them side by side.:

 Group 1 Header

Tiles wrapped

Group 2 Header

Tiles wrapped

 Group 3 Header

Martin Ivanov
Telerik team
 answered on 18 Nov 2020
3 answers
708 views

Hello

In a release of WPF after 2015.2.728 (up to and including 2020.2.617) the ability to programatically set the DisplayIndex of a GridViewColumn was broken, in what seems to be a bug (it used to work fine, and I'm not sure what behaviour you could achieve with this bug in place).  I haven't pinpointed the release, as a lot of releases have happened during that time!

I've attached a simple example which demonstrates this bug, you just have to change the boolean constant in the code behind file from `false` to `true`, and you'll see that the group header no longer shows.  If you go back to release 2015.2.728 then this works, but now it only works if you set DisplayIndex to -1 (anything else causes an argument exception, as there's a mismatch to the number of columns, which makes sense).  If you don't have the header group then you can obviously change the DisplayIndex as required, but as soon as you do, it breaks the header grouping.

I'd post the code solution if I could, but it's pretty simple, you don't even need the public class in my code behind, that's there just to make the column group header obvious.

 

Thanks!

Jimmy
Top achievements
Rank 1
 answered on 18 Nov 2020
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
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?