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

"kendo.web.min.js" and "kendo.dataviz.min.js" can not be used in the same page?

2 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Zhipan
Top achievements
Rank 1
Zhipan asked on 26 Jul 2012, 01:21 AM

i want to use dataviz and web controls in the same page,so i add
<script src="kendo.web.min.js"></script>
<script src="kendo.dataviz.min.js"></script>

in my html page.

 when i creating kendogrid with datasource such as

var dataSource = new kendo.data.DataSource({
             transport: {
                 read:  {
                     url: "getOperatorsByOrg.do?format=json&orgid=2",
                     dataType: "json"
                 }
             },
             batch: true,
             pageSize: 30,
             schema: {
              model: {
                   fields: {
                    userid: { editable: false, nullable: true },
                    operatorname: { editable: false },
                    password: { editable: false }
                   }
                 }
             }
         });

      $("#"+divname).kendoGrid({
          dataSource: dataSource,
          pageable: true,
          height: 300,
          toolbar: ["create"],
          columns: [
                 { field:"userid",title:"userid" },
                 { field: "operatorname",title:"operatorname", width: "150px" },
                 { field: "password", title:"password", width: "150px" }]
      });

a javascript error is showed:

message: 'undefined' is null or is not an object
row: 8
char: 45249
code: 0
URI: http://localhost:8080/reportproject/views/js/kendo/kendo.web.min.js

and the data in grid can't be showed

 when i delete the "<script src="kendo.dataviz.min.js"></script>"
the data can be showed very good

how i can do?

2 Answers, 1 is accepted

Sort by
0
Zhipan
Top achievements
Rank 1
answered on 27 Jul 2012, 03:21 AM
help!!!! obviously,it's a bug. when i added  "<script src="../../../js/kendo.dataviz.min.js"></script>" into editing-inline.html which is the example download from kendoui,  it couldn't run. please check the attach file.
0
Zhipan
Top achievements
Rank 1
answered on 09 Aug 2012, 10:48 AM
I have fixed it, DataViz script must be puted before the Web script.
just like:
<script src="kendo.dataviz.min.js"></script>
Tags
Grid
Asked by
Zhipan
Top achievements
Rank 1
Answers by
Zhipan
Top achievements
Rank 1
Share this question
or