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

Textbox bottom border binding dynamic

1 Answer 198 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Хосбаяр
Top achievements
Rank 1
Хосбаяр asked on 02 Mar 2017, 08:02 AM

im trying bind textbox bottom border

Property path : Style.BorderStyle.Bottom

Expression: =IIf(Parameters.FooterNamesCount.Value=3,Solid,None)

textbox bottom by default set none. But when parameter =3 bottom border not changed.

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 03 Mar 2017, 12:47 PM
Hello Хосбаяр,

Value for BorderStyle property should be passed as strings, for example: 
=IIf(Parameters.FooterNamesCount.Value = 3, "Solid", "None")
Otherwise, the expression engine would try to process those values as built-in objects and fail to evaluate the expression.


Regards,
Katia
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Хосбаяр
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or