jQWidgets Forums

jQuery UI Widgets Forums Grid Grid- KnockOut

This topic contains 2 replies, has 3 voices, and was last updated by  Peter Stoev 11 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Grid- KnockOut #20675

    saravananmra
    Member

    Hi Team,
    I would like to use the Grid knockout in my apps.

    Requirement is, whenever i click on the tree i need to change the grid datas using this KO.
    i.e Grid datas (i.e rows) should be displayed based on the tree selection. Could you please help me on this?

    Appreciate your help.

    Regards,
    M.Saravana Kumar

    Grid- KnockOut #24289

    ghunter
    Member

    This is a pretty broad question. What *exactly* do you need help with?

    Grid- KnockOut #24297

    Peter Stoev
    Keymaster

    Hi,

    For making dynamic changes based on jqxTree selection, you will have to trigger the Tree’s ‘select’ event.

    $('#jqxTree').on('select',function (event)
    {
    var args = event.args;
    var item = $('#jqxTree').jqxTree('getItem', args.element);
    var label = item.label;
    });

    Inside the event handler, to change the Grid’s data source, you will have to set its “source” property to point to a new instance of the jqxDataAdapter plug-in or update your KO view model.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.