I have a radgrid with batch editing and a hidden column to decide if the row can be edited.
On the clientside in the OnBatchEditSetEditorValue I check this column and set the innerHTML if the row cannot be edtied.
The trouble is after clicking on a row which cannot be edited the edit control is no longer available on other rows.
function BatchEditSetEditorValue(sender, args) {
var itemContainer = args.get_container();
var editorValue = args.get_value();
var readOnlyRow = false;
if (args.get_row().control.get_dataItem()['readOnlyRow'] != undefined) {
readOnlyRow = args.get_row().control.get_dataItem()['readOnlyRow']
}
if (readOnlyRow) {
itemContainer.innerHTML = editorValue;
args.set_cancel(true);
}
}
Is there a better way or another event I could use to stop the cell going into edit mode?
Thankyou.
private void radGridView1_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e) { if (e.CellElement.RowInfo.Cells["io_time_sec"].Value != null) { Int64 lTime = Convert.ToInt64(e.CellElement.RowInfo.Cells["io_time_sec"].Value); Int16 nStat = Convert.ToInt16(e.CellElement.RowInfo.Cells["io_state"].Value); if ((lTime <= 0) || (lTime >= 36000)) { e.CellElement.DrawText = true; e.CellElement.ForeColor = Color.Red; e.CellElement.NumberOfColors = 1; e.CellElement.GradientStyle = GradientStyles.Solid; } else { e.CellElement.DrawText = true; e.CellElement.ForeColor = Color.Black; e.CellElement.NumberOfColors = 1; e.CellElement.GradientStyle = GradientStyles.Solid; } }}void dgvView_Changed(object sender, CorrectDateTimeEvents e) { if (e.en == CorrectDataEventsEnum.Evt_Cancel) { winform.Close(); } if (e.en == CorrectDataEventsEnum.Evt_OK) { radGridView1.CurrentRow.Cells["io_datein"].Value = e.valueDateIn; radGridView1.CurrentRow.Cells["io_dateout"].Value = e.valueDateOut; radGridView1.CurrentCell.DrawFill = true; radGridView1.CurrentCell.BackColor = Color.BlueViolet; radGridView1.CurrentCell.NumberOfColors = 1; radGridView1.CurrentCell.GradientStyle = GradientStyles.Solid; winform.Close(); } }
Hello,
- We have issue with Radgrid export functionality.Please find attached code.Code contains RadAjaxPanel,RadGrid and Blinking image as background of Rows of RadGrid.
- Export to excel is working fine.
- Issue is after clicking on any export button of grid, image stops to blink.
- After Export, if i refresh page manually, images will start to blink.
- if I placed blinking image outside of Panel, still image stop to blink.
- We need to solve issue for IE8 and IE11 browser.
Here i have attached the source code. RadGridExport.zip
Please let me know your feedback ASAP.
Thanks,
Hiren

protected void btnExportToPDF_Click(object sender, ImageClickEventArgs e) { ApplyStylesToPDFExport(RadGrid1.MasterTableView); RadGrid1.ExportSettings.OpenInNewWindow = true; RadGrid1.ExportSettings.IgnorePaging = true; RadGrid1.ExportSettings.FileName = "Test"; RadGrid1.MasterTableView.ExportToPdf(); }private void ApplyStylesToPDFExport(GridTableView view) { GridItem headerItem = view.GetItems(GridItemType.Header)[0]; foreach (TableCell cell in headerItem.Cells) { switch (cell.Text) { case "A": cell.Width = Unit.Pixel(5); // Tried like this. Not reflecting break; case "B": cell.Style["width"] = "15px"; // Tried like this. Not reflecting break; } cell.Style["font-family"] = "Verdana"; cell.Style["font-bold"] = "true"; cell.Style["text-align"] = "left"; cell.Style["vertical-align"] = "middle"; cell.Style["font-size"] = "8px"; cell.ForeColor = System.Drawing.Color.Black; // Tried like this. Not reflecting } GridItem[] dataItems = view.GetItems(GridItemType.Item); foreach (GridItem item in dataItems) { foreach (TableCell cell in item.Cells) { cell.Style["font-family"] = "Verdana"; cell.Style["text-align"] = "left"; cell.Style["vertical-align"] = "left"; cell.Style["font-size"] = "6px"; cell.Style["text-decoration"] = "none"; // Tried like this. Not reflecting cell.Style["ForeColor"] = "#000"; } } dataItems = view.GetItems(GridItemType.AlternatingItem); foreach (GridItem item in dataItems) { foreach (TableCell cell in item.Cells) { cell.Style["font-family"] = "Verdana"; cell.Style["text-align"] = "left"; cell.Style["vertical-align"] = "middle"; cell.Style["font-size"] = "6px"; cell.Style["text-decoration"] = "none"; cell.ForeColor = System.Drawing.Color.Black; } } }Is there a way to change the Label Text of the CheckAll Checkbox to a custom text?
For example I have a list of States with checkboxes. I want to change the default text of "Check All" to "All States".
Thanks
