Jump to content

unigui dbgrid selected row


azago

Recommended Posts

 

---------------Rileva linguaAfrikaansAlbaneseAmaricoAraboArmenoAzerbaigianoBascoBengaleseBielorussoBirmanoBosniacoBulgaroCatalanoCebuanoCecoCinese (semplificato)Cinese (tradizionale)CoreanoCorsoCroatoCurdoDaneseEbraicoEsperantoEstoneFilippinoFinlandeseFranceseFrisone occidentaleGaelico scozzeseGalizianoGalleseGeorgianoGiapponeseGiavaneseGrecoGujaratiHaitianoHausaHawaianoHindiHmongIgboIndonesianoIngleseIrlandeseIslandeseItalianoKannadaKazakoKhmerKirghisoLaoLatinoLettoneLituanoLussemburgheseMacedoneMalayalamMaleseMalgascioMalteseMaoriMarathiMongoloNepaleseNorvegeseNyanjaOlandesePashtoPersianoPolaccoPortoghesePunjabiRumenoRussoSamoanoSerboShonaSindhiSingaleseSlovaccoSlovenoSomaloSotho del sudSpagnoloSundaneseSvedeseSwahiliTagicoTamilTedescoTeluguThaiTurcoUcrainoUnghereseUrduUzbecoVietnamitaXhosaYiddishYorubaZuluItaliano
 
 
I need on a single grid (not on all project grids) not to show the background colors of the selected row

I Use
Delphi Rio
Unigui v1.90.0.1498
Theme uni_sencha

I have also modified the values of beforeinit in the grid

function beforeInit(sender, config)
{
   sender.disableSelection = true;
}

I tried to execute the commands

OnCreate
   MyGrid.JSInterface.JSCallGlobal('Ext.util.CSS.createStyleSheet', ['#'+ MyGrid.JSName + '_id .x-grid-row-selected .x-grid-cell-inner {  background-color:white;  color: black;}', MyGrid.JSName + '_css' ]);


On Destroy
   MyGrid.JSInterface.JSCallGlobal('Ext.util.CSS.removeStyleSheet', [ MyGrid.JSName+'_css' ]);


but the result is that the first cell is always with a colored background.



How can I do ?

 

 

 

image.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...