This works:
.Read(read => read.Action("StandardTableReadNull", "DashDataparts", new { AdditionalParam = "foo" })
This doesn't:
.Read(read => read.Action("StandardTableReadNull", "DashDataparts").Data("additionalData")
<
script
>
function additionalData() {
return {
AdditionalParam: "foo"
}
}
</
script
>
In the second example, the script never hit, so the parameter never got populated in our controller. (In both cases, our Read controller action was hit, but the "AdditionalParam" parameter was only populated in the first example)
We tried putting the script in our main js file, putting it on our view page, and putting it directly inline in the .Data call, none of which worked.
Any thoughts why? Any help would be greatly appreciated! :)