Turn telerik rad grid cell value Green if positive client side(UI)

1 Answer 99 Views
Grid
Vijay
Top achievements
Rank 1
Vijay asked on 31 May 2021, 05:31 AM | edited on 31 May 2021, 07:31 AM

Hi,
I have a Telerik rad grid, where I can enter negative and positive values. When I enter a positive value in the cell I need to display the cell value in "Green" color.  In GridTemplateColumn am using RadNumericTextBox

Please note that I need to achieve this through the client-side and not through code-behind.

 

 

Attila Antal
Telerik team
commented on 02 Jun 2021, 06:34 PM

Hi Vijay. Could you tell me which edit mode are you using for the Grid? Is it the Batch or the others like InPlace, EditForm, perhaps EditForm Template?
Vijay
Top achievements
Rank 1
commented on 11 Jun 2021, 02:45 PM

Hi,
I am using in line edit
Attila Antal
Telerik team
commented on 16 Jun 2021, 09:29 AM | edited

Both EditMode="InPlace" and EditMode="Batch" are In-Line editing functionalities. Only that the InPlace requires a PostBack for every action, in BatchEdit, everything happens on the client-side, except when saving the changes at the end. Which one is it?
Vijay
Top achievements
Rank 1
commented on 29 Jun 2021, 01:18 PM

its BatchEdit

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 29 Jun 2021, 01:51 PM

Hi Vijay,

Check out the Disable Editing of Certain Cells in Grid with Batch editing knowledge base article and see how the cells are colored based on a condition.

That article also has a link to the BatchEditing Client-Side APIs documentation as well as the Grid Client-Side events you would normally use when working with Batch editing.

You can use this idea and implement the coloring of cells based on the cell values that were recently changed.

Regards,
Attila Antal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Vijay
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or