Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid rowNumber length bug

    Hi,

    with setShowRowNumbers enabled, on a 10000+ row grid, the rowNumber field displays only the first 4 digits.

    SmartGWT version: 2.1
    OS/browsers: Windows / IE8; Mac / Safari 4,FF 3.6

    Steps to reproduce (using the showcase):
    1. modify CountryData to have 10000+ countries
    2. open RowNumberingSample
    3. scroll down to the 10000. row (see the attachment)


    regards,
    ms
    Attached Files

    #2
    The default width of the row number field accommodates 4 digits. I've added ListGrid.setRowNumberFieldProperties(ListGridField rowNumberFieldProperties) to allow customization of the row number field when showRowNumbers is true.

    You can pass in a ListGridField instance with the desired width.

    Sanjiv

    Comment


      #3
      I apologize if I should not have hijacked an old thread. But I was wondering if there is anyway to setRowNumberFieldProperties after the ListGrid has been drawn. The setRowNumberFieldProperties seems to work only if set before the list grid is drawn.

      Thanks,
      JD

      Comment

      Working...
      X