Hi..
I've tracked a problem down which I initially thought was related to Tabstrip but seems it is actually setting the grid edit mode in code whereby including the lines of code below prevent a select box working in IE 11 on my page. If I comment the lines of code out the select box then works fine. This issue doesn't appear on firefox/chrome though only IE.
RadGrid1.MasterTableView.EditMode = GridEditMode.Batch;
RadGrid1.MasterTableView.BatchEditingSettings.EditType = GridBatchEditingType.Cell;
The procedure simply displays a hidden column and changes the editmode. I'm wondering if the same thing can be done client side? Is there a way in javascript to achieve result?
if (RadGrid1.MasterTableView.GetColumn("Map").Display != true)
{
RadGrid1.MasterTableView.EditMode = GridEditMode.Batch;
RadGrid1.MasterTableView.BatchEditingSettings.EditType = GridBatchEditingType.Cell;
RadGrid1.MasterTableView.GetColumn("Map").Display = true;
foreach (GridColumn col in RadGrid1.MasterTableView.Columns)
if (col.UniqueName == "col1" || col.UniqueName == "col2" || col.UniqueName == "col3")
{
GridBoundColumn boundColumn = col as GridBoundColumn;
boundColumn.ReadOnly = true;
}
}
else
{
RadGrid1.MasterTableView.EditMode = GridEditMode.EditForms;
RadGrid1.MasterTableView.GetColumn("Map").Display = false;
foreach (GridColumn col in RadGrid1.MasterTableView.Columns)
if (col.UniqueName == "col1" || col.UniqueName == "col2" || col.UniqueName == "col3")
{
GridBoundColumn boundColumn = col as GridBoundColumn;
boundColumn.ReadOnly = false;
}
}
I've tracked a problem down which I initially thought was related to Tabstrip but seems it is actually setting the grid edit mode in code whereby including the lines of code below prevent a select box working in IE 11 on my page. If I comment the lines of code out the select box then works fine. This issue doesn't appear on firefox/chrome though only IE.
RadGrid1.MasterTableView.EditMode = GridEditMode.Batch;
RadGrid1.MasterTableView.BatchEditingSettings.EditType = GridBatchEditingType.Cell;
The procedure simply displays a hidden column and changes the editmode. I'm wondering if the same thing can be done client side? Is there a way in javascript to achieve result?
if (RadGrid1.MasterTableView.GetColumn("Map").Display != true)
{
RadGrid1.MasterTableView.EditMode = GridEditMode.Batch;
RadGrid1.MasterTableView.BatchEditingSettings.EditType = GridBatchEditingType.Cell;
RadGrid1.MasterTableView.GetColumn("Map").Display = true;
foreach (GridColumn col in RadGrid1.MasterTableView.Columns)
if (col.UniqueName == "col1" || col.UniqueName == "col2" || col.UniqueName == "col3")
{
GridBoundColumn boundColumn = col as GridBoundColumn;
boundColumn.ReadOnly = true;
}
}
else
{
RadGrid1.MasterTableView.EditMode = GridEditMode.EditForms;
RadGrid1.MasterTableView.GetColumn("Map").Display = false;
foreach (GridColumn col in RadGrid1.MasterTableView.Columns)
if (col.UniqueName == "col1" || col.UniqueName == "col2" || col.UniqueName == "col3")
{
GridBoundColumn boundColumn = col as GridBoundColumn;
boundColumn.ReadOnly = false;
}
}