Column titles not scrolling horizontally on big subform

Column titles not scrolling horizontally on big subform

Postby Fike » Sat Mar 01, 2014 11:36 am

I created a subform with many columns and I noticed that column titles were not scrolling horizontally when scrolling the subform (only the records were scrolliong but not the column titles).

I also noticed that the 'Delete' colum is positioned at the right border of the subform, but when there are many columns, the 'Delete' column does not appear at the end of all the columns, but at the corresponding position of the last visible column of the subform according to the subform's width.

I made some minor modifications to the nueditform.js file in order to make the column titles scroll horizontally with the records:

After line 280

Code: Select all
.addClass('nuUnselectedTab nuGradient');


I wrote the following in line 281:

Code: Select all
parent_div  = c.id;



Then, I replaced line 290

Code: Select all
$('#' + e.id).append(c);


for this line:

Code: Select all
$('#' + parent_div).append(c);


I added a comma at the end of line 984

Code: Select all
'box-shadow'                   : '15px 5px 5px #888888',


and then I inserted the following between lines 984 and 985:

Code: Select all
'overflow'                     : 'scroll'


And finally I commented out line 1001 (which was line 1000 before inserting the line between 984 and 985)

Code: Select all
//'overflow' : 'scroll'



And that's it. Now column titles scroll horizontally.

The 'Delete' column still appears at the middle of the columns. If I find a solution for it, I will post it.

Kind regrads,

Fike
Fike
 
Posts: 79
Joined: Fri Oct 21, 2011 4:43 am

Re: Column titles not scrolling horizontally on big subform

Postby Fike » Sun Mar 02, 2014 2:31 am

Unfortunatelly, those changes make the column titles scroll vertically as well. Therefore, they disapear when the subform has many recoirds and is scrolled vertically.

If somebode comes up with a better solution, please post it.

Kind regrads,

Fike
Fike
 
Posts: 79
Joined: Fri Oct 21, 2011 4:43 am

Re: Column titles not scrolling horizontally on big subform

Postby admin » Mon Mar 03, 2014 2:46 pm

fike,

Thanks.

I'll try to get to it tomorrow.

Steven
admin
Site Admin
 
Posts: 3225
Joined: Mon Jun 15, 2009 9:53 am


Return to General



cron