Prevent change on GridViewRatingColumn

3 posts, 1 answers
  1. Thomas Bargholz
    Thomas Bargholz avatar
    14 posts
    Member since:
    Oct 2006

    Posted 01 Feb 2019 Link to this post

    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. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3903 posts

    Posted 05 Feb 2019 Link to this post

    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.
  3. Thomas Bargholz
    Thomas Bargholz avatar
    14 posts
    Member since:
    Oct 2006

    Posted 05 Feb 2019 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Thanks Dess, that did the trick :)

    Regads,
    Thomas

Back to Top