This is a migrated thread and some comments may be shown as answers.

MVC Read.Data not calling javascript function

1 Answer 142 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 20 Sep 2016, 10:26 PM

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! :)

 

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 22 Sep 2016, 10:15 AM
Hi Steve,

I've already replied to your support ticket with ID: 1063938. I suggest that we continue our conversation on the mentioned thread.

Regards,
Eyup
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or