Get the number of entries (aLengthMEnu) when it change
Get the number of entries (aLengthMEnu) when it change
Hi,
I would to know how to get the number of entries selected, into the lenght menu, when it change.
Basically, I would to get it on fnDrawCallback for save which one have been selected.
On oSettings, aLengthMenu is just the list, and _iDisplayLength never change.
So, how can I get this info ?
Regards,
I would to know how to get the number of entries selected, into the lenght menu, when it change.
Basically, I would to get it on fnDrawCallback for save which one have been selected.
On oSettings, aLengthMenu is just the list, and _iDisplayLength never change.
So, how can I get this info ?
Regards,
This discussion has been closed.
Replies
If I understand you right you want to save (to a file/DB!?) which option is selected!? If so, you can use the fnStateSave callback. This takes two parameters (see the docs), where the second one is e.g. oData. Within oData you can see the field iLength which has the current selected length option.
Hope it helps!
Have a nice day.
Allan