This question is locked. New answers and comments are not allowed.
I know this should be simple and it's probably a stupid question, but I have a button called "Reset". When the user clicks it, I would like the radgrid to show that 0 Rows are selected. I've tried:
radgridFeatures.UnselectAll();
radgridFeatures.SelectedItems.Clear();
radgridFeatures.SelectedItem = null;
radgridFeatures.UpdateLayout();
radgridFeatures.CurrentItem = null;
But there is still 1 item selected in the RadGrid. I am using the latest build(2010). What am I missing?
Thank you very much.
radgridFeatures.UnselectAll();
radgridFeatures.SelectedItems.Clear();
radgridFeatures.SelectedItem = null;
radgridFeatures.UpdateLayout();
radgridFeatures.CurrentItem = null;
But there is still 1 item selected in the RadGrid. I am using the latest build(2010). What am I missing?
Thank you very much.
7 Answers, 1 is accepted
0
Hi mark,
All the best,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
radgridFeatures.SelectedItems.Clear(); should do the trick. If there is indeed one selected item after that it would be really helpful to take a look at your application since we cannot reproduce the problem.
All the best,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
mark baer
Top achievements
Rank 1
answered on 17 Mar 2010, 04:57 PM
I opened support Ticket: 291315 and uploaded my project there.
Thanks
Mark
Thanks
Mark
0
M
Top achievements
Rank 1
answered on 25 Feb 2011, 08:43 PM
For the record, the line is :
The SelectedItems property does not have a Clear() method.
radgridFeatures.SelectedIndexes.Clear();
The SelectedItems property does not have a Clear() method.
0
DaveBarkshire
Top achievements
Rank 1
answered on 28 May 2012, 12:55 PM
I'm having the same problem and don't know if there is some confusion over terminology. Does 'selected' mean 'in edit mode'?
I have a row which has had the row update button clicked so that it is in edit mode. If I then change the sql with a button on the form and rebind the grid it still shows the third row as being in edit mode.
rgdGrid.SelectedIndexes.Clear() // This does not clear it.
rgdGrid.SelectedItems.Count // This is = 0
rgdGrid.EditItems.Count // This is = 1
rgdGrid.EditItems[0].IsInEditMode // This is true (ready only property)
I can get a handle to rgdGrid.EditItems[0] but can see no method to cancel the edit mode.
Any ideas?
I have a row which has had the row update button clicked so that it is in edit mode. If I then change the sql with a button on the form and rebind the grid it still shows the third row as being in edit mode.
rgdGrid.SelectedIndexes.Clear() // This does not clear it.
rgdGrid.SelectedItems.Count // This is = 0
rgdGrid.EditItems.Count // This is = 1
rgdGrid.EditItems[0].IsInEditMode // This is true (ready only property)
I can get a handle to rgdGrid.EditItems[0] but can see no method to cancel the edit mode.
Any ideas?
0
Hello,
Vlad
the Telerik team
Are you sure your question is related to RadGridView for Silverlight?
Kind regards,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
DaveBarkshire
Top achievements
Rank 1
answered on 28 May 2012, 01:03 PM
This is ajax asp.net
I have found a way to get around this problem. There are a few postings about this so I hope that it will be useful for others.
I have found a way to get around this problem. There are a few postings about this so I hope that it will be useful for others.
foreach (GridItem item in rgdGrid.MasterTableView.Items)
{
if (item is GridEditableItem)
{
GridEditableItem editableItem = item as GridDataItem;
editableItem.Edit =
false;
}
}
0
Hello,
Vlad
the Telerik team
Please use relevant forum category!
Greetings,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>