Telerik Forums
UI for WPF Forum
1 answer
142 views

Hi Guys!

 

Title says it all, how to I change background color of the title bar. (see image)?

(if the answer involves this article https://docs.telerik.com/devtools/wpf/styling-and-appearance/styling-apperance-editing-control-templates, 
please be specific to what file Im should change in, Im new to Telerik)

 

Thanks in advance, Robert

Vicky
Telerik team
 answered on 23 Nov 2020
2 answers
459 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
567 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
155 views

Hi!

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

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Nov 2020
3 answers
156 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
328 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
70 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
123 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
280 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
122 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?