[CLOSED] ComboBox with Templates and AJAX

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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.

    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.

Similar Threads

  1. [CLOSED] ComboBox with Templates and AJAX
    By kevinhwang in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 21, 2013, 3:22 PM
  2. Replies: 9
    Last Post: Jan 17, 2013, 5:47 PM
  3. [CLOSED] MVC Templates
    By adelaney in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 16, 2012, 5:04 PM
  4. [CLOSED] Combo with Templates and Ajax
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 02, 2011, 1:22 PM
  5. Templates column in gridpanel
    By hernanjls in forum 1.x Help
    Replies: 0
    Last Post: Aug 13, 2009, 4:47 PM

Posting Permissions