andyhill Posted July 2, 2023 Share Posted July 2, 2023 ... DBListGrid.ClientEvents.ExtEvents.Clear; s:= 'select=function select(sender, selected, eOpts)'#13#10+ '{'#13#10+ ' ajaxRequest(fMain.DBListGrid, ''_SelectedRow_'', ["row="+selected.???]);'#13#10+ '}'; DBListGrid.ClientEvents.ExtEvents.Add(s); ... procedure TfMain.DBListGridAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin ////////////////////////////////////////////////////////////////////////////// if SameText(EventName, '_SelectedRow_') then begin SelectedRowNumber:= Params.Values['row'].ToInteger; end; ... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 3, 2023 Share Posted July 3, 2023 Hello @andyhill "Ext Function "select" How Do I Decode Selected Row Number ?" For what purpose? Quote Link to comment Share on other sites More sharing options...
andyhill Posted July 3, 2023 Author Share Posted July 3, 2023 When ever a user selects a row in a grid I want to know (via ajaxevent). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.