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

[Solved] Checkbox select all in RadGridview

8 Answers 411 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rajeev
Top achievements
Rank 1
Rajeev asked on 03 Apr 2009, 04:14 AM
Hello,

I have a check box column which has a checkbox for each row radgridview. On clicking of button Select ALL i need to check all the checkboxes and on click of unselect i need to uncheck them all. I have another button called Next where i need to pass the values of the check boxes checked to another xaml page. Can anyone help me how to do this in silverlight environment?

Thanks and Regards,
Rajeev G.C

8 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 03 Apr 2009, 09:19 AM
Hello Rajeev,

I have prepared an example project that covers your scenario. Please find it in the attached archive.

Hope this helps.

Best wishes,
Stefan Dobrev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Rajeev
Top achievements
Rank 1
answered on 06 Apr 2009, 04:50 AM
Hi Stefan,

Thanks for this example. It works perfectly. 

While testing i found these things:
1. Only thing is when you apply group by option to the column the data was not getting binded to the checkbox and hence select all is not working. 
2. I need to just pass just two values (a unique id and check box checked value) from one Radpage to another radpage so that i can query my DB from these parameters in my second radpage to populate another grid.

It would be of great help if you can provide and example for the above requests.

Thanks and Regards,
Rajeev
0
Stefan Dobrev
Telerik team
answered on 09 Apr 2009, 02:37 PM
Hello Rajeev,

I have updated the sample to fix the grouping problem that you have described. I have added a new class SelectableItem that will allow you to pass just the ID and the selected values. The sample is also updated to reflect this.

Hope this helps.

Regards,
Stefan Dobrev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Rajeev
Top achievements
Rank 1
answered on 15 Apr 2009, 01:24 PM
Hi Stefan,

Thanks for the updated example. It works perfectly.  :)

Thanks and Regards,
Rajeev


0
Hector
Top achievements
Rank 1
answered on 04 Jun 2009, 09:02 PM
There is something wrong with the zip file.  I keep getting the following error when I download and try to extract:
File skipped, unknown compressiong method.

I also have the need to show a checkbox next to every row in the GridView to allow users to select/deselect rows.  How can I accomplish this?  Thanks.

-Hector
0
Vlad
Telerik team
answered on 05 Jun 2009, 05:49 AM
Hi Hector,

I've just tried the zip and everything worked fine. Can you please try to download the project again?

All the best,
Vlad
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
Hector
Top achievements
Rank 1
answered on 05 Jun 2009, 12:17 PM
I still cant open the zip file.  It seems like all the contents are empty.  I'll see if my co-worker can download.
0
Hector
Top achievements
Rank 1
answered on 05 Jun 2009, 08:06 PM
OK, I wasn't able to open the zip file with windows explorer, I had to use WinZip.
Tags
GridView
Asked by
Rajeev
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Rajeev
Top achievements
Rank 1
Hector
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or