jQWidgets Forums

jQuery UI Widgets Forums Grid Applying default globalization to grid

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  mystcreater 11 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Applying default globalization to grid #46783

    mystcreater
    Participant

    Is it possible to apply default globalization to a grid?

    In the demo, there are two ways to apply new languages:

    1. When initializing the grid like that:
    $(“#myGrid”).jqxGrid(
    {
    ….
    localization: localizationobj
    });

    2. $(“#myGrid”).jqxGrid(‘localizestrings’, localizationobj);

    I have a lot of grids in my application and I’m wondering if there is a solution to apply automatically a localizationobj object to every grid without having to specify it in every grid.

    Thank you

    Applying default globalization to grid #46785

    Peter Stoev
    Keymaster

    Hi mystcreater,

    I think that the simplest way would be, if you define a common function which applies a globalization and the function’s parameter is the Grid’s ID so the localization definition would be something like: $(myParam).jqxGrid({
    localization: localizationobj
    });

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Applying default globalization to grid #46788

    mystcreater
    Participant

    Thank you Peter.

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

You must be logged in to reply to this topic.