Jan 27, 2021, 4:08 PM
[CLOSED] ComboBox with Templates and AJAX
Hi!
Could you please create an example corresponding to this one?
ComboBox with Templates and AJAX
I'm trying with Razor POST, but Paging<T> is missing.
I cannot find an Ajax Proxy sample, so I have problems with URL property as well.
here is my non-working code - I'm trying to set all in codebehind.
I tried to use a standard combobox with a local store without any success, but sad consolation, neither yours is working in this example https://examples.ext.net/#/kitchen_sink/forms/register
If you want to update Example Explorer Project I can download it from github.
Thank you very much, any hint is much appreciated.
Could you please create an example corresponding to this one?
ComboBox with Templates and AJAX
I'm trying with Razor POST, but Paging<T> is missing.
I cannot find an Ajax Proxy sample, so I have problems with URL property as well.
here is my non-working code - I'm trying to set all in codebehind.
public ComboBox GetCombo()
{
var cbo = new ComboBox()
{
DisplayField = "Common",
ValueField = "Botanical",
Width = 200,
PageSize = 10,
TypeAhead = false,
HideTrigger = true,
MinChars = 2,
TriggerAction = "Query"
};
// Store
var s = new Store
{
PageSize = 15,
ModelValue = new Model()
{
Fields = new List<DataField>
{
new DataField() { Name = "Common", Type = DataFieldType.String },
new DataField() { Name = "Botanical", Type = DataFieldType.String }
}
}
};
s.Proxy = new AjaxProxy()
{
ActionMethods = new CRUDModel() { Read = "POST" },
Url = "?handler=GetPlants"
};
cbo.Store = s;
return cbo;
}
Even in page I'm missing the ListConfig tag helper and I don't know how to set it (but I prefer to work in .cshtml.cs files).I tried to use a standard combobox with a local store without any success, but sad consolation, neither yours is working in this example https://examples.ext.net/#/kitchen_sink/forms/register
If you want to update Example Explorer Project I can download it from github.
Thank you very much, any hint is much appreciated.
Last edited by fabricio.murta; Feb 01, 2021 at 11:04 PM.