Formatting jqw grid


#1

Hello. I’ve a grid and whenever I select a cell, provided it’s in the “Numero” column or in the “Num.eq.” column, I show a form including data about the underliying object. However, column selecting is somehow confusing, as “sensible” column are not shown. How can I have cells in those columns to be underlined? I’d like to make this in the inizialization code. TIA

  grLavoroDaFare2_settings.columns = [ _
  { text: "Dioc.", dataField: "Dioc.", width: 100 }, _
  { text: "Parr.", dataField: "Parr.", width: 100 }, _
  { text: "Località", dataField: "Localita", width: 110 }, _
  { text: "Numero", dataField: "Numero", width: 50 }, _
  { text: "Tappa", dataField: "Tappa", width: 100 }, _
  { text: "Data Inizio", dataField: "DataInizio", width: 100 }, _
  { text: "Dioc.eq.", dataField: "Dioceq", width: 100 }, _
  { text: "Parr.eq.", dataField: "Parreq", width: 100 }, _
  { text: "Com.eq.", dataField: "Comeq", width: 60 }, _
  { text: "Num.eq.", dataField: "Numeq", width: 60 }, _
]
$("#grLavoroDaFare2").jqxGrid(grLavoroDaFare2_settings);
$("#grLavoroDaFare2").jqxGrid("clear");
$("#grLavoroDaFare2 .jqx-widget-content").css("font-size","14px");

#2

You’re going to need to dig into the jqWidgets Grid documentation for this one. They have pretty good documentation - but since it so feature rich, there is a lot of it:

https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-getting-started.htm?search=


#3

Thank you, George. However, I know the jqxwidget site, and yet I haven’t been able to find the keyword to apply to underline a column. The only way I’ve found is a “cellrender” attribute that makes exactly nothing (at least, it makes nothing for me). Maybe i’ll post a research in jqwidgets forum