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

Data Attibute Problems

2 Answers 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Doyle
Top achievements
Rank 1
Doyle asked on 12 Aug 2014, 03:02 PM
I'm having a problem getting the data-attributes to work for a custom report menu. Following the example in the documentation I create a button with a data-command attribute, and add the data-target as instructed. I am still unable to trigger the functionality. Any help on this would be great. I have attempted this using several commands to test and thus far have been unsuccessful.

I have upgraded to the latest service pack ( Telerik Reporting Q2 2014 SP1 (8.1.14.804)) and according to the release notes, this version should expose the commands. I have attempted the above, as well as using the commands to get the instance and call the commands directly;

var sample = $('viewer').data('telerik_ReportViewer');
sample.commands.goToFirstPage().exec();

This too, has been unsuccessful. Do I need to be inside of a special container or such when calling the attributes?

2 Answers, 1 is accepted

Sort by
0
Doyle
Top achievements
Rank 1
answered on 12 Aug 2014, 04:05 PM
I figured it out. The reporter js hadn't updated on the upgrade. Once I went in and copied the new js in everything started to work correctly.
0
Stef
Telerik team
answered on 13 Aug 2014, 02:54 PM
Hi Doyle,

To ensure the project is upgraded correctly, please use the Upgrade Wizard. If the viewer's templates are customized you may need to manually merge the files, but you can still use the Upgrade Wizard and backup the old files to merge them manually later.

I hope the information is helpful.

Regards,
Stef
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
General Discussions
Asked by
Doyle
Top achievements
Rank 1
Answers by
Doyle
Top achievements
Rank 1
Stef
Telerik team
Share this question
or