Require better performance while creating control dynamically

1 posts, 0 answers
  1. ankool
    ankool avatar
    50 posts
    Member since:
    Apr 2007

    Posted 14 Sep 2010 Link to this post

    Hey,

    I am creating a search criteria screen based on dataset from DB. This screen generally contains 10 labels, 15 combobox and 5 textbox / checbox or may be more.

    Now based on datatype of each datarow, I dynamically create either a combo or textbox or required control. The probelm is that I don't like the time taken to load this screen via this method.

    Can you suggest a better method to build similar screens ? So that I don't have to create new instance of combobox for every datarow. 

    Another Idea
    Build a combo with common properties ( height, width, etc) and for each datarow just keep cloning the same combo and load values to it. I have not tried above idea and don't know that will it improve performance or not.

    Are there other methods to get better performance while creating radcontrols dynamically ?

    Please let me know if you need any other information.

    Thanks
Back to Top