Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
Buttons in the Template field of webdatagrid.
posted

I have issues with buttons in a template field inside the webdatagrid. While clicking on the button it is invoking the javascript method but the page is getting refreshed. How can i avoid the page refresh while click on the button.

Thanks,

Vijay Krishnan

Parents
No Data
Reply
  • 16310
    Offline posted

    Hello Vijay,

    Thank you for posting in the Infragistics community !

    I assume that you are using a server side asp button control. To avoid postback you can call return false; in the end of the javascript function that is invoked on button click.  You can also use a html <input type="button"> control,which does not trigger a postback on button click.

    If these do not help please provide the code for the TemplateDataField and I will suggest accordingly how to resolve your issue.

Children