There is a Table which is hosted in a panel. I want to hide the panel when the table is empty. I can add a parameter to pass the number of rows at runtime and add rule to hide the panel. Just wondering is there a better way to do it.
You can hide the Table item directly. The easiest way is to set a Binding for a table "header" Textbox.
Property Path
Expression
Parent.Visible
=IIF(Count(1)>0, True, False)
Check out the attached sample report that illustrates the suggested approach.
Regards,
Steve
the Telerik team
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 Public Issue Tracking
system and vote to affect the priority of the items
Thanks for your reply. One more question. Is there anyway we can get the number of table rows? We have a table which shows the device data daily. On the top of the table we got a textbox and shows the number of days whcih the talbe contents.
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 Public Issue Tracking
system and vote to affect the priority of the items