Free Support Forum - aspose.com

It still doesn't work for create the new button for Gridweb

it still doesn't work for create the new button for Gridweb save excel file.

please show me If you have file demo code

I can solve that by change code below

Button1.Attributes("onmousedown") = "Gridweb1.updateData();"

to

Button1.Attributes("onmousedown") = "SiteContent_Gridweb1.updateData();"

I see. You put the grid in a Panel control. So the grid control’s client name should be added by a prefix.

Now I got the new problem about validate data.

GridWeb Can't validate data

from the code

ButtonExport.Attributes("onmousedown") = "SiteContent_Gridweb1.updateData();"

I think shoud be add some javascript fuction.

To use client-side validations, try this code:

ButtonExport.Attributes["onclick"] = "SiteContent_GridWeb1.updateData(); if (!SiteContent_GridWeb1.validateAll()) return false;";