[CLOSED] trigger config combobox not able to set iconcls

  1. #1

    [CLOSED] trigger config combobox not able to set iconcls

    Hi Guys

    I want to add trigger icon to combobox using js code the following worked in 2.5.x but not working in 4.1 please check code below

    Combo box is inside a panel

    {
        xtype: 'combobox',
        width: 190,
        matchFieldWidth: false,
        displayField: 'name',                    
        queryMode: 'local',
        //store: App.storeSection,
        multiSelect: true, 
        valueField: 'id',
        name: 'param',
        keepBlur: true,
        margin: 2,
        triggersConfig: [
            {
            id: "trig",
            itemId: "trig",
            iconCls: 'SimpleEdit',
            qtip: "<tpl style='font-size:20px;'>Change Sections</tpl>"
    
            }
        ]
    
    }
  2. #2
    Hello, @amitpareek!

    Can't be sure with the context you provided, but the odds are against unregistered resources at page's run time. If you search the forums you'll find some threads about registering specific icons or other resources, made necessary in some circumstances since Ext.NET 3. Necessary because excess of resources were triggering memory limits on IIS servers due to the amount of resources let every time a page was loaded; an optimization in other words.

    Two things that make me believe this is an unregistered resource are:
    - you are using straight extjs code, just javascript. Ext.NET can infer necessary resources by itself when they are used in C#, Razor or WebForms scopes, not in plain javaScript.
    - you mentioned you want to use a custom trigger icon on a combo box, and those icons are available, but sometimes Ext.NET needs to know you want them before it loads them in exported resources to the page.

    So, please provide a full runnable & simplified example with your usage case and we can tell you if that's really the case, and what changes you need to apply to the code in order for the trigger icon to work.

    Of course, if you can find the topic by searching in the above mentioned directions, let us know which one (and hopefule which exact solution) was for your case.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hi @fabricio ,

    Tried this in Mvc controller using mvc 5

    Ext.Net.ResourceManager.GetIconRequester(Icon.Appl icationFormEdit);

    but no luck , icon still wont show up .
    Last edited by amitpareek; Jun 23, 2016 at 6:26 PM.
  4. #4
    Hello @amitpareek!

    Give this thread a try! If this does not help, please provide a test case so we can help you. Deal?

    ImageCommandColumn change Icon on client-side issue
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Combobox trigger in Extjs 4
    By yash.kapoor in forum 2.x Help
    Replies: 4
    Last Post: Jan 02, 2014, 7:49 PM
  2. [CLOSED] MiniListWidth doesn't exist within combobox list config
    By Daly_AF in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 19, 2012, 5:09 PM
  3. [CLOSED] combobox list config not available in razor views
    By machinableed in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 03, 2012, 2:54 PM
  4. [CLOSED] ComboBox Trigger
    By state in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 02, 2009, 7:51 PM
  5. ComboBox trigger unaligned
    By marcossoft in forum 1.x Help
    Replies: 2
    Last Post: Apr 22, 2009, 5:50 PM

Posting Permissions