jQWidgets Forums

jQuery UI Widgets Forums Grid Localize Strings

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 4 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Localize Strings #114872

    HCastillo
    Participant

    When my page loads I want to write a message to the grid. I try this

    var localizationobj = {};
    localizationobj.emptydatastring = “Hello World”;
    $(‘#MyGrid’).jqxGrid(‘localizestrings’, localizationobj);

    I get an error: Cannot read property ‘length’ of undefined

    What I am doing wrong?

    Localize Strings #114884

    Hristo
    Participant

    Hello HCastillo,

    I tested this example and it seems to work fine:
    http://jsfiddle.net/L34gwms6/

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    Localize Strings #114888

    HCastillo
    Participant

    Hi Hristo,

    I look your example and it seems you are delaying for 2 seconds before actually doing what you want to do.
    I guess is a good trick, but I was wondering what is going on and why I have this error.

    In a way you are doing a confirmation of what I was thinking, it seems that something is going on with
    the grid and that is the reason why I am getting the error. The delay serves to wait until the grid finishes.

    Thank you for dedicating time to answer my question.

    Localize Strings #114899

    Hristo
    Participant

    Hello HCastillo,

    It is not necessary I created on that way only to demonstrate that it could be changed at a particular moment.
    Please, take a look at this example:
    http://jsfiddle.net/04au6xcn/
    Which version do you use?
    I would like to ask you for more details if you still have trouble with this.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.