Author Topic: Wrap sub-grid and Localization  (Read 3006 times)

nuno.nogueira

  • Pro Economy
  • Jr. Member
  • *
  • Posts: 95
    • View Profile
Wrap sub-grid and Localization
« on: April 16, 2014, 02:36:27 pm »
Hello,

My sub-grid is initialized like:

Code: [Select]
var $grid = {
        width: 900,
        height: 300,
        flexHeight: true,
        collapsible: false,
        wrap: true,
        hwrap: false,
        resizable: false,
        rowBorders: false,
        numberCell: {
            show: false
        },
        track: true, //to turn on the track changes.
        scrollModel: {
            autoFit: true
        },
        selectionModel: {
            type: ''
        },
        //hoverMode: 'row',
        editModel: {
            saveKey: $.ui.keyCode.ENTER
        },
        showTitle: false,
        showBottom: false,
        (...)

1-The text in the sub-grid isn't wrapped when it's long although I'm using wrap:true
2- The localization isn't changed to pt-PT although I set:

Code: [Select]
$grid.pqGrid("option", $.paramquery.pqGrid.regional['pt']);
    $grid.find(".pq-pager").pqPager("option", $.paramquery.pqPager.regional['pt']);

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Wrap sub-grid and Localization
« Reply #1 on: April 17, 2014, 12:17:10 pm »
Please refer to localization instructions in the tutorial:

http://paramquery.com/pro/tutorial#topic-locale


2) Word wrap: Currently it wraps the text at empty space and doesn't wrap if it's a single long word which has been addressed in next version 2.0.5.

Do you have a screenshot where wrap is not working.