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

Validation with showButton failing

1 Answer 69 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 20 Jun 2018, 04:19 PM

We've giving our users a list of items to pick from when reviewing previously submitted data.  The statuses they can pick from are Pending, Approved and Rejected.

We're seeing very weird behavior when someone activates the pick list in the A column and displays the options but does not choose a value. They then visit another page on the site.  Then when they return to the spreadsheet to select a value again, the button to open the pick list appears when the cell is selected, but when clicked, the button does not display the list of options.  Actually, nothing happens when you click the dropdown button. The only way to remedy this issue is to logout of the application, log back in and then visit the table again.

We are not setting any login/account related criteria on the button, just providing the 3 options to choose from. I've tried replicating this using a DOJO on your site and wasn't able to get the same results.

Here is the JSON we're using to populate the spreadsheet.  Is there something wrong with my configuration or do you think there might be a bug in your code?

spreadsheet.fromJSON({"sheets":[{"frozenRows":1,"name":"Lot Tracking","rows":[{"cells":[{"value":"Status"}]},{"cells":[{"value":"Rejected","color":"#D0021b","bold":true,"validation":{"allowNulls":false,"dataType":"list","comparerType":"list","from":"{ \"Pending\", \"Approve\", \"Reject\" }","showButton":true,"type":"reject"},"enable":true}]},{"cells":[{"value":"Rejected","color":"#D0021b","bold":true,"validation":{"allowNulls":false,"dataType":"list","comparerType":"list","from":"{ \"Pending\", \"Approve\", \"Reject\" }","showButton":true,"type":"reject"},"enable":true}]}]}]});

 

Thanks in advance for your help.

Greg

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 22 Jun 2018, 10:30 AM
Hello Greg,

I am afraid that we are not aware of an issue in the Scheduler Custom editors as the described. In order to troubleshoot the case, we will need to reproduce the problem locally. Can you isolate the problem in a small runnable sample project and send it to us? Moreover, do you observe any errors on the browser console when you navigate back to the Spreadsheet page, or when the cell editor button is clicked?

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