Page 1 of 1
Subfrom sorting
Posted: Tue Jul 24, 2018 1:06 pm
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...
Re: Subfrom sorting
Posted: Tue Jul 24, 2018 10:24 pm
by admin
Luis,
Sorry but no.
Steven
Re: Subfrom sorting
Posted: Tue Jul 24, 2018 11:21 pm
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...
Re: Subfrom sorting
Posted: Thu Jul 26, 2018 4:55 am
by admin
Luis,
It does now!
Steven
Re: Subfrom sorting
Posted: Sun Jul 29, 2018 9:34 am
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?
Re: Subfrom sorting
Posted: Tue Jul 31, 2018 3:54 am
by admin
Timo,
You could try this...
Code: Select all
$('#title_' + Subformname + Columnname).prop('onclick', null).off("click");
Steven
Re: Subfrom sorting
Posted: Tue Aug 07, 2018 5:27 am
by toms
Hi,
An alternative way: Override nuSortSubform() by placing an empty function to your form:
Code: Select all
function nuSortSubform(s, c, e){
}
Re: Subfrom sorting
Posted: Fri Aug 10, 2018 9:08 am
by Timo
Thank you - both ways work for me

Re: Subfrom sorting
Posted: Fri Aug 10, 2018 8:01 pm
by admin
.