jQWidgets Forums

jQuery UI Widgets Forums React Disable / enable jqxGrid dynamically

This topic contains 2 replies, has 2 voices, and was last updated by  m.nouraei 6 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Disable / enable jqxGrid dynamically #101488

    m.nouraei
    Participant

    Hello friends,
    I have a problem activating and deactivating the jqxGrid dynamically, please give me a pin.
    The table is editable when I do this.

    
        onClickDisabled(event){
            if(JQXLite('.destinationGrid').jqxGrid('disabled')){
                this.destinationGrid.disabled(false);
                this.destinationGrid.editable(false);
                return;
            }else
            {
                this.destinationGrid.disabled(true);
                this.destinationGrid.editable(true);
                return;
            }
        }
    
    Disable / enable jqxGrid dynamically #101528

    Hristo
    Participant

    Hello m.nouraei,

    You could get the condition of the jqxGrid on that way – if(this.destinationGrid.disabled())
    I would like to ask you are you sure you want to disable the jqxGrid and at the same time to be editable.
    It is a little bit strange case.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Disable / enable jqxGrid dynamically #101531

    m.nouraei
    Participant

    Hello Hristo,

    Yes you are right.
    A typo error has come from my side in this code sample.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.