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

Print Table Lines When Data is Missing

1 Answer 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ercan
Top achievements
Rank 1
Ercan asked on 19 Feb 2021, 04:24 PM

Suppose that 
-- I have a table with max 3 columns
-- Some data has all 3 fields
-- Some does not have all 3 fields ( 1 or 2 )

(check attachment)

What I want to do is I want to draw empty cells if data is missing

How to do with Telerik table?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 24 Feb 2021, 02:15 PM

Hi Ercan,

You could use the IIf function to check if the field returns a value and if not return an empty string for example. 

IIf(Fields.field = Null, "", Fields.field)

Alternatively, you could also use the ternary operator as well.

Fields.field = Null ? "" : Fields.field

I hope that I have been able to help, please let me know if you have any other questions.

Regards,


Dimitar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Ercan
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or