jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts

  • deepaksaini
    Participant

    unable to get selection automatically

    $(‘#jqxgrid_dropdown’).on(‘rowselect’, function (event) {
    var row = $(“#jqxgrid_dropdown”).jqxGrid(‘getrowdata’, event.args.rowindex);
    alert(“inside grid” + row[‘ResidentCode’]); //unable to get value of the row variable
    var dropDownContent = ‘<div style=”position: relative; margin-left: 3px; margin-top: 5px;”>’ + row[‘ResidentCode’] + ‘</div>’;
    $(‘#TxtResidentCode_Lbl’).val(row[‘ResidentName’])
    $(‘#TxtResidentCode_Hidden’).val(row[‘ResidentCode’])
    $(“#TxtResidentCode”).jqxDropDownButton(‘setContent’, dropDownContent);
    });

    $(“#jqxgrid_dropdown”).jqxGrid(‘selectrow’, 0);

Viewing 1 post (of 1 total)