1

I have a SELECTABLE telerik grid with a checkbox column. When the checkbox is selected I change the background color of the row to yellow using javascript.

I would like to restore the original css of the grid when the checkbox is deselected using javascript. I can toggle the row background color but because the grid is selectable the css doesn't act the same way the default grid. This is having alternating background colors for rows and a row hover background color change.

Is this possible, and how is it done? Thanks.

1
  • 1
    Andre... it can be done yes Commented Nov 21, 2013 at 23:33

1 Answer 1

1

Telerik mvc grid has built in row selection capabilities. Take a look at this page : Client Side Selection in TELERIK MVC GRID. Only adding the following to your grid

.Selectable()
.ClientEvents(events => events.OnRowSelected("onRowSelected"))

should work

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.