Scheduler and Saving Attendee's Array to Web Api and a MS SQL backend

0 Answers 8 Views
Data Source Scheduler
Edward
Top achievements
Rank 1
Edward asked on 25 Jun 2021, 05:51 PM

I have a Scheduler Project that allows for the selection on multiple "Attendees" like some of the samples.

My problem is how to save that field to a Web API with a MS SQL backend.

The CRUD endpoints work perfectly until I introduce the Attendee's array.

e.g. [1,2]

I can define it in the Model as type: "string" and it will save it in the SQL as nvarchar(MAX).

 attendees: {
                                    type: "string",
                                    from: "Attendees",
                                    nullable: true
                                },

 

Just can't get it back.

Any help would be appreciated.

 

Ed

 

 

 

 

Martin
Telerik team
commented on 30 Jun 2021, 08:52 AM

Could you please try removing type:"string" from the field configuration? I tested it in our official demos and it seems to be breaking the example as well. So that is probably what is causing the issue. If not, kindly provide a small runnable example where I can observe the problem.

No answers yet. Maybe you can help?

Tags
Data Source Scheduler
Asked by
Edward
Top achievements
Rank 1
Share this question
or