Telerik Forums
UI for WPF Forum
1 answer
127 views

Hello,

I am using a ChartSeriesProvider to chart multiple LineSeries. I would like each LineSeries to have the actual points styled instead of just being a plain line.

Styling each LineSeries is a little different since I am using a ChartSeriesProvider. 


<telerik:RadCartesianChart
	Grid.Row="2"
	Background="#FF282828">
		<telerik:RadCartesianChart.SeriesProvider>
			<telerik:ChartSeriesProvider
				Source="{Binding InspectionData}">
					<telerik:ChartSeriesProvider.SeriesDescriptors>
						<telerik:CategoricalSeriesDescriptor
							CategoryPath="InspectionDateTime"
							ValuePath="InspectionValue"
							ItemsSourcePath="CameraChartData"
							CollectionIndex="0">
							<telerik:CategoricalSeriesDescriptor.Style>
								<Style
									TargetType="telerik:LineSeries">
									<Setter
										Property="StrokeThickness"
										Value="2" />
									<Setter
										Property="Stroke"
										Value="DeepSkyBlue" />
								</Style>
							</telerik:CategoricalSeriesDescriptor.Style>
						</telerik:CategoricalSeriesDescriptor>
						<telerik:CategoricalSeriesDescriptor
							CategoryPath="InspectionDateTime"
							ValuePath="InspectionValue"
							ItemsSourcePath="CameraChartData"
							CollectionIndex="1">
							<telerik:CategoricalSeriesDescriptor.Style>
								<Style
									TargetType="telerik:LineSeries">
									<Setter
										Property="StrokeThickness"
										Value="2" />
									<Setter
										Property="Stroke"
										Value="Yellow" />
								</Style>
							</telerik:CategoricalSeriesDescriptor.Style>
						</telerik:CategoricalSeriesDescriptor>

 

This documentation says 

Currently, changing the point marks appearance could be done only via the provided API. Declarative customizations are not supported.

 

But, this documentation shows a LineSeries has property "Fill" (need to also set size) which is exactly what I want. TargetPath is different, in this example it's set to "Path" and in my xaml it's "telerik:LineSeries" because it has to be since it's in a CategoricalSeriesDescriptor.

 

How do I style the points? Is it possible?

 

Martin Ivanov
Telerik team
 answered on 13 Sep 2024
1 answer
62 views

Hello,

In Telerik, I want to create a Grid that can differentiate between two objects and adjust the row accordingly. I understand that it's possible to customize row styles and templates, but the implementation I'm aiming for is a bit more complex, and I'm encountering some difficulties.

I have an object named "Program" with the following fields:

  • String Name;
  • String Id;
  • ObservableCollection<Operation> Operations;

Additionally, I have another object called "Operation" with the following fields:

  • string OpName;
  • string PartId;
  • int NumOfRepetitions;
  • etc.

The DataGrid takes a collection of 'Program' as input.

Here's what I want to achieve:

When a program contains a single operation, I want to group the program's and operation's data and display everything in a single, non-expandable row.

When a program contains multiple operations, I want to display a parent row with the program’s data and an expandable child grid that shows one operation per row with the relative data.

Is it possible to have different set of columns per each row and have only some rows which are expandable?

Martin Ivanov
Telerik team
 answered on 13 Sep 2024
1 answer
63 views

Hi,

How can I detect if an appoint is moved?

Which event is being fired and how can I implement this in the ViewModel and View?

Thanks...

Martin Ivanov
Telerik team
 answered on 13 Sep 2024
0 answers
74 views
Hi,
in the project attached there is a very simple example of checkbox column.
I observed that the celleditended event is raised when cell lost focus if I check the box, and immediately when click on check if I uncheck it.

I need the behavior of unchecking also when checking.

Thank you
Luigi
Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
 asked on 12 Sep 2024
0 answers
53 views

can you please help me to created diagram show in image for using created custom edge for "avoid connection overlap" used in Graph  dynamically.

 

