javascript - Handsontable hyperlink redirect not working -
i have loaded handsontable , have added hyperlink. when click on hyperlink redirecting not working.please tell whether have missed out in code..i loading set of values java handsontable ..
java code
headbuild.append("<a href='#'onclick='alertmenu(this);'>" + cflowoutlist.get(i).getcsd_oper_group() + "-" + cflowoutlist.get(i).getfod_lvl_name() + "</a>" + ",");
handsontable
function headrenderer(instance, td, row, col, prop, value, cellproperties) { handsontable.textcell.renderer.apply(this, arguments); var escaped = handsontable.helper.stringify(value); escaped = strip_tags(escaped, '<em><b><strong><a><big>'); //be sure allow html tags avoid xss threats (you should remove unwanted html attributes) td.style.textalign="left" td.style.paddingleft="1%"; td.style.fontweight = 'bold'; td.style.fontsize="10px"; td.style.fontfamily= 'verdana'; td.style.background = '#eefff7'; td.style.color = '#0b610b'; td.innerhtml = escaped; return td; }
cellproperties
if($("#handsontable").handsontable('getdata')[col,row][num_cols-1] ==="inhead"){ cellproperties.renderer=inheadrenderer; }
calling primefaces remotecommand
function alertmenu(obj){ var grouplabel=$(obj).text(); grilldownforecast( [ { name : 'groupname', value : grouplabel }] ); } <p:remotecommand name="grilldownforecast" actionlistener="#{action.actionbean.redirectdrilldown}" />
Comments
Post a Comment