Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Subfrom sorting

Questions related to using nuBuilder Forte.
Locked
chili666
Posts: 5
Joined: Wed Jun 13, 2018 12:58 pm

Subfrom sorting

Unread post by chili666 »

Hi,

I have a form, that includes a subform showing as a grid. Is there any way to enable sorting - like on the browse forms by clicking on the column-title?

Or is this not possible?

Thanks!

Luis

Edit: Spelling...
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Subfrom sorting

Unread post by admin »

Luis,

Sorry but no.

Steven
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Subfrom sorting

Unread post by toms »

Hi,

I think it can be done by rearranging the nuRECORD containers (changing their top positions)
I already have a semi-working code. I just need to optimize and test it a little bit.
Video_2018-07-24_233628.gif
The sorting would only be temporary on the grid and the data will not be saved in the sorted order.
I'm not sure if that is what you are looking for...
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Subfrom sorting

Unread post by admin »

Luis,

It does now!

Steven
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Subfrom sorting

Unread post by Timo »

Hello, This feature is a nice addition! But I don't want to allow sorting for one specific form. Can this be deactivated just for specific forms?
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Subfrom sorting

Unread post by admin »

Timo,

You could try this...

Code: Select all

$('#title_' + Subformname + Columnname).prop('onclick', null).off("click");
Steven
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Subfrom sorting

Unread post by toms »

Hi,

An alternative way: Override nuSortSubform() by placing an empty function to your form:

Code: Select all

function nuSortSubform(s, c, e){
}
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Subfrom sorting

Unread post by Timo »

Thank you - both ways work for me :D
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Subfrom sorting

Unread post by admin »

.
Locked