Hi, I've some troubles using the GridMaskedColumn from code behind with version 2010.1.309.35.
Here is how I add dynamically my column:
I'm using a "aaaa" mask to make sure it's the easiest as possible on a varchar(50) field which has valid values. I have the same problem when table is empty.
It works great when displayed. The filters are working correctly with defined mask(while testing something else than 'aaaa') but as soon as I click the edit button, I get an : Cannot create column with the specified type name: GridMaskedColumn
Here is the stack of the error.
I checked and I'm not doing anything special with the column, even not providing mask gives the same error.
Thanks for your help solving this issue.
Here is how I add dynamically my column:
GridMaskedColumn maskColumn = new GridMaskedColumn(); |
columns.Add(maskColumn); |
maskColumn.UniqueName = myDataField; |
maskColumn.HeaderText = myHeaderText; |
maskColumn.Mask = myMask; |
maskColumn.DataField = myDataField; |
maskColumn.SortExpression = myDataField; |
maskColumn.ShowSortIcon = true; |
maskColumn.ShowFilterIcon = true; |
maskColumn.ReadOnly = !editable; |
I'm using a "aaaa" mask to make sure it's the easiest as possible on a varchar(50) field which has valid values. I have the same problem when table is empty.
It works great when displayed. The filters are working correctly with defined mask(while testing something else than 'aaaa') but as soon as I click the edit button, I get an : Cannot create column with the specified type name: GridMaskedColumn
Here is the stack of the error.
[GridException: Cannot create column with the specified type name: GridMaskedColumn] |
Telerik.Web.UI.GridColumnCollection.CreateColumnFromTypeName(String columnTypeName) +1211 |
Telerik.Web.UI.GridColumnCollection.System.Web.UI.IStateManager.LoadViewState(Object savedState) +428 |
Telerik.Web.UI.GridTableView.LoadStructureState(Object SavedStructure) +354 |
Telerik.Web.UI.RadGrid.LoadTableViewStructure(IEnumerator stateEnumerator, GridTableView tableView) +101 |
Telerik.Web.UI.RadGrid.LoadViewState(Object savedStateObject) +276 |
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +183 |
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 |
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221 |
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 |
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221 |
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 |
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221 |
System.Web.UI.Page.LoadAllState() +312 |
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1661 |
I checked and I'm not doing anything special with the column, even not providing mask gives the same error.
Thanks for your help solving this issue.