I am doing google like filtering in two level hierarchy. On first level I do not want filtering. In Second level I want filtering. When I create gridcolumn on page load and that column in gridtableview & add that girdtableview in mastertable then it shows me error such as "You must override Clone() method for derived grid colimn. Please help me.
Thanks in advance.
5 Answers, 1 is accepted
Please check this article for more info:
the Telerik team
Actually in Design page I am creating mastertable. But in codeing I am writing below code
void Page_Load(object sender, EventArgs e)
dt = GeXYZTable();
GridTableView gridxyz = new GridTableView(RadGrid1);
foreach (DataColumn dataColumn in dt.Columns)
if (dataColumn.ColumnName != "Edit" && dataColumn.ColumnName != "Details" && dataColumn.ColumnName != "Status")
//GridBoundColumn gridColumn = new GridBoundColumn ();
MyCustomFilteringColumnCS gridColumn = new MyCustomFilteringColumnCS();
gridColumn.DataField = dataColumn.ColumnName;
gridColumn.HeaderText = dataColumn.ColumnName;
But it give me error as You must override Clone() method for derived grid column.
When inheriting grid columns in hierarchy, you need to override their Clone() method and copy the base properties as follows:
For further information you can review this online help article (bottom of the page).
Regards, Georgi Krustev
the Telerik team
I know it's been years since this thread has been active, but I've been wondering if it's possible to get a little help in "you should override CopyBaseProperties if you have some column specific properties" part. Would you please provide a sample, I would be really grateful.
Thanks in advance
This info is mentioned here:
Essentially, if you would like to create a custom grid column, please check the third solution provided in the following post: Custom Grid Column. Additionally, you can also have a look at this article:
Hope this helps.