Hi,
Is it possible that depending on some expression the cell content can be changed.
my requirement is like for example i have a Country column where if the Cell value is "US" then its content should be replaced by "United States" or the cells background and foreground colors, fonts etc should be changed to some value that i can define in expression editor.
Is this possible?
Is it possible that depending on some expression the cell content can be changed.
my requirement is like for example i have a Country column where if the Cell value is "US" then its content should be replaced by "United States" or the cells background and foreground colors, fonts etc should be changed to some value that i can define in expression editor.
Is this possible?
5 Answers, 1 is accepted
0
Hi Preeti,
You can use RadGridvView's ConditionalStyleSelector (you can see it in action here). The Condition property of the StyleRule class is of type Expression, so you can directly use the expression built by a RadExpressionEditor.
Greetings, Yavor Georgiev
the Telerik team
You can use RadGridvView's ConditionalStyleSelector (you can see it in action here). The Condition property of the StyleRule class is of type Expression, so you can directly use the expression built by a RadExpressionEditor.
Greetings, Yavor Georgiev
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0
preeti
Top achievements
Rank 1
answered on 27 Jul 2011, 06:55 AM
My requirement is little different. i have this earlier developed project for which i have my expression editor. now since this telerik expression editor is strong and can handle multiple cases i would like my editor to be replaced with yours.
is it possible to use it as a control which would just evaluate the condition for cell values of noraml silverlight grid instead of telerik grid and give me true or false depending on the result of the expression? and is there any way to provide it with input values of grid columns.
i am also unable to find the Expression editor control in telerik .windows.controls i am useing version 2011.2.712.1040.
is it possible to use it as a control which would just evaluate the condition for cell values of noraml silverlight grid instead of telerik grid and give me true or false depending on the result of the expression? and is there any way to provide it with input values of grid columns.
i am also unable to find the Expression editor control in telerik .windows.controls i am useing version 2011.2.712.1040.
0
Hi Preeti,
I'm afraid RadExpressionEditor does not provide such functionality out of the box. However, you can download the source code of the control from your account and modify it to suit your needs.
You can also use the new TryParse extension method to parse a string expression programmatically, which you can then compile to a delegate and invoke manually.
RadExpressionEditor is contained in the Telerik.Windows.Controls.Expressions assembly, in the Telerik.Windows.Controls namespace. Please make sure you have the right references and namespace imports, as outlined in our documentation.
All the best, Yavor Georgiev
the Telerik team
I'm afraid RadExpressionEditor does not provide such functionality out of the box. However, you can download the source code of the control from your account and modify it to suit your needs.
You can also use the new TryParse extension method to parse a string expression programmatically, which you can then compile to a delegate and invoke manually.
RadExpressionEditor is contained in the Telerik.Windows.Controls.Expressions assembly, in the Telerik.Windows.Controls namespace. Please make sure you have the right references and namespace imports, as outlined in our documentation.
All the best, Yavor Georgiev
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0
preeti
Top achievements
Rank 1
answered on 02 Aug 2011, 11:13 AM
I am a liscenced user form where can i download the source code?
0
Hello Preeti,
You can download the source code from here.
Kind regards,
Hristo
the Telerik team
You can download the source code from here.
Kind regards,
Hristo
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>