c# - Style background of Cell in EditMode in RadGridView -


i want style cell in radgridview whenever cell turns edit mode backgroundcolor e.g. yellow.

<telerik:radgridview x:name="name" selectionunit="cell">   <telerik:radgridview.resources>        <style  targettype="telerik:gridviewcell">                 <style.triggers>                     <trigger property="isineditmode" value="true">                         <setter property="background" value="yellow"/>                     </trigger>                 </style.triggers>        </style>   </telerik:radgridview.resources> </telerik:radgridview> 

this doesn't anything.

as mentioned in comments, gridviewcell, when editable, displays textbox consumes entire space gridviewcell has available; setting background of gridviewcell nothing, because can't see background of gridviewcell. solution change background of control displayed while gridviewcell editable, need change background of textbox.

in radgridview following:

<telerik:radgridview.resources>         <style targettype="{x:type textbox}">             <setter property="background" value="lightyellow"/>         </style> </telerik:radgridview.resources> 

it changes background color of each selected-to-edit cell lightyellow.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -