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

How to change values of a textbox in detailsection based on conditions?

1 Answer 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Prasanth Rajendiran
Top achievements
Rank 1
Prasanth Rajendiran asked on 17 Aug 2009, 07:44 PM
Hi
In a textbox in detail section, i have to display either low or medium or high based upon the value of another textbox(in detail section), which takes value from the database. Where should i write the if condition statements?

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 18 Aug 2009, 08:43 AM
Hi Prasanth Rajendiran,

For such a simple task you do not have to write any code at all. You can just bind your TextBox using an expression that returns 'Low', 'Medium' or 'High' according to the value of the database field. Please, refer to the Using Expressions topic in the online documentation for additional information about expressions.

Hope this helps.

All the best,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Prasanth Rajendiran
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or