Monday, May 19, 2014

mysteries of casting the CallbackEventArgsBase object in a DevExpress ASPxGridView's callback method signature to a more manageable type revealed!

The "json" variable in this example is a JavaScriptSerializer type. The e in the signature of myCallBackPanel_Callback will have some properties hanging off of it which may be automatically assigned to a type precrafted to expect certain values. This type is FooClientParams in my example. "Button" ends up in clientParams.ControlType and "MatchMeUpInCallBack" ends up in clientParams.ControlFunction in my example. In order for this to work, the FooClientParams type must hold string getsetters for ControlType and ControlFunction.

No comments:

Post a Comment