Results 1 to 3 of 3

Thread: Changing the tpl dynamically?

  1. #1

    Default Changing the tpl dynamically?

    Hi all,
    Has anybody tried changing the tpl of a combobox dynamically?The scenario is i have a live combobox which loads datasets of multiple parameters depending on a condition.I have only a single store and single model.Model's fields are changed dynamically.Any lights on this?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    IMO you should either create a new model or have all the fields setup in the model at definition. For the tpl, I would use if statements to change the behavior.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2011
    Location
    India
    Posts
    37
    Answers
    1

    Default

    Sumith, Single store is fine but you have to create new models if you are going to get different response based on the condition . We can use the same model only if the response is going to be in same format with different content.. Sample code may help all to understand the question better !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •