May 04, 2010, 10:34 AM
[CLOSED] [1.0] Checkboxes in user control not updating (incorrect ID)
I have a couple of issues with control id's when using Ext components within user controls.
I have three radio buttons in a group (within a container) that are on a user control (ID=PI). This user control is placed within a panel on another user control (ID=CP0) which is in turn placed on a form within a panel :-
When setting the Checked property in code behind during an update the generated ExtJS is not picking up the correct user control prefixes :-
I also have a similar issue during the same update with a data store on the same control - in this case however the store is referred to as PI_storeMembers rather than RP0_PI_storeMembers. It would appear that the user control reference is prefixed correctly for the hosting user control, but not the topmost :-
I have three radio buttons in a group (within a container) that are on a user control (ID=PI). This user control is placed within a panel on another user control (ID=CP0) which is in turn placed on a form within a panel :-
<ext:RadioGroup ID="groupCheckboxes" runat="server" ColumnsNumber="1" HideLabel="true" HideLabels="false">
<Items>
<ext:Radio ID="chkReturnedOK" runat="server" BoxLabel="Returned OK" AnchorHorizontal="98%" />
<ext:Radio ID="chkReturnedDamaged" runat="server" BoxLabel="Returned Damaged" AnchorHorizontal="98%" />
<ext:Radio ID="chkReturnedLost" runat="server" BoxLabel="Returned Lost" AnchorHorizontal="98%" />
</Items>
</ext:RadioGroup>
The resulting radio buttons are assigned unique id's of CP0_PI_chkReturnedOK etc.When setting the Checked property in code behind during an update the generated ExtJS is not picking up the correct user control prefixes :-
script:"Ext.net.replaceContent(panelProducts ....... ;chkReturnedOK.setValue(false);chkReturnedDamaged.setValue(false);chkReturnedLost.setValue(false);chkReturnedOK.setValue(true);});"
Where chkReturnedOK should be PI_RP0_chkReturnedOK etc. This only occurs during a page update.I also have a similar issue during the same update with a data store on the same control - in this case however the store is referred to as PI_storeMembers rather than RP0_PI_storeMembers. It would appear that the user control reference is prefixed correctly for the hosting user control, but not the topmost :-
PI_storeMembers.callbackRefreshHandler(response, {serviceResponse: {success:true,data:{data:[], total: 0}}}, PI_storeMembers, o.eventType, o.action, o.extraParams)