Hi;
I need to be able to override the style for inline editting on one of my grids. This grid is a batch update where all the rows are changed to edit mode in PreRender.
My skin shows the grid as a green row when selected by default.
Is there anyway to change it so it will look like the gridrow is not in edit mode?
Here is my preRender code: But it does not change the style.
// change all rows into edit mode.
bool altRow = false;
foreach (GridItem item in this.RadGridThematicLayer.MasterTableView.Items)
{
if (item is GridEditableItem)
{
// Here is where we add the style to make it look like everything else.
GridEditableItem editableItem = item as GridDataItem;
if (editableItem != null)
{
editableItem.Edit = true;
editableItem.CssClass = altRow ? "GridAltRow_Telerik" : "GridRow_Telerik";
altRow = !altRow;
}
}
}
RadGridThematicLayer.Rebind();
I need to be able to override the style for inline editting on one of my grids. This grid is a batch update where all the rows are changed to edit mode in PreRender.
My skin shows the grid as a green row when selected by default.
Is there anyway to change it so it will look like the gridrow is not in edit mode?
Here is my preRender code: But it does not change the style.
// change all rows into edit mode.
bool altRow = false;
foreach (GridItem item in this.RadGridThematicLayer.MasterTableView.Items)
{
if (item is GridEditableItem)
{
// Here is where we add the style to make it look like everything else.
GridEditableItem editableItem = item as GridDataItem;
if (editableItem != null)
{
editableItem.Edit = true;
editableItem.CssClass = altRow ? "GridAltRow_Telerik" : "GridRow_Telerik";
altRow = !altRow;
}
}
}
RadGridThematicLayer.Rebind();