Tuesday, June 10, 2014

Trigger a CustomCallback on a DevExpress ASPxGridView and hand it a magic string.

If you have an ASPxGridView named MyGrid in an ASP.NET web forms project and you manually trigger its callback while passing it a magic string from the JavaScript side like so:

var myJunk = "fjsdojkslfjslfjsalf";
MyGrid.PerformCallback(myJunk);

 
 

...you may get "fjsdojkslfjslfjsalf" back into a variable on the C# side like this:

private void MyGrid_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
   string myJunk = e.Parameters;

No comments:

Post a Comment