Approved
Last Updated: 22 Nov 2019 09:24 by ADMIN
Just like posted here (and declined) : http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback/suggestions/3844570-serialization-support-of-datasourcerequest-and-app

I would like to see a portable separate assembly that : 
- can be referenced both on ASP.NET MVC side and WCF server side.
- A DataSourceRequest and DataSourceResult class that serialize well in both SOAP and REST WCF.

Referencing Kendo from the Application server side also requires references to System.Web.Mvc, Razor pages, ... and others that shouldn't be necessary.
Approved
Last Updated: 12 Nov 2019 13:06 by ADMIN

The "CreateDataSourceResult" function verifies if the given DataSourceRequest "Sorts" list is empty and if the IQueryable provider is Entity Framework. If both are true, it adds a default OrderBy to the query on the first sortable property. This makes sense as EF must be ordered before skipping items.

The following statement checks the given DataSourceRequest and IQueryable:

if (!sort.Any() && queryable.Provider.IsEntityFrameworkProvider())

{...}

This leads to unwanted behavior if the query is already sorted on the server and the corresponding SortDescriptor is removed from the "Sorts" list. This is needed if we want to sort on a viewmodel property that doesn't exist on the EF model.

An additional check should be done on IQueryable to see if it is already ordered to avoid replacing the existing OrderBy with a default one.

if (!sort.Any() && queryable.Provider.IsEntityFrameworkProvider() && queryable.Expression.Type != typeof(IOrderedQueryable<TModel>))
{...}

 

 

 

Approved
Last Updated: 27 Jun 2019 07:58 by ADMIN
Created by: John
Comments: 1
Category: UI for ASP.NET MVC
Type: Feature Request
0

Hello,

 

I would like to suggest improvement to the function convertValues which is used in the virtualized datasources in multiple controls (dropdownlist, combobox, multiselect etc).

I've realised (after very long time) that the ValueMapper ajax is called in the initial loading, i.e. when there is no default value set in the control. In my opinion that request is extra unnecessary load and shouldn't happen if there is no value to be checked (mapped).

For example check this screenshot of the link https://demos.telerik.com/kendo-ui/dropdownlist/virtualization

In my code I started to surround with the following if:

if (options.value != "") {
        //value mapper code
    }
    else {
        options.success([])
    }

which stopped the initial value mapper ajax request.

This also helped to have only single value mapper request when there is default value set - otherwise it was generating 2 value mapper requests, one with empty value and another one with the set value.

I reckon this will help many users to improve their code.

 

Thanks.

 

Kind regards,

Kristina

 

Approved
Last Updated: 11 Oct 2019 10:08 by ADMIN
Created by: Peter
Comments: 0
Category: UI for ASP.NET MVC
Type: Feature Request
0
The Readonly() property is only available for the Switch control.  Please make available the Readonly() property for the TextBox, ComboBox, DropDownList and MultiSelect as well.
Approved
Last Updated: 18 Oct 2019 09:17 by ADMIN
Created by: Peter
Comments: 2
Category: UI for ASP.NET MVC
Type: Feature Request
0
The Readonly() property is only available for the Switch control.  Please make available the Readonly() property for the TextBox, ComboBox, DropDownList and MultiSelect as well.
Approved
Last Updated: 11 Oct 2019 10:21 by ADMIN
Created by: Peter
Comments: 0
Category: UI for ASP.NET MVC
Type: Feature Request
0
Unify the property used to define the string that appears in the textbox when a widget has no value. For example, currently the MultiSelect uses Placeholder(), the DropDownList - OptionLabel()