Jun 21, 2013, 8:51 PM
[CLOSED] SetValue Function for GroupRadio Buttons
Hi Support Team,
I have a problem to set value for radio group button after loaded data from DB.
==ASPX page
I could find this link below but it didn't work.
http://forums.ext.net/showthread.php...-checked-value
Regards,
Kevin
I have a problem to set value for radio group button after loaded data from DB.
==ASPX page
<ext:RadioGroup ID="rbApprovalAuth" runat="server">
<LayoutConfig>
<ext:CheckboxGroupLayoutConfig AutoFlex="false" />
</LayoutConfig>
<Defaults>
<ext:Parameter Name="name" Value="ccType" />
<ext:Parameter Name="style" Value="margin-right:15px;" />
</Defaults>
<Items>
<ext:Radio ID="RdBoardAward" runat="server" InputValue="1" BoxLabel="Board Award">
</ext:Radio>
<ext:Radio ID="RdPurchasingAward" runat="server" InputValue="2" BoxLabel="Purchasing Award">
</ext:Radio>
</Items>
</ext:RadioGroup>
==Code page If Not objProcureHeader.nApprovalEntityID = 0 Then
Dim setValue As New Dictionary(Of String, Object)
If objProcureHeader.nApprovalEntityID = 1 Then
setValue.Add("RdBoardAward", True)
rbApprovalAuth.SetValue(setValue)
ElseIf objProcureHeader.nApprovalEntityID = 2 Then
setValue.Add("RdPurchasingAward", True)
rbApprovalAuth.SetValue(setValue)
End If
End If
But it's not updated on radio control after render.I could find this link below but it didn't work.
http://forums.ext.net/showthread.php...-checked-value
Regards,
Kevin
Last edited by Baidaly; Jun 24, 2013 at 6:10 PM.
Reason: [CLOSED]