vendredi 23 mai 2014

During AJAX call RawValue of control gets posted, Can we override that behavior?

Hi,

We are using EXT.NET library within our application and have extended NumberField control. We have implemented some custom formatting (like adding % sign) within extended control. If control contains 50 as its value then raw value would be 50%. Now when we submit data from page having this custom control through AJAX, the control's raw value (e.g. 50%) is sent to server through submitdirecteventconfig. While we want to receive actual value from browser instead of raw value from control.


We have tried to override getSubTplData, getSubmitValue and processRawValue within extended control, but nothing seems to be invoked at time of AJAX call. Is there any way we can override this behavior (not send raw value from control)?


Any help would be really appreciated.

Thanks.





Aucun commentaire:

Enregistrer un commentaire