Parth
Top achievements
Rank 1
Iron
Iron
 updated question on 11 Sep 2024
0 answers
40 views

hello 

i have customprovider base on UriImageProvider.

When I lose my network connectionand I try to move the map quickly or zoom in or out, the program breaks and my visual studio go to getemptyimage located in class imagemapsource.

What I'm doing wrong or how to protect myself from it?

 

Sebastian
Top achievements
Rank 1
 asked on 09 Sep 2024
1 answer
64 views

I'm working with the RadCartesianChart and using a BarSeries. In the series I have values that change, items that ger removed, and items that get added. I'd like for them to be sorted. I think I am implementing it correctly but could be mistaken. When the chart updates it displays values that are not sorted

 

I have attached a demo project to this post. I am using version 2024.2.514. Please let me know if there is anything I need to change or if I'm doing something incorrect.

 

Thank You,

Giuliano

Martin Ivanov
Telerik team
 answered on 09 Sep 2024
1 answer
69 views
If we are already  using WPF controls in 32 bit application, can we use the same controls for 64 bit application. Do we have any difference in license for 32 and 64 bit?Can you share any document which specify this. In existing application we are using controls like Bar , Dockpanel
Stenly
Telerik team
 answered on 09 Sep 2024
1 answer
59 views

Hi,

When I update a table cell in a richtextbox the table is locked and I am unable to edit the table  in the UI. The change to the table cell is not shown in the

UI If I then close the current document and re-open it its fine and I can see the change made to the table cell, or if I make a change to a paragraph above the table from within the UI the change to the cell is shown, and the table is unlocked. 


        public void SetTemplateFromElement(string tagValue, string newValue)
        {
            try
            {
//                RadDocument document = doc_text.Document;
                var table = doc_text.Document.EnumerateChildrenOfType<Table>().Where(x => x.Tag == tagValue).FirstOrDefault();
                if (table != null)
                {

                    switch (tagValue)
                    {
                        case "1000":
                            var row = table.EnumerateChildrenOfType<TableRow>().FirstOrDefault();
                            var cell = row.Cells.ToList()[1];
                            cell.Blocks.Clear();
                            Paragraph p = new Paragraph();
                            Span s = new Span();
                            s.FontWeight = FontWeights.Bold;
                            s.FontFamily = new FontFamily(CGlobals.docu_default_font);
                            s.FontSize = Unit.PointToDip(CGlobals.docu_default_font_size);
                            s.Text = newValue; ;
                            p.Inlines.Add(s);
                            cell.Blocks.Add(p);
                            break;
                        case "4000":
                            break;
                    }

                    //                    doc_text.Document = document;
                    doc_text.UpdateLayout();
                    SaveContent(strCurrentDoc);
                }
            }
            catch { }

        }

Can someone please advise.

Dimitar
Telerik team
 answered on 09 Sep 2024
1 answer
53 views

Hi,

I need to add bullets to a TableCell from code. I have tried cell.Blocks.Add(bullets) where bullets is a DocumentList but I am getting 'cannot convert from DocumentList to Block.

Code snippet:


                            DocumentList bullets = new DocumentList(DefaultListStyles.Bulleted, document);
                            p1 = new Paragraph();
                            s1 = new Span();
                            cell1.Background = Color.FromRgb(255, 255, 255);
                            cell1.PreferredWidth = w1;
                            cell1.Padding = new Telerik.Windows.Documents.Layout.Padding(3, 6, 3, 6);
                            s1.FontFamily = new FontFamily(CGlobals.docu_default_font);
                            s1.FontSize = Unit.PointToDip(CGlobals.docu_default_font_size);
                            s1.Text = name;
                            p1.Inlines.Add(s1);
                            bullets.AddParagraph(p1);
                            cell1.Blocks.Add(bullets);

Thank you

Steve
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 06 Sep 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?