Hi Team
We have defined a custom button column which is inherited from GridButtonColumn. On page load we can see the column and button in it. As soon as it gets data from an Ajax call. Data is populated into the grid but it clears all the contents in the custom button cell.This option is working fine in version 2013.3.1114.35 . As soon as I migrated to version 2014.3.1024.35 this problem popped up. Please help us to solve the issue.
I investigated and found that there is some change in the telerik populating the data into the cell.
In the previous version (i.e. 2013) cell is populating the data based on grid.data.ColumnType =="GridButtonColumn" so even if we inherited column from GridButtonColumn we manage to set the required ColumnType of masterTableView to GridButtonColumn on client side so that telerik grid databinding method behave as expected and displays button column.
But In new version even though we checked that columntype is set to GridButtonColumn in masterTableView button column data is cleared while binding data. We are not sure how to bring the same behaviour so that we can get the button column working because in new version (i.e. 2014 Q3) data bind internally calls "populateCell" method which gives a call to a function which is fired based on column type I think (i.e. a.Grid.GridBoundColumn or a.Grid.GridButtonColumn etc.)
We have implemented the following code while inheriting the GridButtonColumn .
i.e.
public override GridColumn Clone()
{
RequiredGridBoundColumn requiredGridBoundColumn = new RequiredGridBoundColumn();
requiredGridBoundColumn.CopyBaseProperties(this);
return requiredGridBoundColumn;
}
We have defined a custom button column which is inherited from GridButtonColumn. On page load we can see the column and button in it. As soon as it gets data from an Ajax call. Data is populated into the grid but it clears all the contents in the custom button cell.This option is working fine in version 2013.3.1114.35 . As soon as I migrated to version 2014.3.1024.35 this problem popped up. Please help us to solve the issue.
I investigated and found that there is some change in the telerik populating the data into the cell.
In the previous version (i.e. 2013) cell is populating the data based on grid.data.ColumnType =="GridButtonColumn" so even if we inherited column from GridButtonColumn we manage to set the required ColumnType of masterTableView to GridButtonColumn on client side so that telerik grid databinding method behave as expected and displays button column.
But In new version even though we checked that columntype is set to GridButtonColumn in masterTableView button column data is cleared while binding data. We are not sure how to bring the same behaviour so that we can get the button column working because in new version (i.e. 2014 Q3) data bind internally calls "populateCell" method which gives a call to a function which is fired based on column type I think (i.e. a.Grid.GridBoundColumn or a.Grid.GridButtonColumn etc.)
We have implemented the following code while inheriting the GridButtonColumn .
i.e.
public override GridColumn Clone()
{
RequiredGridBoundColumn requiredGridBoundColumn = new RequiredGridBoundColumn();
requiredGridBoundColumn.CopyBaseProperties(this);
return requiredGridBoundColumn;
}