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
181
How to avoid rendering of hidden columns?
posted

Hi, If I have a webGrid datasource with columns let's say C1, C2, C3, ...C10, but I'll never display columns C7, C8, C9 nor C10, How can I avoid rendering to the client those columns data? I know I can hide them, but I see that even though I hide them, they are present in the html rendered to the client and I don't want that in order to make the pages as light as possible.

I'm working with NetAdvantage 2007 Vol 1

 Thanks in advance for your help.

Parents
No Data
Reply
  • 21382
    posted

    You can either set your grid up at design time and remove them from the columns collection, or just mark them as ServerOnly (off the column object), they won't be rendered that way

Children
No Data