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

Problem with" Click here to add new row"

1 Answer 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sirum
Top achievements
Rank 1
Sirum asked on 28 Sep 2011, 01:58 PM
Hello,

I am trying to add a new row to my RagGridView where I host a GridViewComboBoxColumn and a GridViewDataColumn like:
<Grid>
<telerik:RadGridView>
     <telerik:RadGridView.Columns>
        <telerik:GridViewComboBoxColumn>
        </telerik:GridViewComboBoxColumn>
        <telerik:GridViewDataColumn>
        </telerik:GridViewDataColumn>
     </telerik:RadGridView.Columns>
</telerik:RadGridView>
</Grid>

The field "Click here to add new row" on RadGridView is dead and is even not clickable.
What to do make it working? I may even try to take it away but do know how.

Thanks.

1 Answer, 1 is accepted

Sort by
0
DBlagg
Top achievements
Rank 1
answered on 19 Jun 2012, 03:52 PM
I assume you were able to fix this issue, but in case someone else has the same problem that I did, I'll post the fix.
We are using a context menu to right click and delete items from the grid.
This issue was only happening to us when there was a single item in the grid and a combo box was being edited.
When you right click and delete in this case, the Click Here To Add New Row is no longer enabled and clickable.
The grid was bound to a ListCollectionView with a filter on it to exclude deleted items that was being refreshed on deletion.
Change the debug exceptions thrown to include Common Language Runtime Exceptions and you can see an exception is thrown.
To fix the problem, only refresh the ListCollectionView if the count is greater than zero.
Tags
GridView
Asked by
Sirum
Top achievements
Rank 1
Answers by
DBlagg
Top achievements
Rank 1
Share this question
or