jQuery UI Widgets Forums Grid Disable/hide button on RenderToolbar

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Lee 10 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Disable/hide button on RenderToolbar #50525

    Lee
    Participant

    Hi!

    Is it possible to disable/enable, hide/show button on Render Toolbar?

    Regards,
    Lee

    Disable/hide button on RenderToolbar #50527

    fbrem
    Participant

    Hi there,

    in my case i solved this by adding an image to the button with a fixed id, and then getting the button via jquery…

    //in grid, when creating the button
    ...
    renderstatusbar: function (statusbar) {
     // appends buttons to the status bar.
     var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>");
     var addButton = $("<div style='float: left; margin-left: 5px;'><img id='<strong>popgridadd</strong>' style='position: relative; margin-top: 2px;' src='/scripts/img/add.png'/></div>");
    container.append(addButton);
    
    //on event
    ...
    $("#popgridadd").parent().jqxButton({ disabled: true });
    Disable/hide button on RenderToolbar #50532

    Lee
    Participant

    Thanks!

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

You must be logged in to reply to this topic.