Telerik Forums
UI for WPF Forum
0 answers
109 views

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

Samaresh
Top achievements
Rank 1
 asked on 26 Mar 2021
1 answer
186 views

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...

 

 

Martin Ivanov
Telerik team
 answered on 26 Mar 2021
1 answer
651 views

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.

Martin Ivanov
Telerik team
 answered on 25 Mar 2021
4 answers
1.6K+ views

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.

Martin Ivanov
Telerik team
 answered on 25 Mar 2021
6 answers
129 views

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

Dilyan Traykov
Telerik team
 answered on 24 Mar 2021
1 answer
116 views

Hello,

This is related to https://www.telerik.com/forums/samplingunit-of-none-does-not-disable-sampling, but I think a bit more specific of an issue.

I enable Data Sampling with a DateTime-based series by applying a ChartDataSourceStyle. Once I do this, sampling is always applied, even if my threshold allows all data points to be shown - it still goes through to sampling process.

 

I tried setting the ChartDataSourceStyle to null, expecting sampling to be disabled, but instead the previously-used sampling settings remained applied.  For instance, I may have my sampling set to a 5-minute interval, then when I zoom in to a small enough range to set the ChartDataSourceStyle to null, and my data remains sampled at 5-minute intervals.

 

When profiling my application, it appears that ChartSeriesDescriptor.OnChartDataSourceStyleChanged() ignores a change to a null style, and leaves the series descriptor bindings unchanged.  However, ChartSeriesDescriptor.BindItemsSource() does include a check for a null style, and if so binds directly to the ChartSeries rather than the ChartDataSource. Should the null check in ChartSeriesDescriptor.OnChartDataSourceStyleChanged() be removed?

 

Thanks,

 

Brandon

 

Dilyan Traykov
Telerik team
 answered on 24 Mar 2021
1 answer
72 views
hello,

we have an issue with RadScheduleView control 
1) we schedule slots of 8 min interval when we scroll down to 11:56 am slot.
on that slot we found bug when we select that slot, half part of that slot get selected not full slot.
that's why our booking mismatch from slot and UI getting thin of that booking 
check following screen shot and video for this bug
we need solution on this bug because this bug found on every day on our RadScheduleView control
and send me the solution on email 
Vladimir Stoyanov
Telerik team
 answered on 24 Mar 2021
1 answer
81 views
hello,

we have an issue with RadScheduleView control 
1) we schedule slots of 8 min interval when we scroll down to 11:56 am slot.
on that slot we found bug when we select that slot, half part of that slot get selected not full slot.
that's why our booking mismatch from slot and UI getting thin of that booking 
check following screen shot and video for this bug
we need solution on this bug because this bug found on every day on our RadScheduleView control
and send me the solution on email 
Vladimir Stoyanov
Telerik team
 answered on 24 Mar 2021
1 answer
189 views
I have several LineSeries on a RadCartesianPlot.  When the user selects one of the series, I want to ensure that series is drawn on top of the others, so I would like to set its ZIndex property in a Style Trigger like this:

<Style TargetType="telerik:LineSeries">
    <Style.Triggers>
        <Trigger Property="IsSelected"
                 Value="True">
            <Setter Property="ZIndex"
                    Value="999"/>
        </Trigger>
    </Style.Triggers>
</Style>

However, I cannot set the ZIndex property via a Setter because it is not a DependencyProperty.  This post (https://www.telerik.com/forums/setting-zindex-when-using-chartseriesprovider) has a similar issue, and the recommended solution is to create an attached property, but this seems like something that should "just work".  In fact, some other posts show setting the ZIndex in a Setter as if it should work (https://www.telerik.com/forums/seriesprovider-and-series-display-order).  Can the ZIndex property be changed to a DependencyProperty so we don't have to implement a workaround to use it in a Trigger?
Dinko | Tech Support Engineer
Telerik team
 answered on 24 Mar 2021
6 answers
749 views

Hello,

how would I go about if I wanted the RadAutoCompleteBox to show all items if the SearchText is empty instead of no items at all?

I had my desired behaviour already implemented using the RadComboBox, which was perfectly fine, despite the fact that I'm dealing with mutliple thousands of items easily and the AutoCompleteBox seems to deal with those amounts of items better than the ComboBox.

What I want is a AutoComplete box that opens upon getting the focus (or upon pressing Ctrl + Space). If the SearchText is populated I want the dropdown to contain the filtered list. But if the SearchText is empty I want the dropdown to show all the entries. Currently it shows none.

To open the dropdown on focus and on ctrl+space is not the problem. Only the contents of the dropdown.

I found guides for silverlight (https://www.telerik.com/forums/display-all-items-on-focus) aswell asp.net (https://www.telerik.com/support/kb/aspnet-ajax/autocompletebox/details/show-all-records-when-focusing-the-input-element-of-autocompletebox) but was not able to adept those solutions fopr WPF.

Martin Ivanov
Telerik team
 answered on 23 Mar 2021
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?