This is a migrated thread and some comments may be shown as answers.

[Solved] Custom Formatting

0 Answers 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rafael
Top achievements
Rank 1
Rafael asked on 03 Nov 2011, 01:42 PM
Hi,

I'd like to format the value of a given cell according to the value of another cell (from another column).
Example:
I have a grid with 2 columns: "Type" and "Value".
If the value of "Type" cell (given row) is "Percent" then the format of the "Value" cell must be percent (same row).
If the value of "Type" cell is "Currency" then the format of the "Value" cell must bem currency.
So I first need to check the column name and then verify that the contents of the cell is "Percent" or "Currency"

I do not know if it makes a difference, but this grid is a tabstrip
I tried using the example of the link "Custom Formatting" from the Telerik site (http://demos.telerik.com/aspnet-mvc/grid/customformatting), but did not work.

Could you help me please?
Thx.

Tags
Grid
Asked by
Rafael
Top achievements
Rank 1
Share this question
or