JSDO - setting validation on schema model

Posted by MTBOO on 03-Dec-2015 06:38

Does JSDO support setting validation on schema model. Wiring up Kendo Grid to JSDO data source but would like to enforce validation at schema level

        var baseDS = {
           type: "jsdo",
           serverFiltering: true,
           //batch:true,
           transport: {
               jsdo: "Demo.CustomerBusinessEntity",
               tableRef: "eCustomer",
               countFnName: "count"
           },
           schema: {
               model: {
                   fields: {
                       // Is defining fields/properties possible using the JSDO?
                       CustRef: {
                           type: "string",
                           editable: false,
                           validation: { required: true },
                       }
                   }
               }
           },

Posted by egarcia on 03-Dec-2015 10:12

Hello,

Currently, the JSDO does not have support for extending the schema via Kendo UI.

We have an enhancement to look into this in a future release.

You could enter an idea in the Ideas section to vote on this feature.

Thanks.

All Replies

Posted by egarcia on 03-Dec-2015 10:12

Hello,

Currently, the JSDO does not have support for extending the schema via Kendo UI.

We have an enhancement to look into this in a future release.

You could enter an idea in the Ideas section to vote on this feature.

Thanks.

This thread is closed