react-kendo icon indicating copy to clipboard operation
react-kendo copied to clipboard

kendo.ui

Open hosain-cse2 opened this issue 10 years ago • 7 comments

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?

hosain-cse2 avatar Jun 18 '15 16:06 hosain-cse2

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?

mikemorton avatar Aug 25 '15 18:08 mikemorton

Could this be related to #7?

denizdogan avatar Mar 04 '16 12:03 denizdogan

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

dlucidone avatar Jul 20 '16 11:07 dlucidone

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

shriramdevanathan avatar Aug 29 '16 09:08 shriramdevanathan

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

hosain-cse2 avatar Aug 30 '16 08:08 hosain-cse2

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!

ravindra-tm avatar Aug 30 '16 11:08 ravindra-tm

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?

nwhitmont avatar Dec 29 '16 22:12 nwhitmont