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
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.
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
Hi,
When a user uses a filter on the RadgridView and then clicks a button to reload different data in the grid the filters are still there. Is there a way to clear these automatically when reloading data?
<telerik:RadGridViewHi,
I would like to retrieve the VisibleRangeStart and VisibleRangeEnd properties after a VisibleRangeChanged event occurs.
How can I do that in mvvm?
I can track the changed event with:
<telerik:EventToCommandBehavior.EventBindings>
<telerik:EventBinding Command="{Binding CustomCommand}" EventName="VisibleRangeChanged" />
</telerik:EventToCommandBehavior.EventBindings>
Thanks in advance,
Egbert
A couple of questions regarding DocumentVariableFields:
1. Is it possible to make a field read only, i.e. the field cannot be deleted from the UI.
I'm inserting the field into a table cell:
RadDocumentEditor editor = new RadDocumentEditor(document);
var cell = document.EnumerateChildrenOfType<TableCell>().ToList()[0];
if (cell != null)
{
DocumentPosition position = new DocumentPosition(document);
position.MoveToDocumentElementStart(cell.Blocks.First());
document.CaretPosition.MoveToPosition(position);
DocumentVariableField docVariable = new DocumentVariableField() { VariableName = "2000" };
editor.InsertField(docVariable);
}
doc_text.Document = document;
doc_text.Document.DocumentVariables["2000"] = "Date";
//doc_text.Document.DocumentVariables["2002"] = " ";
var field = doc_text.Document.EnumerateChildrenOfType<FieldRangeStart>().Where(x => x.Field.FieldTypeName == "DOCVARIABLE"
&& ((DocumentVariableField)x.Field).VariableName == "2000").FirstOrDefault();
if (field != null)
{
doc_text.UpdateField(field);
}
2. Is it possible to 'attach' a click event handler to a field, or a table cell?
Thank you
We were using a standard Window object as the parent for our MainWindow. All was good. Then we wanted to do theming...couldn't do it easily, we found we needed to change to telerik:RadWindow. That's when everything went.....bad. No more window icons, no more task bar icon, no more showing up in taskbar. We've been able to figure out msot things and add more code to "fix" what we thought should be part of the default behaviour.
Then this morning my boss uses the mouse to try to change a value in a RadComboBox.....nope. Huh? I must have done something wrong? I don't think so. The change is in git and linked to the exact date we changed from Window to RadWindow..
How are you supposed to get mouse selections to work with a RadComboBox contained in a RadWindow?
Hi Team,
We are using RadStepProgressBar in our project, and we would like to change the selected color from Yellow to Blue. However, we have not been able to find a solution.
Here is the current XAML code:
<telerik:RadStepProgressBar
Background="AliceBlue"
VerticalAlignment="Top"
x:Name="stepProgressBar"
Grid.Row="0"
TrackFill="LightGreen"
SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
ItemsSource="{Binding OrderSteps}"
DisplayMemberPath="Name"
AnimationDuration="0.6"
Margin="0 0 0 0">
<telerik:RadStepProgressBar.ItemContainerStyle>
<Style TargetType="telerik:RadStepProgressBarItem">
<Setter Property="TextBlock.TextAlignment" Value="Center" />
<Setter Property="TextBlock.Foreground" Value="White" />
<Setter Property="ShapeStroke" Value="Black" />
<Setter Property="Background" Value="DarkSlateGray" />
<Setter Property="TextBlock.TextAlignment" Value="Center" />
</Style>
</telerik:RadStepProgressBar.ItemContainerStyle>
</telerik:RadStepProgressBar>
Could you please assist us in changing the selected color to Blue?
Thank you.