This is a migrated thread and some comments may be shown as answers.

Add New Row In RadGridView is not Working

1 Answer 361 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dilip
Top achievements
Rank 1
Dilip asked on 23 Jul 2018, 01:58 AM

Hi,

In RadGridView on click "Click Here to Add New Item" is not adding new row to the RadGridView. It is designed with the property as below

<telerik:RadGridView Name="radGridSizeDetails" Grid.Row="1"
                                         ShowGroupPanel="False" AutoExpandGroups="True" ShowGroupFooters="False"
                                         ShowColumnFooters="True" CanUserSortColumns="True" ShowColumnHeaders="True"
                                         AutoGenerateColumns="False"
                                         CanUserInsertRows="True"
                                         NewRowPosition="Top"
                                         GroupRenderMode="Flat"
                                         ShowColumnSortIndexes="True"
                                         ItemsSource="{Binding SizeDetailsList}"
                                         SelectionMode="Single"
                                         RowIndicatorVisibility="Visible"
                                         VerticalAlignment="Stretch"
                                         IsReadOnly="False" AddingNewDataItem="radGridSizeDetails_AddingNewDataItem">

 

Let me know if I miss anything.

 

Thanks

Dilip

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 25 Jul 2018, 10:45 AM
Hello Dilip,

Thank you for the provided image and code snippet.

Checking the code snippet I couldn't find a possible reason what could prevent from adding a new row. I can see that you have subscribed to the AddingNewDataItem event. Have you specified some custom logic in the event handler? Can you try unsubscribing from this event and check again if you are able to add a new row.

I am looking forward to your reply.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
General Discussions
Asked by
Dilip
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or