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

How could i formulla field set in Telerik Reporting

3 Answers 53 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Tamim
Top achievements
Rank 1
Tamim asked on 06 Nov 2012, 01:46 PM
Hi,
how could i set formulla filed in datatype for exapmle the condition(if and else if)
see my screen shot.
Data type : Supler i want datatype : Supplier
Data type : Emp i want datatype : Employee

Advance Thanks,
Ansari.

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 06 Nov 2012, 03:59 PM
Hello Ansari,

You can use the IIF Conditional Function to achieve the desired result e.g.:

= IIf(Fields.CompanyPosition = "Emp", "Employee", Fields.CompanyPosition)

If you need to make this check for various company positions, you could nest as many IIF functions as needed in the false part of the main function.

Greetings,
Steve
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Tamim
Top achievements
Rank 1
answered on 07 Nov 2012, 04:28 AM
Thanks for ur reply steve

How to check these condition in Fields.datatype in single field
see my screen shot

=IIf(Fields.datatype = "Emp", "Employee", Fields.datatype)
=IIf(Fields.datatype = "Supler", "Supplier", Fields.datatype)
=IIf(Fields.datatype = "SubCon", "Sub Contractor", Fields.datatype)
=IIf(Fields.datatype = "Consul", "Consultant", Fields.datatype)
=IIf(Fields.datatype = "SerPro", "Service Provider", Fields.datatype)
=IIf(Fields.datatype = "Client", "Client", Fields.datatype)


Thanks
Ansari.
0
Tamim
Top achievements
Rank 1
answered on 07 Nov 2012, 05:29 AM
Thanks again.

Solve the problem

Thanks,
Ansari.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Tamim
Top achievements
Rank 1
Answers by
Steve
Telerik team
Tamim
Top achievements
Rank 1
Share this question
or