jQWidgets Forums

jQuery UI Widgets Forums Grid Grid toolbar/Statusbar

This topic contains 5 replies, has 3 voices, and was last updated by  mallepaddi 11 years, 7 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Grid toolbar/Statusbar #33004

    assaf.frank123
    Participant

    Can I add regular JqxButtons to the toolar/status bar?

    I would like to add buttons that I can disable them (if needed) upon click on a row.

    The web examples just add regular HTML elements.

    Thanks.

    Grid toolbar/Statusbar #33005

    Peter Stoev
    Keymaster

    Hi assaf.frank123,

    You may look at the StatusBar demo. It shows how to add jqxButton.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Grid toolbar/Statusbar #33011

    assaf.frank123
    Participant

    I tried to get control of the Buttons in the rowClick event of the grid but it is not possible –

    In the grid statusbarrenderer –

    renderstatusbar: function (statusbar) {
    // appends buttons to the status bar.
    var container = $(“

    “);
    var deleteButton = $(“

    Delete

    “);
    ..
    ..
    deleteButton.jqxButton({ theme: theme, width: 65, height: 20 });

    Then later on I would like to do something like –

    $(‘#deleteButton’).jqxButton({disabled: false });

    This does not work – How do I access this deleteButton?

    Thanks

    Grid toolbar/Statusbar #33058

    assaf.frank123
    Participant

    Hi Peter,

    Am I missing something?
    How in the StatusBar example can I set the delete button created in the StatusBar disabled
    dynamically?

    I would like to execute:
    $(‘#deleteButton’).jqxButton({disabled: false });

    Thanks

    Grid toolbar/Statusbar #33060

    Peter Stoev
    Keymaster

    Hi assaf.frank123,

    If your delete button’s ID is “deleteButton” and it is rendered on the Status Bar, then you can select it with jQuery and set its properties.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Grid toolbar/Statusbar #33067

    mallepaddi
    Participant

    Hi

    Following code for disabling button upon row click works ..

    …….
    renderstatusbar: function (statusbar) {
    var container = $(“

    “);
    var deleteButton = $(“

    “);
    container.append(deleteButton);
    statusbar.append(container);
    }

    $(‘#orderCartGrid’).on(‘rowselect’, function (event) {
    $(‘#deleteButton’).jqxButton({disabled: false });
    });

    Thanks

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

You must be logged in to reply to this topic.