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

Question about XML Datasource

1 Answer 81 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Adam Macaulay
Top achievements
Rank 1
Adam Macaulay asked on 20 Oct 2011, 05:25 PM
I have been trying without success to connect a remote URL that provides a basic XML output much like you have in the demo. When I call it though, I always am presented with Object doesn't support this type method right at b.lenght. When I look back at b, b is equal to "data". What I can't figure out is what I am missing to cause this to happen. Is it that it can't find the URL?

SCRIPT445: Object doesn't support this action
kendo.all.min.js line 1 character 27728

My Code

var sharedDataSource = new kendo.data.DataSource({                     
  pageSize: 10,                           
  transport: {                               
   read: "MYURL"          
  },
  schema: {
   type: "xml",
  data: "/NewDataSet/Data",                           
  model: {                               
   fields: {                                   
    edit: "edit/text()",                                   
      }                          
     }                       
    }                    
});

Xml Output Looks like
<NewDataSet><Data><edit>test</edit></Data><Data><edit>test2</edit></Data></NewDataSet>

I then setup my grid to connect to this datasource like so;

 $("#grid").kendoGrid({                       
    dataSource: sharedDataSource, 
   autoBind: true,                     
  height: 280,                       
  columns: ["edit"]                   
 });

Any thoughts would be awesome.... thank again

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 21 Oct 2011, 08:55 AM
Hi Adam Macaulay,

Unfortunately, I'm unable to  recreate the described issue locally using the provided details. Therefore, it will be appreciated if you could provide a small sample in which it can be observed.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Adam Macaulay
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or