[CLOSED] Button appears as disabled after .disabled = false set

  1. #1

    [CLOSED] Button appears as disabled after .disabled = false set

    I set a button on window as disabled until a store is loaded:

    X.Button().Text("Save").ID("SaveButtonEdit").Disabled(true)
    .Store(X.Store()
            .ID("AccountStatusDataComboStore")
            //.AutoLoad(true)
            .Model(
                    X.Model()
                    .Name("AccountStatusDataForCombo")
                    .IDProperty("Id")
                    .Fields(
                        X.ModelField()
                            .Name("STATUS")
                            .Type(ModelFieldType.String)
                    )
                )
            .Proxy(Html.X().AjaxProxy()
                .Url(Url.Action("GetList", "List", new { area = "AccountStatusData" }))
                .Reader(Html.X().JsonReader().Root("data"))    
                                   
            )
            .Listeners(l => l.Load.Handler = "enableSave();" )
    )
    var enableSave = function () {
                App.SaveButtonEdit.disabled = false;
            };
    And the point is that the button does get enabled, you can click it, but it appears visually as disable so it is misleading to the user.
    Last edited by Daniil; Apr 28, 2015 at 9:26 AM. Reason: [CLOSED]
  2. #2
    Hi @registrator,

    In JavaScript you should use a method:
    App.SaveButtonEdit.setDisabled(false);
    or
    App.SaveButtonEdit.enable();
  3. #3
    Thank you.

Similar Threads

  1. Replies: 3
    Last Post: Mar 07, 2013, 1:26 PM
  2. Replies: 2
    Last Post: Aug 28, 2012, 10:26 AM
  3. [CLOSED] disabled button appearance
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 18, 2011, 8:05 PM
  4. [CLOSED] Disabled Checkbox is always false and shows enabled true.
    By Sharon in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 12, 2009, 4:10 AM
  5. [FIXED] [V0.7] Button Disabled
    By Timothy in forum Bugs
    Replies: 12
    Last Post: Nov 04, 2008, 9:36 AM

Posting Permissions