Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kendo.ui #5

Open
hosain-cse2 opened this issue Jun 18, 2015 · 7 comments
Open

kendo.ui #5

hosain-cse2 opened this issue Jun 18, 2015 · 7 comments

Comments

@hosain-cse2
Copy link

Hi,

I am trying to use the react-kendo in my react project. I want to use the context menu.

Following is my code,

import React from 'react';
var k = React.Kendo = require('react-kendo');

var contextMenuOptions = {
target: "#target",
alignToAnchor: true
};

export default class ContextMenu extends React.Component{

constructor(){
    super();
}

render(){

    return  (
        <div>
            <h1 id="target">Right click here...</h1>
            <k.kendoContextMenu options={contextMenuOptions}></k.kendoContextMenu>
        </div>
    );
}

}

But the problem is when I load the page i am getting the following error,

                                Error: kendo.ui not found

I am also using the webpack. Can you please tell me how can I solve this problem?
Do I need to install any other packages?

@mikemorton
Copy link

Can you show us the content of your page, including all the scripts you're including?

Are you sure you're including the KendoUI script in your page?

@denizdogan
Copy link

Could this be related to #7?

@dlucidone
Copy link

I'm getting the same error. Is there any way out Thanks!

@shriramdevanathan
Copy link

@hosain-cse2 Were you able to resolve the issue ? ?

@hosain-cse2
Copy link
Author

No. I actually moved into the Material-UI framework. So I did not try it again.

@ravindra-tm
Copy link

ravindra-tm commented Aug 30, 2016

I included the kendo js script in main.js and using it
let say you have a component in render as follow -
<div id="TableGrid"></div>

Now define the grid in class definition as -
$("#TableGrid").kendoGrid({ columns: [], editable: "inline", sortable: true, reorderable: true, resizable: true, filterable: true, columnMenu: true, pageable: true, dataSource: ds1, });

If need help ping me!

@nwhitmont
Copy link

Same issue:

~/<project>/node_modules/react-kendo/lib/index.js:8
  throw new Error('kendo.ui not found');
        ^
Error: kendo.ui not found

Are there some instructions how to resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants