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

Prevent change on GridViewRatingColumn

2 Answers 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas Bargholz
Top achievements
Rank 1
Iron
Thomas Bargholz asked on 01 Feb 2019, 01:31 PM

Hi,

I have a grid containing a GridViewRatingColumn (amongst other columns).

I need the grid to be read-only, and have set AllowEditRow and AllowAddNewRow properties to false on the radGridView.

None the less, the user is able to change the value of the rating field anyway. How do I prevent changing of the rating column as well?

Regards

Thomas

2 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 05 Feb 2019, 11:25 AM
Hello, Thomas,        

In order to prevent value changing in the GridViewRatingColumn, it is necessary to set the GridViewRatingColumn.ReadOnly property to true. Thus, neither the rating hover will be enabled, nor the value will be changed when you click over the rating element inside the cell. I have attached a sample project for your reference. 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Thomas Bargholz
Top achievements
Rank 1
Iron
answered on 05 Feb 2019, 11:42 AM

Thanks Dess, that did the trick :)

Regads,
Thomas

Tags
GridView
Asked by
Thomas Bargholz
Top achievements
Rank 1
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Thomas Bargholz
Top achievements
Rank 1
Iron
Share this question
or