Jun 22, 2010, 7:24 PM
[CLOSED] Need RowEditor ValidateEdit Listener and DirectEvent Example
Can you direct me to examples of RowEditor's ValidateEdit for both the client script and the codebehind? What I am trying to figure out is:
1. Which is easier?
2. Is the following definition of the DirectMethod valid?
<ValidateEdit OnEvent="validateLineMethod" >
<ExtraParams>
<ext:Parameter Name="LineItemID" Value="r.data.LineItemID" Mode="Raw" />
<ext:Parameter Name="field" Value="e.field" Mode="Raw" />
<ext:Parameter Name="newvalue" Value="e.value" Mode="Raw" />
<ext:Parameter Name="approved" Value="r.data.Approved" Mode="Raw" />
<ext:Parameter Name="paidAmount" Value="r.data.PaidAmount" Mode="Raw" />
<ext:Parameter Name="denied" Value="r.data.Denied" Mode="Raw" />
</ExtraParams>
</ValidateEdit>
3. What should I return from the public method validateLineMethod to cause the validation to fail the save edit and cause the save to fail?Thanks.