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
1800
Wingrid performance
posted

Is there any performance setback if the grid formatting is done in an event other than the grid's Initialize Layout ?

Thanks !

And there was an interesting discussion with my friends on the best practices. Using Initialize Layout for formatting grid columns is a best practice ? Well, it is debatable isn't it ?

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I guess is depends on what other event you are using. InitializeLayout is good for a number of reasons. For one thing, it fires any time you set the DataSource on the grid. So if you change or reload your data source, you don't have to worry about calling the same code again since it will be fired automatically.

    It also fires at a time when the grid has access to the data source and the layout has been built so you can access the columns.

    As far as performance goes, I'm not sure there are any big performance benefits to using this event. It's more for convenience.

Reply Children