Hi

I have a small problem atm :)
How do I add datasource, store when I build a usercontrol in codebehind (dynamically)?
I don't know the number and type of combos until runtime

Markup code sample:
<ext:Store runat="server" ID="EmployeesStore" AutoLoad="true">
    <Reader>
        <ext:JsonReader ReaderID="EmployeeID">
            <Fields>
                <ext:RecordField Name="EmployeeID" />
                <ext:RecordField Name="LastName" />
            </Fields>
        </ext:JsonReader>
    </Reader>
</ext:Store>
Taken from
https://examples1.ext.net/#/GridPane...Window_Remote/

I have tried to add datasource and store to the UserControl.Controls collection but this does not work as the store could not be found when the clientsScripts are run

Do I need to add the object to the parent form or?

Edit: I get an error: genericEditor_stoPartyField is not defined
The store is named stoPartyField and I can find a div block called genericEditor_stoPartyField_Container
UserControl Id is genericEditor but the class is called GenericEditor

[Solved] look for solution here:
http://forums.ext.net/showthread.php...10163-4-1.aspx

- Peter