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

custom column sorting

1 Answer 47 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 10 Dec 2014, 02:14 PM
We're using the grid to show our customers the status of a file.  The three statuses are In Progress, Success, Rejected.  We have a custom column inheriting GridViewDataColumn to display different types.  This is done in CreateCellElement.

When the status is In Progress the custom column displays nothing.
When the status is Success the custom column displays an image of a green checkmark.
When the status is Rejected the custom column contains a button.  The button tag contains a URL to the report with the reasons why the file was rejected.

All of the columns are sortable and filterable except the custom column, which is ok.  The problem is when the data is sorted and there are rejected files, the button's tag value does not stay with its row.  Example: there are 3 rejected files sorted ascendingly by file name; file1, file2, and file3.  They each have a corresponding report at www.test.com/file1.pdf, www.test.com/file2.pdf, and www.test.com/file3.pdf

When the grid is sorted descendingly on the file name, file3 is the top row but the button tag is still the URL of file1.

How can the button URL sort with the file name?

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 15 Dec 2014, 07:52 AM
Hello,

The referred images are blocked on my side because it has been determined by Web Reputation Filters to be a security threat to my computer or the organization's network. 

As to the specific issue you experience on the button placed as a content of a custom column, may I ask you to try isolating the issue in a demo project illustrating your exact setup? You can also take a look at this blog post for a reference on how to isolate an issue. You can open a new support ticket and send us the demo solution, that way we can check it locally and advise further.

Regards,
Dimitrina
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
GridView
Asked by
Jeff
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or