jQWidgets Forums

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: not check,why? not check,why? #18655

    hunterchina
    Member

    variable is cas

    in reply to: not check,why? not check,why? #18654

    hunterchina
    Member

    it is my mistake

    var item1 = $(“#listbox”).jqxListBox(‘getItemByValue’, “3″);

    $(“#listBox”).jqxListBox(‘checkItem’, item1 )

    in reply to: not check,why? not check,why? #18651

    hunterchina
    Member

    i have set checkboxes:true,

    in reply to: how Localization ? how Localization ? #17130

    hunterchina
    Member

    thanks Dimitar
    i have follow your step
    my code like these:

    var localizationobj = {};
    localizationobj.pagergotopagestring = "当前页:";
    localizationobj.pagershowrowsstring = "每页显示:";
    localizationobj.pagerrangestring = " 总共 ";
    localizationobj.pagernextbuttonstring = "后页";
    localizationobj.pagerpreviousbuttonstring = "前页";
    localizationobj.sortascendingstring = "正序";
    localizationobj.sortdescendingstring = "倒序";
    localizationobj.sortremovestring = "清除排序";
    localizationobj.firstDay = 1;
    localizationobj.percentsymbol = "%";
    localizationobj.currencysymbol = "¥";
    localizationobj.currencysymbolposition = "before";
    localizationobj.decimalseparator = ".";
    localizationobj.thousandsseparator = ",";
    // apply localization.
    $("#jqxgrid").jqxGrid('localizestrings', localizationobj);
    $("#jqxgrid").jqxGrid({...});

    but pagger still show in english ?
    why?

    in reply to: how Localization ? how Localization ? #17128

    hunterchina
    Member

    thanks i have do it
    and share it
    create new file ,named jquery.glob.zh-CN.js palce globalization document
    and detail

    (function($) {
    var cultures = $.global.cultures,
    en = cultures.en,
    standard = en.calendars.standard,
    culture = cultures["zh-CN"] = $.extend(true, {}, en, {
    name: "zh-CN",
    englishName: "Chinese",
    nativeName: "简体中文",
    language: "cn",
    numberFormat: {
    percent: {
    pattern: ["-n%","n%"]
    },
    currency: {
    pattern: ["-$n","$n"],
    decimals: 0,
    symbol: "¥"
    }
    },
    calendars: {
    standard: $.extend(true, {}, standard, {
    days: {
    names: ["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],
    namesAbbr: ["周日","周一","周二","周三","周四","周五","周六"],
    namesShort: ["周日","周一","周二","周三","周四","周五","周六"]
    },
    months: {
    names: ["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""],
    namesAbbr: ["1","2","3","4","5","6","7","8","9","10","11","12",""]
    },
    AM: ["上午","上午","上午"],
    PM: ["下午","下午","下午"],
    eras: [{"name":"公元","start":null,"offset":0}],
    patterns: {
    d: "yyyy/MM/dd",
    D: "yyyy'年'M'月'd'日'",
    t: "H:mm",
    T: "H:mm:ss",
    f: "yyyy'年'M'月'd'日' H:mm",
    F: "yyyy'年'M'月'd'日' H:mm:ss",
    M: "M'月'd'日'",
    Y: "yyyy'年'M'月'"
    }
    })
    }
    }, cultures["zh-CN"]);
    culture.calendar = culture.calendars.standard;
    })(jQuery);

    AND change these code:

    localized["default"] = localized.zh-CN;

    please help me checking ,maybee a little adult

Viewing 5 posts - 1 through 5 (of 5 total)