0

I found this code for populate searchoption

editoptions: { value: "List:School" }, stype: 'select',
searchoptions: { value: "List:List Prices;School:School Prices" }

But I want to Populate it from Data in Controller use some JQuery Ajax like this

$.getJSON(url, function (data) 

How can I do it.Thanks !

skaffman
  • 398,947
  • 96
  • 818
  • 769
lovedota
  • 111
  • 2
  • 5

1 Answers1

0

Look at another my answer. The dataUrl and buildSelect parameter of the searchoptions works exactly like the same parameter of the editoptions. So you can use the same code.

If you want have different values and display names inside of drop-down list you can make a simple modification in the code from the answer. I hope it will be no problem you you.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798