jQuery UI Widgets › Forums › React › Is there a React example with jqxGrid?
Tagged: grid, react, react grid, react grid component
This topic contains 9 replies, has 6 voices, and was last updated by Martin 6 years, 6 months ago.
-
Author
-
It looks like samples are a work in progress, anything on the grid yet?
Hi Cowboy,
Samples for all widgets are available at our
Demos
page.
Here is the link for the jqxGrid:http://www.jqwidgets.com/react/react-grid/index.htm
Best Regards,
IvojQWidgets Team
http://www.jqwidgets.com/How can we set the source of grid from state stored in redux or else set dataadpter from state stored in redux?
is there any example for the same
Hi tushar.palve,
We dont have such example.
But do you mean something like that showed in the redux official page:import { createStore } from 'redux' import todoApp from './reducers' let store = createStore(todoApp) let state = store.getState();
Best Regards,
IvojQWidgets Team
http://www.jqwidgets.com/yes, correct
in most of example of react source set as
let source = new $.jqx.dataAdapter but no where $ and jqx is defined.
and also there is no import for dataAdapter, so I am not sure how I can use the jqxGrid in our app.
Hi tushar.palve,
$.jqx.dataAdapter
is defined injqxdata.js
file. Just have it imported in your HTML and you can use it all over your app.Best Regards,
IvojQWidgets Team
http://www.jqwidgets.com/Hi
i added<script type="text/javascript" src="js/jqxcore.js"></script> <script type="text/javascript" src="js/jqxdata.js"></script> <script type="text/javascript" src="js/jqxbuttons.js"></script> <script type="text/javascript" src="js/jqxscrollbar.js"></script> <script type="text/javascript" src="js/jqxdatatable.js"></script> <script type="text/javascript" src="js/jqxnotification.js"></script>
to my index.html file and
import JqxDataTable from '../jqwidgets-react/react_jqxdatatable.js';
in my component
but i getCannot read property 'dataAdapter' of undefined
onlet dataAdapter = new $.jqx.dataAdapter(source);
in my component
notificaitions in other sections works finePS : i used window.JQXLite.jqx instead of $.jqx and now its work
same error. I imported jqxdata.js to my HTML and still error:
./src/App.js
Line 35: ‘$’ is not defined no-undefSearch for the keywords to learn more about each error.
pls, help me resolve problem
Hello vatit,
Use
window.jqx
instead of$.jqx
. It should fix the issue.Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.