jQuery('#grid').jqGrid({"width":700,"hoverrows":true,"viewrecords":true,"jsonReader":{"repeatitems":false,"subgrid":{"repeatitems":false}},"xmlReader":{"repeatitems":false,"subgrid":{"repeatitems":false}},"gridview":true,"url":"/index.php?option=com_obsuser&task=project.participgrid&format=raw&lang=es","editurl":"/index.php?option=com_obsuser&task=project.participgrid&format=raw&lang=es","cellurl":"/index.php?option=com_obsuser&task=project.participgrid&format=raw&lang=es","ignoreCase":true,"scrollOffset":0,"footerrow":true,"userDataOnFooter":true,"headerTitles":true,"autowidth":true,"forceFit":true,"shrinkToFit":true,"altRows":false,"height":"auto","rowNum":20,"rowList":[20,30],"sortname":"IdProject","gridComplete":function(rowid, selected) { jQuery('a[name="view"]').click(function(event){ event.preventDefault(); alert(this.href); SqueezeBox.fromElement(this,{handler:'iframe', size:{x:700, y:700}}); }); },"datatype":"json","colModel":[{"name":"Sel","editable":false,"sortable":false,"resizable":false,"fixed":true,"width":40,"formatter":fmtterView},{"name":"IdProject","index":"IdProject","editable":true,"sorttype":"int","key":true,"label":"Id","width":"50","fixed":false,"hidden":true},{"name":"CIF","index":"CIF","editable":true,"sorttype":"string","label":"Cif","width":"100","fixed":true},{"name":"CompanyName","index":"CompanyName","editable":true,"sorttype":"string","label":"R. Social","width":"150","fixed":true},{"name":"Acronym","index":"Acronym","editable":true,"sorttype":"string","label":"Acrónimo","width":"120","fixed":true},{"name":"Area","index":"Area","editable":true,"sorttype":"string","label":"Area","width":"120","fixed":true},{"name":"SubArea","index":"SubArea","editable":true,"sorttype":"string","label":"SubArea","width":"120","fixed":true},{"name":"Funding","index":"Funding","editable":true,"sorttype":"numeric","label":"Financiación","width":"60","fixed":false,"align":"right","formatter":"number","formatoptions":{"thousandsSeparator":".","decimalPlaces":0}},{"name":"CDTIFunding","index":"CDTIFunding","editable":true,"sorttype":"numeric","label":"Finan.Bruselas","width":"60","fixed":false,"align":"right","formatter":"number","formatoptions":{"thousandsSeparator":".","decimalPlaces":0}},{"name":"Budget","index":"Budget","editable":true,"sorttype":"numeric","label":"Presupuesto","width":"60","fixed":false,"align":"right","formatter":"number","formatoptions":{"thousandsSeparator":".","decimalPlaces":0}},{"name":"ProjectType","index":"ProjectType","editable":true,"sorttype":"string","label":"Tipo Proy","width":"120","fixed":true},{"name":"EntityType","index":"EntityType","editable":true,"sorttype":"string","label":"Tipo Ent","width":"120","fixed":true},{"name":"Coor","index":"Coor","editable":true,"sorttype":"int","label":"Coor","width":"50","fixed":true},{"name":"Title","index":"Title","editable":true,"sorttype":"string","label":"Título","width":"120","fixed":false},{"name":"Call","index":"Call","editable":true,"sorttype":"string","label":"Call","width":"120","fixed":true}],"postData":{"oper":"grid"},"prmNames":{"page":"page","rows":"rows","sort":"sidx","order":"sord","search":"_search","nd":"nd","id":false,"filter":"filters","searchField":"searchField","searchOper":"searchOper","searchString":"searchString","oper":"oper","query":"grid","addoper":"add","editoper":"edit","deloper":"del","excel":"excel","subgrid":"subgrid","totalrows":"totalrows","autocomplete":"autocmpl"},"pager":"#pager"});jQuery('#grid').jqGrid('navGrid','#pager',{"edit":false,"add":false,"del":false,"search":true,"refresh":true,"view":false,"excel":true,"pdf":false,"csv":false,"columns":false},{"drag":true,"resize":true,"closeOnEscape":true,"dataheight":150,"mtype":"POST"},{"drag":true,"resize":true,"closeOnEscape":true,"dataheight":150,"mtype":"POST"},{"mtype":"POST"},{"drag":true,"closeAfterSearch":true,"multipleSearch":true},{"drag":true,"resize":true,"closeOnEscape":true,"dataheight":150});jQuery('#grid').jqGrid('navButtonAdd','#pager',{id:'_excel', caption:'',title:'Export To Excel',onClickButton : function(e) { try { jQuery("#grid").jqGrid('excelExport',{tag:'excel', url:'/index.php?option=com_obsuser&task=project.participgrid&format=raw&lang=es'}); } catch (e) { window.location= '/index.php?option=com_obsuser&task=project.participgrid&format=raw&lang=es?oper=excel'; } },buttonicon:'ui-icon-newwin'});jQuery('#grid').jqGrid('filterToolbar',{"stringResult":true}); function fmtterView(cellValue, options, rowdata) { return " Ver"; }