This is a migrated thread and some comments may be shown as answers.

GridButtonColumn Data clear when data populated using ajax call

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter Tyler
Top achievements
Rank 1
Peter Tyler asked on 25 Nov 2014, 04:37 PM
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;

}

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 28 Nov 2014, 08:24 AM
Hi Peter,

Since you have opened a regular support ticket with the same question (ticked ID: 879582), for both sides convenience I could suggest that you use the support ticket for any further questions on this matter arise.


Best Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Peter Tyler
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or