Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

How do I change the type of an auto-generated column after generation?

$
0
0

Hello Telerik-Team,

we would like to use our own columntypes in a RadGrid in order to make the filter control a combobox.

We have the following code in the ColumnCreated-Event:

if (boundColumn.UniqueName.Equals("CaseStage"))
 
{
    grid.MasterTableView.Columns.Remove(boundColumn);
 
    CustomFilteringColumn cfBoundColumn = new CustomFilteringColumn();
    grid.MasterTableView.Columns.Add(cfBoundColumn);
     
    cfBoundColumn.DataField = "CaseStage";
    cfBoundColumn.HeaderText = "CaseStage";
}

 

When we then try to filter the Grid using one of the other filter fields we get the following error message:

Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Cannot create column with the specified type name: CustomFilteringColumn

 

Can you help us interpret the error message or perhaps suggest an alternative way to make the filtercontrol a combobox when using auto-generated columns?

 

Thank you in advance!

Roxane

 


Viewing all articles
Browse latest Browse all 94857


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>