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.
This code behind does not work for importing files that are read only access. No error pops up, just a blank spreadsheet opens up
using (Stream input = new FileStream(this.ExcelDocumentSource, FileMode.Open, FileAccess.Read))
{
this.Workbook = new XlsxFormatProvider().Import(input);
//this.Workbook.Protect("telerik");
}
Thanks,
Hello,
I'm wondering if there is a way to set a fixed height to the bars in a barseries. For example, instead of the bars changing height in the following example, I'd like them to stay up with a fixed height.
The desired outcome would look something like this:
The xaml I used fort the example is this:
<telerik:RadCartesianChart>
<telerik:RadCartesianChart.Series>
<telerik:BarSeries ShowLabels="False"
CategoryBinding="Category"
ValueBinding="Value">
<telerik:BarSeries.DataPoints>
<telerik:CategoricalDataPoint Category="Apples" Value="20"/>
<telerik:CategoricalDataPoint Category="Bananas" Value="28"/>
<telerik:CategoricalDataPoint Category="Oranges" Value="17"/>
<telerik:CategoricalDataPoint Category="Strawberries" Value="30"/>
</telerik:BarSeries.DataPoints>
</telerik:BarSeries>
</telerik:RadCartesianChart.Series>
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:LinearAxis x:Name="horizontalAxis1"/>
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:CategoricalAxis/>
</telerik:RadCartesianChart.VerticalAxis>
</telerik:RadCartesianChart>
Is this possible using the BarSeries? Any help is appreciated.
Thank You,
Giuliano
Hi,
I would like to have the DataFormComboBoxField behave the same way as the Edit mode: Editable, Read-Only and Auto Complete ad in your demo application. But when I set it to readonly it is disabled.
My code:
e.DataField = new DataFormComboBoxField()
{
ItemsSource = _componentsDS.ComponentKeyWords,
SelectedValuePath = "KeyWordId",
DisplayMemberPath = "Abbreviation",
DataMemberBinding = new Binding("KeywordId") { Mode = BindingMode.TwoWay },
IsComboboxEditable = true,
IsReadOnly = true,
Label = "Keyword"
};
The example in your application:
Kind regards,
Johan
Is the source for this app available? If so, where? I don't necessarily need the source, but I'd like to know how the stuff marked in red (I wish I knew the correct names/terminology) is done in a WPF app.
Alternatively, is there a different example that shows it?