Declined
Last Updated: 09 May 2019 09:39 by ADMIN
Dan
Created on: 24 Apr 2019 12:12
Category: UI for ASP.NET MVC
Type: Feature Request
1
Custom datasource support Data

Telerik UI for ASP.NET MVC version for custom datasource in the Read method of Transport does not support the method Data(string handler) in order to send additional parameters.

Kendo UI version supports this.

https://docs.telerik.com/kendo-ui/api/javascript/data/datasource/configuration/transport.read#transport.read.data

Is there a workaround for this?

3 comments
ADMIN
Alex Hajigeorgieva
Posted on: 09 May 2019 09:39
Hello, Dan,

The Custom Data source has quite a few more configurable options compared to the built-in data source types. This because the built-in types are predictable.

For the Ajax() one we do not need a parameterMap function to be exposed and the parameter transformation happens under the hood in such way that the request can bind to the DataSourceRequest class and attribute on the server.

 The custom data source needs to provide far more configurable options as we have no way of knowing all the possible variances of parameter names and what the server side would expect.

I am pleased to let you know that we have now released a new API reference for ASP.NET and Core where you can easily see the available options by typing into a convenient search as you type input:

https://docs.telerik.com/aspnet-mvc/api/datasource



Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Dan
Posted on: 06 May 2019 10:36

Hi Alex,

Thanks for the clarification. I was expecting it to be the same as the other actions on grid like .Transport("OrdersRead", "Grid").Data("additionalData"). Thank you for the clarification.

ADMIN
Alex Hajigeorgieva
Posted on: 01 May 2019 09:29
Hello, Dan,

The Kendo UI Custom DataSource already supports the Data() method. I ran a sample test with this configuration and the parameters are sent to the controller as expected:




.DataSource(d =>
{
  d.Custom()
     .Transport(t => t.Read(read => read.Action("Products", "Grid").Data("additionalData").Type(HttpVerbs.Post)));
})
<script>
    function additionalData() {
        return {
            id: 1
        }
    }
</script>


In case the desired functionality is different than the one I understood, please elaborate so I can review the options.

Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.