Just doing my first umbaco 7 project and want to use the new nuPickers.JsonDropDownPicker.
I have set it up to call ~/umbraco/Surface/DataTypeSurface/GetProductFilters
This succesfully calls my function
[HttpGet] [NotChildAction] public JsonResult GetProductFilters() { var Items = new List();
Items.Add(new SelectListItem { Text = umbraco.library.GetDictionaryItem("value.default"), Value = "" }); Items.Add(new SelectListItem { Text = umbraco.library.GetDictionaryItem("value.price"), Value = "price" });
return Json(Items); }
but nothing is returned in the dropdown in the document where I have placed this datatype. Can't seem to find any documentation on what format the Json needs to be in or a good example of how this works, has anyone succesfully used this datatype in umbraco 7 and can give me some quick pointers?
nuPickers.JsonDropDownPicker question
Hi everyone,
Just doing my first umbaco 7 project and want to use the new nuPickers.JsonDropDownPicker.
I have set it up to call ~/umbraco/Surface/DataTypeSurface/GetProductFilters
This succesfully calls my function
but nothing is returned in the dropdown in the document where I have placed this datatype. Can't seem to find any documentation on what format the Json needs to be in or a good example of how this works, has anyone succesfully used this datatype in umbraco 7 and can give me some quick pointers?
thanks
I think you need to allow a get request to your action when you are returning json.
Dave
Hi James,
Do you have the following for your data-type configuration ?
@Dave - yes that was it! thanks..
is working on a reply...