Jump to content

unidbgrid Ajax catch event


donlego

Recommended Posts

hello

i try to add keydown on

unidbgrid extevent

 

function keydown(e, t, eOpts)
{
    if (e.getKey() == 13) {
    alert('a');
     ajaxRequest(sender, 'customEvent',
     {
     name: sender.text,
     width: sender.getWidth() }
     );

    }
}

 

and in my delphi

 

procedure TFrmPost.gridAjaxEvent(Sender: TComponent;
  EventName: string; Params: TUniStrings);
begin
  inherited;
 if SameText(EventName, 'customevent') then begin
 ShowMessage(Params['name'].AsString + ' ' + Params['width'].AsString);
 end;
end;
 

 

 

the alert from extevent is show, but the event is nothing can i catch,

for the spesifik i want on my grid if i press enter and

 

if grid colum title =a  then show_a;

if grid colum title =b  then show_b;

 

 

 

how to catch ajax even and the grid column position/current col/index/title

from extevent and call it from delphi ?

 

unigui version : profesional edition v.1.0.0.1424 (trial)

 

thanks

Link to comment
Share on other sites

  • 2 months later...
  • 3 years later...

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...