jQWidgets Forums
jQuery UI Widgets › Forums › Editors › Input, Password Input, TextArea, ColorPicker, Rating, TagCloud, Loader › Input source not working
Tagged: error toUpperCase, Input, jqxinput
This topic contains 5 replies, has 2 voices, and was last updated by Nadezhda 10 years, 7 months ago.
-
AuthorInput source not working Posts
-
The Input source is not working . It displays the error “Microsoft JScript runtime error: Object doesn’t support property or method ‘toUpperCase'” var source = {
datatype: “json”,
datafields: [
{ name: ‘ID’, type: ‘number’ },
],url: ‘/Controller/Method’;(The data is getting bound in the method)
};
var IDAdapter = new $.jqx.dataAdapter(source);
$(“#Textbox ID”).jqxInput({
placeHolder: “Enter ID”,
height: 25,
width: 199,
source: IDAdapter,
displayMember: “ID”, valueMember: “ID”,
theme: ‘energyblue’
});Hello Sayan,
You are using incorrect jQuery selection. Could you try with id selector which contains only one word for example
TextboxID
.Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/Hi Nadezhda,
I have replaced the ID with Textbox_ID still it shows the same errorHi Sayan,
Please, provide a full sample which illustrates this issue.
Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/var Asso_source = {
datatype: “json”,
datafields: [
{ name: ‘Asso_ID’},
],url: pro + ‘//’ + host + ‘/Client_Upload/CU_get_BFS_Asso_ID’
};
var AssoAdapter = new $.jqx.dataAdapter(Asso_source);$(“#Asso_ID_TB”).jqxInput({
placeHolder: “Enter an associate ID”,
height: 25,
width: 199,
source: AssoAdapter,
displayMember: “Asso_ID”, valueMember: “Asso_ID”,
// searchMode:’startswithignorecase’
});Do I need to change something as the ID is an integer?
Hi Sayan,
If your ID is a number, please, set the type to ‘string’ in your datafield members when you initialize your dataAdapter instance. For more information go on http://www.jqwidgets.com/community/topic/dropdownlist-has-valid-source-but-no-items/.
Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.