jQWidgets Forums

jQuery UI Widgets Forums Grid Master-Details, rowselect problem

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Master-Details, rowselect problem #48344

    Lee
    Participant

    Hi,

    I use master-detail grid but I have a problem with pre-selected row in detail grid. If I chose a row in detail grid, this will be selected by default when I open an other detail records.
    I try to get rid off pre-select by using ready function() but it doesn’t work. Pls adv how to solve this?

    $(“#attributeGrid”).jqxGrid({
    ready: function () {
    //loop through all rows in detail grid and set them to unselect
    var len = records.length;
    for (i = 0; i < len; i++) {
    $(‘#attributeGrid’).jqxGrid(‘unselectrow’, i);
    }
    },
    width: 680,
    source: dataAdapter,

    Regards,
    Ly

    Master-Details, rowselect problem #48345

    Peter Stoev
    Keymaster

    Hi Lee,

    Sorry, I do not understand your question. Could you provide a full sample which demonstrates your application’s scenario so we can run it locally and test it, too? Please, also use the “code” button when you post code in the Forum.

    Looking forward to your reply.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Master-Details, rowselect problem #48358

    Lee
    Participant

    Hi Peter

    It’s the same problem in demo Master-Detail. I explain it with photo Photo illustration

    Here is a lite code but it doesn’t work. My idea is to loop through the source data and unselect all the rows.
    My code works only in our CRM so it doesn’t work in your local environment.

    In my code, records is the name of an array.

    $(“#attributeGrid”).jqxGrid({
    ready: function () {
    var len = records.length;
    for (i = 0; i < len; i++) {
    $(‘#attributeGrid’).jqxGrid(‘unselectrow’, i);
    }
    },
    width: 680,
    source: dataAdapter,

    ….

    Regards
    Lee

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

You must be logged in to reply to this topic.