{"id":27656,"date":"2022-03-04T18:23:03","date_gmt":"2022-03-04T17:23:03","guid":{"rendered":"https:\/\/help.qualiware.it\/qw-help\/?p=27656"},"modified":"2023-12-09T00:15:08","modified_gmt":"2023-12-08T23:15:08","slug":"griglia-e-vistadati-applicazione-di-uno-stile-differente-alla-riga-selezionata","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/griglia-e-vistadati-applicazione-di-uno-stile-differente-alla-riga-selezionata\/","title":{"rendered":"Griglia e VistaDati: applicazione di uno stile differente alla riga selezionata (vecchio layout)"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">' Il seguente snippet deve essere inserito nell'EventoRender e consente di applicare uno stile differente alla riga selezionata di tutte le griglie presenti nel form\r\nform.AddStyle(\".igg_ActiveRowSelector\",\"background-color:yellow !important\")\r\nform.AddStyle(\"tr.igg_ActiveRow&gt;td\",\"background-color:yellow !important\")\r\n\r\n' ***** Versione utilizzabile con release precedenti alla  2021.07+4\r\ndim style as string\r\ndim g as QWWebControls.QWWebGrid2 = form.findcontrol(\"Grid1\")\r\n\r\nstyle=\"&lt;style type=\"\"text\/css\"\"&gt;\"\r\nstyle+=\" .igg_ActiveRowSelector{background-color:yellow !important} \"\r\nstyle+=\" tr.igg_ActiveRow&gt;td {background-color:yellow !important}\"\r\nstyle+=\"&lt;\/style&gt;\"\r\n\r\ndim l as new System.Web.Ui.WebControls.literal\r\nl.text = style\r\ng.parent.controls.add(l)\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; Il seguente snippet deve essere inserito nell&#8217;EventoRender e consente di applicare uno stile differente alla riga selezionata di tutte le griglie presenti nel form form.AddStyle(&#8220;.igg_ActiveRowSelector&#8221;,&#8221;background-color:yellow !important&#8221;) form.AddStyle(&#8220;tr.igg_ActiveRow&gt;td&#8221;,&#8221;background-color:yellow !important&#8221;) &#8216; ***** Versione utilizzabile con release precedenti alla 2021.07+4 dim style as string dim g as QWWebControls.QWWebGrid2 = form.findcontrol(&#8220;Grid1&#8243;) style=&#8221;&lt;style type=&#8221;&#8221;text\/css&#8221;&#8221;&gt;&#8221; style+=&#8221; .igg_ActiveRowSelector{background-color:yellow !important} &#8221; style+=&#8221;&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[65],"tags":[71],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/27656"}],"collection":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/comments?post=27656"}],"version-history":[{"count":1,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/27656\/revisions"}],"predecessor-version":[{"id":35133,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/27656\/revisions\/35133"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=27656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=27656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=27656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}