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

Selection of few rows

2 Answers 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Patxi
Top achievements
Rank 1
Patxi asked on 09 Jun 2009, 07:10 AM
Hello,

I am having a strange issue when selecting few rows in my gridview. To select rows each one have a checkbox.

If I select a row, its background color is changed. If I select another row the background of the actual row is changed but the background color of the previous row dissapears. Theorically the color of the previous selected row sholud remain because is still selected.

Is it necessary to set a property for this?or isn´t this possible to do? I have been checking on-line demos and I have noticed it happens the same as it happens to me, but I don´t know whether this occurs by chance or is impossible to configure.

My other question is the following: in the gridview of my web application I use GridClientSelectColumn to select and unselect all rows. Does exist an equivalent data bound column in desktop applications?

Thank you in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Prad
Top achievements
Rank 2
answered on 09 Jun 2009, 09:49 PM
My other question is the following: in the gridview of my web application I use GridClientSelectColumn to select and unselect all rows. Does exist an equivalent data bound column in desktop applications

-> To Unselect rows ::  RadGrid.CurrentRow = null
-> To Select all rows :: You will have to do an explict looping to use IsSelected Property to select all of them?


I am a bit confused with your other question of background coloring...Excuse me but let me give it shot.

"Theorically the color of the previous selected row sholud remain because is still selected."
Are you holding control button and clicking on multple rows in order to make it as multiple selection?

Prad1
0
Victor
Telerik team
answered on 10 Jun 2009, 09:37 AM
Hello,

The background color of the rows disappears but the border remains blue. This serves as an indication that the row is selected but is not current. The background disappearance is by design and serves to differentiate between the current row and selected rows. This behavior can be configured through our theming mechanism. You should become familiar with our Visual Style Builder application in order to visually tweak the grid as you please. Also check out the videos dedicated to VSB on telerik.tv.
If you need to manipulate the row selection you should loop through the rows and manually select or deselect them.

We do not support all of the features of our web controls in WinForms as well there are feature in WinForms controls not supported in our web controls. Please write back if you have other questions.

Regards,
Victor
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.
Tags
GridView
Asked by
Patxi
Top achievements
Rank 1
Answers by
Prad
Top achievements
Rank 2
Victor
Telerik team
Share this question
or