I saw the above example. Thanks for pointing that out. One question, above you mentioned:
“The reason is that, you are trying to use them, before they are in the DOM.” So “them” and “they” you referring to is the JqxComboBox and JqxDateTimeInput right? If so. Can i instantiate JqxComboBox or JqxDateTime in my custom components constructor and then use it’s reference in the render method. Do you think it should work?
e.g. Taking same example from my previous post:
myCustomComboBox.js file:
—————————————————-
import React from ‘react’;
import ‘jqwidgets-scripts/jqwidgets/styles/jqx.base.css’;
import JqxComboBox from ‘jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox’;
class MyCustomComboBox extends React.Component {
constructor(props) {
super(props);
this.jqxComboBox = <JqxComboBox width={250} height={25} source={comboBoxSource} displayMember=’displayMember’ valueMember=’valueMember’ />; ===> instantiating here
}
render() {
return(
<div>
{this.jqxComboBox} ==> using the reference from the one instantiated in constructor.
</div>
);
}
}
export default MyCustomComboBox ;
Thanks in advance
Vish