Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Column titles not scrolling horizontally on big subform

Post Reply
Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

Column titles not scrolling horizontally on big subform

Post by Fike »

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: Thu Oct 20, 2011 9:13 pm

Re: Column titles not scrolling horizontally on big subform

Post by Fike »

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
admin
Site Admin
Posts: 2789
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 4 times

Re: Column titles not scrolling horizontally on big subform

Post by admin »

fike,

Thanks.

I'll try to get to it tomorrow.

Steven
Post Reply