Jun 27, 2013, 3:53 PM
[OPEN] [#290] RadioGroup SetValue function without event fire during page load.
Hi Support team,
On page load I use SetValue function for RadioGroup control like below.
I want to know how I can avoid the event firing during page load event.
Regards,
Kevin
On page load I use SetValue function for RadioGroup control like below.
If Not objProcureHeader.nApprovalEntityID = 0 Then
Dim se If Not objProcureHeader.nApprovalEntityID = 0 Then
Dim setValue As New InsertOrderedDictionary(Of String, Object)
If objProcureHeader.nApprovalEntityID = 1 Then
setValue.Add(rbApprovalAuth.GroupName, "1")
rbApprovalAuth.SetValue(setValue)
ElseIf objProcureHeader.nApprovalEntityID = 2 Then
setValue.Add(rbApprovalAuth.GroupName, "2")
rbApprovalAuth.SetValue(setValue)
End If
End If
This SetValue function fire rbApprovalAuth_Change function below.I want to know how I can avoid the event firing during page load event.
<DirectMethod([Namespace]:="ContractsCentral.DirectMethods")> _
Public Sub rbApprovalAuth_Change(ByVal newValue As String)
Try
Dim objApprvEnt As ProcurementMilestone = New ProcurementMilestone()
objApprvEnt.nProcurementID = EmptyToInteger(intProcureID)
objApprvEnt.nApprovalEntityID = EmptyToInteger(newValue)
objApprvEnt.nListTypeID = 12
objApprvEnt.UpdateRequisition()
Catch ex As Exception
Me.Master.SetValidationMessage = ex.Message
Finally
End Try
End Sub
<ext:RadioGroup ID="rbApprovalAuth" runat="server" GroupName="State">
<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>
<Listeners>
<Change Fn="OnrbApprovalAuth_Change" />
</Listeners>
</ext:RadioGroup>
Regards,
Kevin
Last edited by Daniil; Jul 02, 2013 at 3:48 PM.
Reason: [OPEN] [#290]