Dear friends,
I have an issue after upgrading my web forms project to the new version (2015 1 225) of THE UI for ASP.NET AJAX. And it is that the code, which works ok in older versions, does not work anymore in the new version...? The error, which is produced within executing of the bellow shown methods is: "CANNOT FIND A CELL BOUND TO COLUMN...". The code:
P.S. Grid is dinamicaly populated using stored procedure which just returns data rows using plain select statement. Data binding is done in "On need data source" from the grid.
And also please see attached file for details. I would appreciate any suggestions.
Regards,
Erik D.
I have an issue after upgrading my web forms project to the new version (2015 1 225) of THE UI for ASP.NET AJAX. And it is that the code, which works ok in older versions, does not work anymore in the new version...? The error, which is produced within executing of the bellow shown methods is: "CANNOT FIND A CELL BOUND TO COLUMN...". The code:
//formating data grid
protected
void
RadGrid10_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
{
GridDataItem dataItem = (GridDataItem)e.Item;
dataItem.BackColor = System.Drawing.Color.FromName(dataItem[
"M"
].Text); ;
dataItem.Font.Size = Convert.ToInt16(dataItem[
"L"
].Text);
dataItem.Font.Bold = dataItem[
"N"
].Text ==
"true"
?
true
:
false
;
dataItem.Font.Italic =
true
;
dataItem.BorderStyle = BorderStyle.Solid;
dataItem.BorderWidth = Unit.Pixel(1);
dataItem.BorderColor = System.Drawing.Color.Black;
}
}
//export to pdf
protected
void
ImageButton1_Click(
object
sender, ImageClickEventArgs e)
{
if
((String)Session[
"partnerHP"
] !=
"-9999"
)
{
foreach
(GridDataItem item
in
RadGrid10.Items)
{
item.Style[
"background-color"
] = item[
"M"
].Text;
item.Style[
"font-family"
] =
"Arial Unicode MS"
;
}
RadGrid10.ExportSettings.Pdf.Title = hf.Value.ToString();
RadGrid10.ExportSettings.FileName = hf.Value;
GridHeaderItem headerItem = RadGrid10.MasterTableView.GetItems(GridItemType.Header)[0]
as
GridHeaderItem;
headerItem.Visible =
false
;
RadGrid10.MasterTableView.ExportToPdf();
}
else
{
RadWindowManager1.RadAlert(
"Za izpis v pdf morajo biti prikazane podrobnosti!"
, 400, 150,
null
,
null
);
}
}
P.S. Grid is dinamicaly populated using stored procedure which just returns data rows using plain select statement. Data binding is done in "On need data source" from the grid.
And also please see attached file for details. I would appreciate any suggestions.
Regards,
Erik D.