Select field type server side ajax data source

Select field type server side ajax data source

Ajay MadhokAjay Madhok Posts: 9Questions: 4Answers: 0

Hello,

I'm using server side data source for my editor. As I know select field use options like strings, objects and other and they are predefined, also we can update options via update() method. Is there any ways to set select options from the server side data source by default, because I'm not using ajax requests for editor and don't have json response with select options data.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,230Questions: 1Answers: 10,416 Site admin
    Answer ✓

    I don't quite understand the statement about loading data from the server, but not using Ajax for Editor - is your DataTable being populated by an Ajax request?

    If so, you can return an options object in the JSON which Editor will see an act upon - information about that available here.

    Allan

  • Ajay MadhokAjay Madhok Posts: 9Questions: 4Answers: 0

    That's it, thank you!

This discussion has been closed.