kendo-ui-core icon indicating copy to clipboard operation
kendo-ui-core copied to clipboard

Passing parameters to the query string through the Read() method of the DataSource

Open kendo-bot opened this issue 3 years ago • 0 comments

Is it possible to implement a method in the Read() configuration of the DataSource that will append parameters as name-value pairs to the query string?

For example:

.Read(r => r.URL(myUrlPath).Handler(myPageHandler).AddQryStrPairs(myNameValuePairsModel)) Currently, I am appending the parameters manually as follows:

.Read(r => r.Url(qurc.PageUrlPath "?handler=Read&area=" + TkgrArea + "&serviceType=" + qurc.ServiceType.ToString() + "&serviceTag=" + qurc.ServiceTag + "&entityType=" + qurc.EntityType).Data("forgeryToken"))

kendo-bot avatar Jul 20 '22 16:07 kendo-bot