Author Topic: Horizontal Scroll bar not visible for first time when grid is loaded  (Read 3154 times)

Sunny

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 59
    • View Profile
Hi,

Recently I changed my column model to retrieve the column data from database. After that change, I noticed an issue that Horizontal Scroll bar is not visible in Chrome/FireFox when the grid is loaded. It becomes visible when I toggle the grid or even toggle the browser window. I tried options like Scrollbar:{horizontal:true}, but no luck.

Please advice,

Thanks.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: Horizontal Scroll bar not visible for first time when grid is loaded
« Reply #1 on: June 13, 2015, 12:20:40 pm »
There should be a call to refresh after dynamic change of column properties, especially the ones that affect layout of the grid viewport.

http://paramquery.com/pro/api#method-refresh
« Last Edit: June 13, 2015, 12:43:32 pm by paramquery »

Sunny

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 59
    • View Profile
Re: Horizontal Scroll bar not visible for first time when grid is loaded
« Reply #2 on: June 13, 2015, 01:51:59 pm »
Thank you. It worked in both chrome and IE, after calling refresh() method . Wondering why scrollbar in IE browser worked with out calling to refresh method.