Telerik Forums
UI for WPF Forum
1 answer
118 views
I found a post from 2014 where telerik rep is stating that virtual scrolling will not work with dynamic data. is this still the case?

https://www.telerik.com/forums/virtual-scrolling-doesn't-work-with-dynamic-data
Martin Ivanov
Telerik team
 answered on 26 Dec 2019
10 answers
3.7K+ views
I'm building a rules engine that allows date constraints.  I want to be able to use a datetime picker to select the month and day, but I don't want to show the year.  Is this possible with your control?

Jason
Moses
Top achievements
Rank 1
 answered on 26 Dec 2019
1 answer
7.5K+ views

I have "Product" AutoCompletebox where the user type Product Name. When the user press enter, this "Product" will be added to the GridView and auto-focus to "Quantity "cell. (I've successfully developed this part.)

After the user type Quantity in GridView's Cell, I want to Commit and End Edit to this row and focus (cursor) return back to "Product" AutoCompletebox. This is the part that I don't know how to do it.

Currently I have tried something like the following:

private void RadGridViewInvoiceItems_CellEditEnded( object sender, GridViewCellEditEndedEventArgs e )
{
         if ( e.Cell.Column.Header.ToString() == "Quantity")
         {              this.gridView.CommitEdit();
                this.productAutoCompleteBox.Focus();            
         }
}

 

But the above code cause "StackOverFlow" exception. How should I solve this problem?

P.S. I have developed this app with C# Wpf with MVVM pattern.

I have "Product" Textbox where the user type Product Name. When the user press enter, this "Product" will be added to the GridView and auto-focus to "Quantity "cell. (I've successfully developed this part.)

After the user type Quantity in GridView's Cell, I want to CommitEdit to this row and focus return back to "Product" textbox. This is the part that I don't know how to do it.

Currently I have tried something like the following:

private void RadGridViewInvoiceItems_CellEditEnded( object sender, GridViewCellEditEndedEventArgs e )
{
      if ( e.Cell.Column.Header.ToString() == "Quantity" )
      {
           this.gridView.CommitEdit();
           this.productTextBox.Focus();
      }         
}

But the above code cause "StackOverFlow" exception. How should I solve this problem?

P.S. I have developed this app with C# Wpf with MVVM pattern and Telerik controls.

I have "Product" Textbox where the user type Product Name. When the user press enter, this "Product" will be added to the GridView and auto-focus to "Quantity "cell. (I've successfully developed this part.)

After the user type Quantity in GridView's Cell, I want to CommitEdit to this row and focus return back to "Product" textbox. This is the part that I don't know how to do it.

Currently I have tried something like the following:

private void RadGridViewInvoiceItems_CellEditEnded( object sender, GridViewCellEditEndedEventArgs e )
{
      if ( e.Cell.Column.Header.ToString() == "Quantity" )
      {
           this.gridView.CommitEdit();
           this.productTextBox.Focus();
      }         
}

But the above code cause "StackOverFlow" exception. How should I solve this problem?

P.S. I have developed this app with C# Wpf with MVVM pattern and Telerik controls.

Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 26 Dec 2019
7 answers
244 views

     Do you guys have an example of DateTime data virtualization?

My data is updating live. I need a way to update visual ranges every second as data comes in and scroll backwords with the scroll bar through historical data.

I have 2 observable collections one for the total data and one for the visible data.

In the example project I see it updating using the ActualVisiualRange event on the telerik:LinearAxis but as far as event args I only see e.Newrange.Minimum/Maximum which seems to be the Y range not the X... 

Insight would be helpful as im not sure how to update the X data which are DateTimes in this event...

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Dec 2019
1 answer
249 views

Hi,

The RadGridView Control is taking a long time to render.

I followed exactly ALL of the recommendations listed here :
https://docs.telerik.com/devtools/wpf/controls/radgridview/performance/tips-tricks

10 Rows
5 Columns
Binding only preloaded string (no code exucution delay)

But still, there is a noticable delay. 
Loading an UserControl with a RadGridView in it from a TabControl for example freezes the ui for quite some time.
It will be really noticiable for the enduser.

It takes more than 3 times the loading time of a Microsoft DataGrid (see attachements), why ?

Regards.

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Dec 2019
1 answer
210 views

WPF RadGridView GridViewSelectColumn: count of item selected

 

How to get the count of items that are checked by GridViewSelectColumn check box

Vladimir Stoyanov
Telerik team
 answered on 23 Dec 2019
4 answers
456 views

Hi,

I've implemented a RadWindow.Confirm() box with custom 'Ok' functionality and it works fine. However, I'm having a problem with the confirmation box disappearing behind the main application window when I click to any window behind the main application window. To be more clear, say I have windows A and B. B is the main application window, A is Outlook (nothing to do with my application). When I display a confirmation box in window B, it shows fine. Now, if I click on window A, without making a selection in the confirmation box, both window B and the confirmation box disappear. Good so far. Now, if I select window B from the task bar, window B is displayed, but the confirmation box is not. Window B is no longer responsive until I action the confirmation box which I have to ALT-TAB to get to.

Is this a bug or is there some configuration I can use to ensure it always stays on top of my application window?

Thanks

Vladimir Stoyanov
Telerik team
 answered on 20 Dec 2019
2 answers
219 views

Is is possible to have more than one editor on a page? 

When I add 3 like in the example below I can only interact with the first one. 

By the way, this is a great new control, thank you for adding it. 

01.<ScrollViewer>
02.    <StackPanel>
03.        <Grid Margin="0,4">
04.            <Grid.RowDefinitions>
05.                <RowDefinition Height="Auto"/>
06.                <RowDefinition Height="*"/>
07.            </Grid.RowDefinitions>
08.            <TextBlock Grid.Row="0" Text="Custom PowerShell"/>
09.            <telerik:RadSyntaxEditor x:Name="PsEditor" Grid.Row="1" MinHeight="400" />
10.        </Grid>
11. 
12.        <Grid Margin="0,4">
13.            <Grid.RowDefinitions>
14.                <RowDefinition Height="Auto"/>
15.                <RowDefinition Height="*"/>
16.            </Grid.RowDefinitions>
17.            <TextBlock Grid.Row="0" Text="Custom JavaScript"/>
18.            <telerik:RadSyntaxEditor x:Name="JsEditor" Grid.Row="1" MinHeight="400" />
19.        </Grid>
20. 
21.        <Grid Margin="0,4">
22.            <Grid.RowDefinitions>
23.                <RowDefinition Height="Auto"/>
24.                <RowDefinition Height="*"/>
25.            </Grid.RowDefinitions>
26.            <TextBlock Grid.Row="0" Text="Custom CSS"/>
27.            <telerik:RadSyntaxEditor x:Name="CssEditor" Grid.Row="1" MinHeight="400" />
28.        </Grid>
29.    </StackPanel>
30.</ScrollViewer>
Richard
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 20 Dec 2019
3 answers
894 views

Hi!
I need to configure textBlock wrapping  in a custom style for GridViewCell in GridViewDataColumn. How to do this?

Style:

<Style x:Key="GridViewCellWrapping" TargetType="TextBlock">

        <Setter Property="TextWrapping" Value="Wrap"/>

</Style>

Use style:

<telerik:RadTreeListView.Columns>

<telerik:GridViewDataColumn Width="*" CellStyle="{StaticResource GridViewCellWrapping}"    

  Header="{x:Static strRes:Resources.txtSpecification}" DataMemberBinding="{Binding Description}"/>

</telerik:RadTreeListView.Columns>

 

And it doesn't work.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Dec 2019
2 answers
228 views

WPF RadGridview filtering on load throws exception. When Grid is loaded but not bound to any data, we get following error:

 

Object reference not set to an instance of object. the column cannot be filtered.  

the column cannot be filtered. 

A column without EffectiveFilteringType cannot supply AvailableFilterOperators

 

 

filtering works when data is loaded though

Dilyan Traykov
Telerik team
 answered on 20 Dec 2019
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?