custom column sorting

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    10 posts
    Member since:
    Dec 2010

    Posted 10 Dec 2014 Link to this post

    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?
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 15 Dec 2014 Link to this post

    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.

     
  3. DevCraft banner
Back to Top