jQWidgets Forums
jQuery UI Widgets › Forums › Plugins › Data Adapter › JqxGrid ASP.NET webmethod parameter encoding problem.
This topic contains 1 reply, has 2 voices, and was last updated by Hristo 5 years, 11 months ago.
-
Author
-
im following this document aps.net Intergration
all work fine except broken korean. i hope to fix it ;Here is Link Image When iv get parameter
Here is code;
`source = {
datatype: “xml”,
type: “GET”,
cache: false,
datafields: [
{ name: ‘CustomerName’ },
{ name: ‘CustomerType’ },
{ name: ‘BrandCode’ },
{ name: ‘PostAddress1’ },
{ name: ‘PostAddress2’ },
{ name: ‘PostAddress3’ },
{ name: ‘MobilePhoneNo1’ },
{ name: ‘MobilePhoneNo2’ },
{ name: ‘PhoneNo1’ },
{ name: ‘PhoneNo2’ },
{ name: ‘BirthDay’ }
],
formatdata: function (data) {
var searchjson = JSON.stringify(‘{ GENDER : “”, BIRTHDAY_S : “‘ + DateToStringISO8601($(‘#JQX_DATE_C_BIRTHDAY_S’).jqxDateTimeInput(‘getDate’)) +
‘”, BIRTHDAY_E: “‘ + DateToStringISO8601($(‘#JQX_DATE_C_BIRTHDAY_E’).jqxDateTimeInput(‘getDate’)) +
‘”, POSTADDRESS1: “‘ + GetComboBoxValue(‘JQX_COMBO_C_CITY’,true) +
‘” }’);
return { search: searchjson }
},
beforeSend: function (xhr) {
xhr.overrideMimeType(“application/json; charset=utf-8”);
},
record: ‘Table’,
url: ‘ContactList.aspx/GetCustomers’
}
var dataAdapter = new $.jqx.dataAdapter(source,
{
contentType: ‘application/json; charset=utf-8’,
loadError: function (jqXHR, status, error) {
alert(error);
},
beforeSend: function (xhr) {
xhr.overrideMimeType(“application/json; charset=utf-8”);
},
downloadComplete: function (data, textStatus, jqXHR) {
return data.d;
}
});Hello Zerglrisk,
It looks like an encoding issue.
That is relevant to your ASP.Net settings.
I would like to suggest you look at this topic.
You could try to set the encoding to “utf-8“ which is the most comprehensive.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.