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;
}