in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

can I fire a clientside js function after inserted/deleted a row?

Last post 11/24/2008 8:45 PM by James Birnie. 3 replies.
Page 1 of 1 (4 items)
Sort Posts:
Previous Next
  • 11/19/2008 2:20 PM

    can I fire a clientside js function after inserted/deleted a row?

     I'm using Popup Edit Form mode.How can I execute a js function after inserted/deleted a row? Thank you.

  • 11/19/2008 8:43 PM In reply to

    Re: can I fire a clientside js function after inserted/deleted a row?

    Hi Victor,

    Not sure but you might use the clientside OnEndCallback method with a customJSproperty that indicates if the row was updated. These threads may help:

    http://community.devexpress.com/forums/p/63257/215140.aspx#215140

    http://community.devexpress.com/forums/p/67600/229813.aspx#229813

     

  • 11/20/2008 9:42 AM In reply to

    Re: can I fire a clientside js function after inserted/deleted a row?

    I tried "EndCallback' before. It's a problem. when I click new button it fired. And then I canceled. It fired again. I'm not able to sure the record has been inserted or not. Any suggestion?

  • 11/24/2008 8:45 PM In reply to

    Re: can I fire a clientside js function after inserted/deleted a row?

    Hi Victor

    I think the logical flow should be:

    1. set your JSProperty (e.g. cpRowSavedOk or whatever you want to name it) to false$ upon new or existing edit starting (client side)

    2. Following successful delete/insert/update set this JSproperty to true (server side e.g. through relevant datasource event)

    3. on EndCallBack (clientside) - check if your JSProperty = true before doing whatever else you are attempting?

    Best of luck

Page 1 of 1 (4 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED