Hello,
Notepad++ (and other editors) have a feature where you can select a term and all instance/occurrences of this term in the document are highlighted as well.
Is this also possible in the SyntaxEditor and can this be implemented in a similar fassion. I am using the Visual basic and the CSharp syntax highlighting.
There is a functionality called HighlightAllMatches but I don't really know if this is the right method or how to Trigger it correctly.
Thanks for your time.
Hi,
in my GridView I am using the SelectionChanged event. How can I distinguish in this event whether a user has clicked on a row or whether I have set the SelectedItem by code?
Regards
Heiko
Hi,
I've a collection data, X values are hours, Y values some values.
I want to display my data hourly, BUT, i want the X labels to show only Days.
With that code :
<telerik:DateTimeContinuousAxis
LabelFormat="dd/MM"
LabelInterval="1"
LabelOffset="1"
MajorStepUnit="Day"
MajorStep="1"
PlotMode="OnTicks"
LabelRotationAngle="-45"
LabelFitMode="None"
VerticalLocation="Bottom">
My data are displayed hour by hour, the X label is the day, but the label is under the Ticks on the left. What i want is the label centered, idealy bordered on the whole area where the label is displayed (please see screenshot).
In addition, i display major lines on Days :
<telerik:RadCartesianChart.Grid>
<telerik:CartesianChartGrid MajorLinesVisibility="X">
<telerik:CartesianChartGrid.MajorXLineStyle>
<Style TargetType="Line">
<Setter Property="Stroke" Value="Black" />
</Style>
</telerik:CartesianChartGrid.MajorXLineStyle>
</telerik:CartesianChartGrid>
</telerik:RadCartesianChart.Grid>
I would like to display minor line every six hours too (please see screenshot on the two first days).
How can i do this ?
Thanks in advance
Hi!
I have date values in my LocalDataSourceProvider and in the filter dialog I want to display only years as values. What I get is:
a) all date values
b) date values with "00:00:00" time added
c) dates with the wrong locale although I set the right culture on my LocalDataSourceProvider (this shoud be German date like "dd.MM.yyy")
What I like to have is a filter dialog showing only "2017, 2018, 2019, 2020, 2021, ..."
Besides that: the filter dialog is much too small if you have a filter condition "between" and two date values, see screenshot.
Regards
Heiko
Hi,
I have a WPF application where the Grid is bound with a list of entity. Row level grouping is applied on the grid. After collapsing all the groups. We are storing the grid configuration in JSON file. While opening the UI, loading the grid configuration saved in JSON file.
After collapsing all the groups manually, horizontal scroll is visible. But on reopening the UI horizontal scroll is not visible. Is it not considering column header that time or what can be the solution around this.
Appreciate on your help, please help.
Thanks!
Samaresh
Trying to plot multiline chart with 18000 data points. Used point template as it is used for each and every data point. It takes 9 secs time to load the UI of chart.
memory utilization increases more than 1-1.5 GB after loading the chart.
Code snippet and chart image is attached...
Hello.
<EventToCommandBehavior.EventBindings> is very similar to the <interaction.triggers> function.
I want to ask if multibinding is possible here.
Is there a way to get both CommandParameter and eventArgs?
I can't build this source, but I hope this will happen. like this
<
View.xaml
>
<
telerik:EventToCommandBehavior.EventBindings
>
<
telerik:EventBinding
EventName
=
"CellPropertyChanged"
Command
=
"{Binding Command}"
PassEventArgsToCommand
=
"True"
CommandParameter={binding
ElementName
=
"gridview"
/>
</
telerik:EventToCommandBehavior.EventBindings
>
<
ViewModel.cs
>
private void Command(object[] obj)
{
var sender = obj[0] as RadGridView;
var e = obj[1] as CellPropertyChangedEventArgs;
}
Thanks.
Hello.
I want to use CellEditEnded event using MVVM.
It's a summary source.
<
Button
Content
=
"Load"
Command
=
"{Binding OnClickLoadCommand}"
CommandParameter
=
"{Binding ElementName=gridViewSharedParameter}"
/><
telerik:RadGridView
x:Name
=
"gridViewSharedParameter"
ItemsSource
=
"{Binding SharedParameterGroupItem.SharedParameterName}"
SelectedItem
=
"{Binding SharedParameterSelectedItem, Mode=TwoWay}"
CurrentItem
=
"{Binding SharedParameterCurrentItem, Mode=TwoWay}"
>
</
telerik:RadGridView
>
<
telerik:EventToCommandBehavior.EventBindings
>
<
telerik:EventBinding
EventName
=
"CellEditEnded"
Command
=
"{Binding OnCelleditEndedTextCommand}"
CommandParameter
=
"{Binding ElementName=gridViewSharedParameter}"
/>
</
telerik:EventToCommandBehavior.EventBindings
>
I found 2 ways.
The first is how to trigger an event in MVVM by using a button.
1. ViewModel.cs (using button in CellEditEnded event)
private void OnClickLoad(object o)
{
(o as RadGridView).CellEditEnded += ViewModel_CellEditEnded;
}
private void ReadParamFromExcelViewModel_CellEditEnded(object sender, GridViewCellEditEndedEventArgs e)
{
. . . . . . . ~~~~~
}
The second uses Telerik EventBinding.
2. ViewModel.cs (Using Xaml telerik:EventToCommandBehavior.EventBindings)
private void OnCelleditEndedText(object o)
{
var objectItem = o as Telerik.Windows.Controls.RadGridView; //
var currentItem = SharedParameterCurrentItem;
var selectedItem = SharedParameterSelectedItem;
}
I do not prefer the first method.
I want to use it in the second way, can I get the GridViewCellEditEndedEventArgs?
I want to control newdata, olddata, and editaction through GridViewCellEditEndedEventArgs.
+) What is the difference between CurrentItem and SelectedItem? It seems to receive the same value.
Thanks.
I am trying to use Data Sampling with a DateTime-based data series. In my main project, I want to dynamically adjust the sampling unit and interval based on the user's zoom level (e.g.turn off sampling when zoomed in to 1 minute, set sampling to 15 minutes when zoomed out to 1 day).
Explicitly setting my SamplingUnit and SamplingUnitInterval works for any value other than NONE. My data is at 1-second intervals, so Second and NONE should be identical. However, SamplingUnit of NONE samples my data at 4-second intervals.
I have a sample project to demonstrate this, but I don't see how to attach the zip file (I can only attach image files).
Thanks,
Brandon