StiText get value of text during databand events
Posted: Tue Aug 08, 2017 12:24 pm
We are attempting to detect when a databand has no substantial data bound and, in those cases, we would like to hide the databand. To achieve this, we need to detect two properties of each StiText component that is in the databand:
1) The Expression used – i.e., “{FirstName}”
2) The bound value – i.e., “John”
On the databand’s events (we have tried various stages), we have tried calling off to a static method to which we have passed a reference to the databand. We can get access to the StiText components however, we cannot seem to get the bound value or the expression. Even if the StiText component was using static text (such as “First Name: ”) we still cannot seem to get the value. When we look at the .Text and .TextValue during debug – they are null.
How do we access the Text Value of the StiText components and how do we determine if the value was the result of databinding or the text was static? Any assistance is appreciated.
We are using DesignerFX with ASP NET MVC and have updated to the latest version.
1) The Expression used – i.e., “{FirstName}”
2) The bound value – i.e., “John”
On the databand’s events (we have tried various stages), we have tried calling off to a static method to which we have passed a reference to the databand. We can get access to the StiText components however, we cannot seem to get the bound value or the expression. Even if the StiText component was using static text (such as “First Name: ”) we still cannot seem to get the value. When we look at the .Text and .TextValue during debug – they are null.
How do we access the Text Value of the StiText components and how do we determine if the value was the result of databinding or the text was static? Any assistance is appreciated.
We are using DesignerFX with ASP NET MVC and have updated to the latest version.