Jump to content

List of selected row of uniStringGrid


naquan

Recommended Posts

I need to handle a list of Selected Row of uniStringGrid as below

 Add rowModal.selectionchange function in extEvents:

function rowModel.selectionchange(sender, selected, eOpts)
{
  ajaxRequest(this, '_rowselectchange', ['Selected='+selected,'eOpts='+eOpts]);
}

Add AjaxEvent function in Form

procedure TfrmTestGrid.aStringGridAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings);
var Col,Row:int16;
begin
    if EventName='_rowselectchange' then
        Memo_Result.Lines.Add('Selected='+Params.Values['Selected']+'; eOpts='+Params.Values['eOpts']);

end;

Result: Selected=[object Object],[object Object],[object Object],[object Object],[object Object]; eOpts=undefined

Could you please instruct me how to extract list of selected row index from the "object"

Best regards,

Nguyen Anh Quan

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...