[CLOSED] Rendering Combobox dynamically in gridpanel

  1. #1

    [CLOSED] Rendering Combobox dynamically in gridpanel


    I have a requirement that I need render a combobox in a gridpanel dynamically depends on other column value.

    Grid panel is
    <ext:GridPanel ID="GridPanel2" runat="server" Title="" Frame="false" Scroll="Vertical"
        AutoScroll="true" Header="false">                                  
            <ext:Store ID="Store2" runat="server" GroupField="XX">
                    <ext:Model ID="Model4" runat="server">
                            <ext:ModelField Name="Frequency" Type="Int" />
                            <ext:ModelField Name="DefaultFrequency" Type="String" />
        <ColumnModel ID="ColumnModel2" runat="server">
                <ext:Column ID="Column7" runat="server" Text="DefaultFrequency" Hidden="true" DataIndex="DefaultFrequency" />
                <ext:ComponentColumn ID="ComponentColumn1" runat="server" Editor="true" DataIndex="Frequency"
                        <ext:ComboBox ID="cboFrequency" StoreID="storeFrequency" runat="server" EmptyText="Select" DisplayField="Type"
    combobox cboFrequency Store contain following data
    Id Type
    1 Daily
    2 Weekly
    3 Monthly
    4 Quarterly
    5 Yearly

    Format of store is
    <ext:Store ID="storeFrequency" runat="server">            <Model>
                    <ext:Model ID="Model2" runat="server">
                            <ext:ModelField Name="Id" Type="Int">
                            <ext:ModelField Name="Type" Type="String">
    If DefaultFrequency is "3,2,1" then combobox should bind respective items only to that combobox for that row

    Please suggest me some solution on this requirement.

    Thank you
    Last edited by Daniil; Dec 21, 2014 at 1:25 PM. Reason: [CLOSED]
  2. #2
    Hi @iansriley,

    You can configure a ComponentColumn's Component in a ComponentColumn's BeforeBind event handler.

    There is an example of using a BeforeBind event.

Similar Threads

  1. Replies: 14
    Last Post: Aug 18, 2016, 1:57 AM
  2. [CLOSED] Load combobox dynamically inside gridpanel editorfield
    By matrixwebtech in forum 2.x Legacy Premium Help
    Replies: 17
    Last Post: Jul 11, 2014, 3:04 PM
  3. Gridpanel: dynamically reload combobox
    By slonati_adv in forum 2.x Help
    Replies: 0
    Last Post: Sep 26, 2012, 10:06 AM
  4. [CLOSED] Rendering new controls dynamically with a context menu
    By logicspeak in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 24, 2011, 10:29 AM
  5. [CLOSED] Rendering control dynamically at particular position
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 21, 2010, 12:59 PM

Posting Permissions