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

Command Button States Sort

4 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 18 Sep 2017, 03:28 PM

We have a command column in our grids that is sensitive to user level states. All users have a View button, but only the item owners have an Edit button, the remaining Edit buttons being hidden from view. When a sort is applied, the button connections are update correctly, but the button states are not conveyed with the sort. Therefore, the visible Edit buttons do not convey with their intended associated items.

While I view this potentially as a bug more so than a feature, I am hoping there is an intervention workaround that can be implemented which allows us to change the visibility or enabled state of the buttons to the properly associated columns. I also wanted to alert Telerik that the expected behavior is that button states should sort within the grid as well, rather than just the data or function binding.

For example, in a ten row grid, items 2 and 8 are visible, but the rest are hidden. When sort is applied to a column, 2 and 8 move to 1 and 5, and the associations are correct, but the Edit buttons for 2 and 8 are still visible, and the Edit buttons for 1 and 5 are not.

No code should be necessary with this explanation, but if more data is needed, please let me know. Any recommendations?

Bill Edwards

4 Answers, 1 is accepted

Sort by
0
William
Top achievements
Rank 1
answered on 18 Sep 2017, 05:37 PM
After further analysis, I believe we found the issue, and it is not at the Kendo end at this point. There was a disassociation between index for the data and ID for the grid rows, so an unsorted list was being used to format a sorted order. If this is the case, then we should be able to resolve. If not, I will append. Thanks.
0
Stefan
Telerik team
answered on 20 Sep 2017, 10:58 AM
Hello, Bill,

I'm glad to hear that the issue is located and I hope that will be easily fixed.

In general, if the condition that decided if a button will be shown is connected one of the fields of the data source, then they should be shown as expected when the data is sorted or filtered.

Still, if additional assistance is needed, please provide an example or the code responsible for determining which rows will have a button and we will gladly assist. 

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Brenda
Top achievements
Rank 1
answered on 20 Sep 2017, 11:36 AM

Hello Stefan,

I posted an issue with my telerik control yesterday. What is the average tat because no one has responded to mine yet.

0
Stefan
Telerik team
answered on 21 Sep 2017, 01:50 PM
Hello, Brenda,

For the forums, there is no specific TAT, but we try to answer within 48 business hours.

As for the support tickets, it will depend on the used support plan. More details can be found here:

http://www.telerik.com/purchase/support-plans

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
William
Top achievements
Rank 1
Answers by
William
Top achievements
Rank 1
Stefan
Telerik team
Brenda
Top achievements
Rank 1
Share this question
or