Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Additional Parameter Binding #20

Closed
jak-hammond opened this issue Jul 24, 2015 · 1 comment
Closed

Additional Parameter Binding #20

jak-hammond opened this issue Jul 24, 2015 · 1 comment
Labels
duplicate Describes a duplicate issue (please provide the duplicate reference)

Comments

@jak-hammond
Copy link

Hi,

I'm hoping this is not an issue and more an error on my part, but the numerous ways I've tried to resolve this makes me think something might be wrong.

Within the IDataTablesRequest I can see that there is an ability to post up a set of additional data parameters. I am hoping to achieve this by using the data option within the DataTables AJAX options.

data: function(d) {
                        var builtInParam = parseQueryString("routeValues");
                        if (builtInParam)
                            d.AditionalParameters = {"builtin": builtInParam};
                    },

I have also tried just passing it up as a standard value without the use of a function, but still on the server side, I am getting null on the AdditionalParameters.

Any advice or is this an actual issue?

Thanks for a great library all the same, has been fantastic so far!

@ALMMa ALMMa added the duplicate Describes a duplicate issue (please provide the duplicate reference) label Jul 24, 2015
@ALMMa
Copy link
Owner

ALMMa commented Jul 24, 2015

Closed as duplicate of #19.

You should explicitly enable aditional parameters parsing by passing your parse function on DataTables registration.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate Describes a duplicate issue (please provide the duplicate reference)
Projects
None yet
Development

No branches or pull requests

2 participants