08-02-2018, 11:48 AM
(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>";');