jQWidgets Forums
Forum Replies Created
-
Author
-
October 18, 2017 at 8:07 pm in reply to: problem with the let dataAdapter = new $.jqx.dataAdapter(source); problem with the let dataAdapter = new $.jqx.dataAdapter(source); #96804
OK…that ‘window.$’ thing tripped me up for a few days.
Seems to me that the dataAdapter variable you have defined has gone out of scope (i.e. not defined within the scope of the promise). You may need to ‘bind(this)’ up.
October 17, 2017 at 10:33 pm in reply to: problem with the let dataAdapter = new $.jqx.dataAdapter(source); problem with the let dataAdapter = new $.jqx.dataAdapter(source); #96777Do it like this:
let dataAdapter = new window.$.jqx.dataAdapter(source);
For more info see this thread: create-react-app – jqx.dataAdapter
September 22, 2017 at 8:49 pm in reply to: Bug in JqxButton & JqxSwitchButton Bug in JqxButton & JqxSwitchButton #96265I first noticed the problem w/ JqxSwitchButton. I then changed my design to use JqxToggleButton. I even tried resetting the button text of a regular button (JqxButton) but nothing worked. I placed calls to val() and value(). Neither of these calls work.
Please make your example program work.
Sorry, I will not have time to put together an example. Take a look at how they implement the master-detail capability in the jqxDataTable demonstration. The process is very similar.
You have to rebuild the jqxDataAdapter and then reset the source for the jqxComboBox. There’s a jqxComboBox method that allows you to set the source property. Call that function in your downstream code when you need to repopulate the jqxComboBox.
August 9, 2017 at 11:21 pm in reply to: JqxNumberInput.value() return '___,___,__x' JqxNumberInput.value() return '___,___,__x' #95402Nevermind…it is normal from what I can tell. If you want the actual numerical value you have to call jqxNumberInput.val().
July 28, 2017 at 5:26 pm in reply to: JqxDataTable, JqxTabs & selectionMode JqxDataTable, JqxTabs & selectionMode #95210Thanks…there must be something I’m doing then. My data acquisition logic is outside of the render() function.
July 26, 2017 at 5:03 am in reply to: JqxDataTable, JqxTabs & selectionMode JqxDataTable, JqxTabs & selectionMode #95136Seems as though the problem may be related to loading in JSON Data. What is the recommended method for placing a data table upon a tab with dynamic data via a JSON call.
June 27, 2017 at 3:05 pm in reply to: jqwidgets and create-react-app jqwidgets and create-react-app #94571Peter,
You need to update your documentation so that any reference to the global ‘$’ object is prefaced with ‘window.’ (or in the alternative, the line ‘const $ = window.$;’ is used). This applies for calls to both $.jqx.dataAdapter and $.fn.jquery (they should appear as ‘window.$.jqx.dataAdapter’ and ‘window.$.fn.jquery’) as detailed by the create-react-app readme.md file, which I quoted from above.
As I stated, I wasted two days finding this bit of information.
June 25, 2017 at 7:02 pm in reply to: jqwidgets and create-react-app jqwidgets and create-react-app #94532The suggestions offered by ‘admin’ will not be of any help. I doubt they even tried to reproduce the problem w/ create-react-app.
The obscure tidbit of information that you need is buried in the readme.md created by create-react-app.
Don’t feel bad. I wasted a day finding this info.
Note: I prefer being specific so the syntax I use is ‘… = new window.$.jqx.dataAdapter(…);’. Making that one change will produce a working demo.
## Using Global Variables
When you include a script in the HTML file that defines global variables and try to use one of these variables in the code, the linter will complain because it cannot see the definition of the variable.
You can avoid this by reading the global variable explicitly from the window object, for example:
`js
const $ = window.$;
`This makes it obvious you are using a global variable intentionally rather than because of a typo.
Alternatively, you can force the linter to ignore any line by adding // eslint-disable-line after it.
June 25, 2017 at 4:50 pm in reply to: Create react app – jqx.dataAdapter Create react app – jqx.dataAdapter #94531The obscure tidbit of information that you need is buried in the readme.md created by create-react-app.
Don’t feel bad. I wasted a day finding this info.
## Using Global Variables
When you include a script in the HTML file that defines global variables and try to use one of these variables in the code, the linter will complain because it cannot see the definition of the variable.
You can avoid this by reading the global variable explicitly from the
window
object, for example:`js
const $ = window.$;
`
This makes it obvious you are using a global variable intentionally rather than because of a typo.
Alternatively, you can force the linter to ignore any line by adding
// eslint-disable-line
after it. -
AuthorPosts