Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

Grid().DataSource

$
0
0

Hi,

I think I found a solution that a static method that takes "dataSource" as a parameter and process it:

 

.DataSource(dataSource => SomeMethod(dataSource))

 

And "SomeMethod" is like:

public static Kendo.Mvc.UI.Fluent.AjaxDataSourceBuilder<T> SomeMethod<T>(Kendo.Mvc.UI.Fluent.DataSourceBuilder<T> dataSource) where T : class
        {
            var _dataSource =
                dataSource
                .Ajax() 

 ........................

            return _dataSource;
        }

 


Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>