Hi All,
I have a radgrid in my web application in which I disable the grid due to some conditions in code, but when the items(rows) exceed the height of grid I am not able to see the content as scrolling is also disabled due to grid being disabled.
I have tried the below code so far in order to enable the RadGrid but set the columns to readonly.
RGSellingEntity.Enabled = true;
bool ReadOnly = true;
foreach (GridColumn col in RGSellingEntity.MasterTableView.Columns)
{
if (col.ColumnType == "GridBoundColumn")
{
col
GridBoundColumn boundCol = (GridBoundColumn)col;
boundCol.ReadOnly = ReadOnly;
}
if (col.ColumnType == "GridTemplateColumn")
{
GridTemplateColumn tempCol = (GridTemplateColumn)col;
tempCol.ReadOnly = ReadOnly;
}
}
but it did not work, the thing I want is that the radgrid should be in disabled except :the scrollbars(vertical) so that user can scroll through the items/rows in radgrid.
I need to do this code behind based on some conditions.
Can someone please help ASAP?
Thanks in advance!
regards,
Peeyush Pandey
I have a radgrid in my web application in which I disable the grid due to some conditions in code, but when the items(rows) exceed the height of grid I am not able to see the content as scrolling is also disabled due to grid being disabled.
I have tried the below code so far in order to enable the RadGrid but set the columns to readonly.
RGSellingEntity.Enabled = true;
bool ReadOnly = true;
foreach (GridColumn col in RGSellingEntity.MasterTableView.Columns)
{
if (col.ColumnType == "GridBoundColumn")
{
col
GridBoundColumn boundCol = (GridBoundColumn)col;
boundCol.ReadOnly = ReadOnly;
}
if (col.ColumnType == "GridTemplateColumn")
{
GridTemplateColumn tempCol = (GridTemplateColumn)col;
tempCol.ReadOnly = ReadOnly;
}
}
but it did not work, the thing I want is that the radgrid should be in disabled except :the scrollbars(vertical) so that user can scroll through the items/rows in radgrid.
I need to do this code behind based on some conditions.
Can someone please help ASAP?
Thanks in advance!
regards,
Peeyush Pandey