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

clearSelectedItems() not working (bug?)

0 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 03 Mar 2017, 01:13 AM

This is something that was driving me crazy.

I have a project that I updated to use the 2015.2.826.40 version. I noticed that when I was trying to clear the selection of the grid it was not working. The grid is set to allow selections and I have a function attached to a button that will clear the selection.Using the basic code (I tried a number of variations and even looping through the items and setting the selected property to false):

var grid = $find("<%=RadGrid1.ClientID %>");
grid.clearSelectedItems();

 

I spent a lot of time going through the code and trying to find out what the issue could be, nothing. I discovered that if I set the grid to allowMultiSelect='true' then it worked! The issue is I can't allow multi select.

I then tested my old project (backup) and everything worked correctly. I then replaced the control .dll files in my new (updated) project with version 2014.2.724.40 and the code is now working :/

Is this a bug or known issue with this version? Has anybody else seen this? I am sure this is fixed in later versions but I am locked into this version. Any suggestions?

Thanks,
Craig

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Craig
Top achievements
Rank 1
Share this question
or