Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Triggering component event from raw text HTML element -- Answered
#3
(08-02-2018, 11:14 AM)José Nilton Pace Wrote: Hi Michael, YES, you can.

Code:
<a href="#" onclick="return SubmitClick('IWBUTTON1','optional_parameter', false);"><i class="fa fa-calendar fa-fw" aria-hidden="true"></i><span>Agenda</span></a>

You can also register a call back 

  WebApplication.RegisterCallBack('fxGridEditCallBack', fxGridEditCallBack);

then in the html do something like this for an ajax call or use the submitclick example above for the non ajax call

            lJS.Add('     var paramlist = "&edittype=0&Agid="+options.gid+"&ArowId="+options.rowId;');
            lJS.Add('     var clk = "executeAjaxEvent(''"+paramlist+"'',null,''fxGridEditCallBack'',true,null,true)";');
            lJS.Add('     return "<a onclick = \"" + clk + "\" href=''#''><img title=''Edit'' src=''/files/Images/default/edit.png''></a>";');
Reply


Messages In This Thread
RE: Triggering component event from raw text HTML element - by joel - 08-02-2018, 11:48 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)