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

Spreadsheet Range ForEachCell

5 Answers 99 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 11 Jan 2017, 09:24 AM

I am using this method to iterate a range, however, the value parameter does not have a value attribute - it only has the prototype value.

I am populating the data using a webservice, and use AngularJS in my application.

Can you think of any reason I dont have the value attribute (the cells have data in)

Thanks

Marc!

5 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Topalov
Telerik team
answered on 13 Jan 2017, 07:30 AM
Hello Marc,

I prepared a simple AngularJS application with a spreadsheet, getting data from a remote service that seems to be working as expected:

http://dojo.telerik.com/EzEYE

Can you please compare it to your implementation, and apply the necessary adjustments? I hope this helps, but if the issue persists, we will need a similar isolated runnable project, where it can be observed, so we can inspect it further, and try to determine what is causing the undesired behavior. Thank you in advance.

Regards,
Dimiter Topalov
Telerik by Progress
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
Marc
Top achievements
Rank 1
answered on 13 Jan 2017, 07:38 AM

Hi Dimiter

I checked my code and I found some errors on my side - apologies for wasting your time, but thank you for the demo!

Marc

0
Marc
Top achievements
Rank 1
answered on 13 Jan 2017, 07:39 AM

Could you explain what this is used for though please?

 

parameterMap: function(options, operation) {
                  if (operation !== "read" && options.models) {
                    return {models: kendo.stringify(options.models)};
                  }
                }

0
Dimiter Topalov
Telerik team
answered on 13 Jan 2017, 02:11 PM
Hello Marc,

The dataSource.transport.parameterMap is irrelevant in the discussed scenario. It is just a leftover from the original demo I used to make the example:

http://demos.telerik.com/kendo-ui/spreadsheet/index

In the online-demo scenario, the parameterMap is required because of the involved CRUD operations. I am sorry for the confusion caused.

Regards,
Dimiter Topalov
Telerik by Progress
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
Marc
Top achievements
Rank 1
answered on 13 Jan 2017, 02:14 PM

Hi Dimiter,

I did realise it was irrelevant in this scenario, I was just interested! Thanks again!

Marc

Tags
Spreadsheet
Asked by
Marc
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Marc
Top achievements
Rank 1
Share this question
or