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

RadGrid selection Clearing

6 Answers 789 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lekha
Top achievements
Rank 1
lekha asked on 19 Jun 2009, 07:30 AM
Hi
I am having a radgrid its multiselection is set true.After selectcommand i select rows ....Its deselecting After the deselect command only...
But i want to deselect the selected rows after a button click..Is there any property for that??
Please share suggessions


lekha

6 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Jun 2009, 07:57 AM
Hi Lekha,

I guess you want to deselect the selected rows when clicking the button outside the radgrid. If so try the following code snippet.

CS:
 
protected void Button2_Click(object sender, EventArgs e) 
    RadGrid1.SelectedIndexes.Clear(); // Deselect all 

Thanks,
Shinu.
0
lekha
Top achievements
Rank 1
answered on 19 Jun 2009, 09:00 AM
I tried the code but its not deselecting selected rows

thank you

0
Accepted
Daniel
Telerik team
answered on 19 Jun 2009, 04:36 PM
Hello Lekha,

I created a sample project that demonstrates how to clear the selected items (I use the same approach as Shinu). Let us know whether it is working as expected at your side.

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
lekha
Top achievements
Rank 1
answered on 20 Jun 2009, 05:26 AM
First of all Thanks for the reply....But its nnot working in my case.I use the logic in the following link....
Persisting the selected rows server-side on sorting/paging/filtering/grouping
here I persist the selected rows after pageindex changing....after that i want to move the selected rows into another grid.....and want to deselect the selected  rows.....This is my issue...
Hope u can help me
Thank u
Lekha
0
Basel Nimer
Top achievements
Rank 2
answered on 14 Apr 2010, 03:41 PM
i too have the same problem,

0
Daniel
Telerik team
answered on 16 Apr 2010, 09:18 PM
Hello Lekha and Basel,

I attached a modified version of the previous demo to this thread. Please note that you should clear the Session manually, otherwise you won't be able to deselect the items.

Regards,
Daniel
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.
Tags
Grid
Asked by
lekha
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
lekha
Top achievements
Rank 1
Daniel
Telerik team
Basel Nimer
Top achievements
Rank 2
Share this question
or