Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
370
Adding an 'if' statement in the GetValueJavaScript
posted

I would like a textbox to show nothing if the value coming from the database is NULL.

Currently, it is a number so it shows '0'.  If the value is '0', I would like it to show nothing.

Using the GetValueJavaScript attribute, can you write add an if statement to the this attribute?

Thanks.

Parents
No Data
Reply
  • 20255
    Offline posted

    Hello Gloria,

    Thank you for using our forums.

    By default our WebDataGrid is showing null values as empty strings. I don't know what do you mean by saying textbox? Do you mean some of our editor providers? Could you please share with me more information about your concerns, like exact product version and some code snippet of your Grid.

    Looking forward to hearing from you.

Children