This project is read-only.

Grid.mvc MarkRowSelected

Jul 10, 2014 at 7:52 AM
I found function
gridMvc.prototype.markRowSelected
how can I use it to highlight specific row? (like that one that contains some sort of information, like Id = 1 or so on)
Jul 28, 2014 at 5:03 AM
Hi,

You can apply a custom class to each row:
@Html.Grid(Model).Named("myGrid").Columns(...).SetRowCssClasses(order=> "custom_row_" + order.OrderID)
Then select row by class
var row = $('.custom_row_' + id);
pageGrids.myGrid.markRowSelected(row);