Forums

Create sortable column headings in Chronoforms

stikkimorey 23 Oct, 2018
HiIs there a 'chronoconnectivity way' of getting sortable table headers?

If not - I can use tablesorter, but I am a bit confused as to how I add the custom javascript to a view. I can create a view with the javascript in it, but how do I apply that to my table view?

Also, how would I give the table an ID? I can only see how add classes

Thanks

Mikki
stikkimorey 24 Oct, 2018
OK

There are no examples of this in the demos and I cannot find anything more than a passing reference to it in the forum where Nick asks about doing this in a custom form.

So there is a box for Sortable Fields in the data read action for the view I am using. I put Model.fieldname in it, which matches the Model.fieldname in the columns list for the view I am using. I am now expecting to see a sortable link in the table heading row - but I don't.

Is there another step I need to take?

Any help would be greatly appreciated?

Mikki
GreyHead 24 Oct, 2018
Hi Mikki,

Please check Section 2 in this FAQ and see if that helps.

Bob
stikkimorey 24 Oct, 2018
Thanks so much Bob - I didn't see it tucked away there.
This topic is locked and no more replies can be posted.