How can I create the new button for Gridweb save excel file?


#1

How can I create the new button for Gridweb save excel file ?

I try that and call method Gridweb1.LoadPostData() but not working

Please show me the example code


thank


#2

Hi,

In the current version, you should add some client-side code if you want to post data to the server through another button on the page.

for example, your button is defined like this:


note that I have add a onmousedown client event handler in the button.

Then handle the server click event of the button, Call GridWeb1.LoadPostData(), and save it to a file.

In the next version which will be released in earlier next month, this process will be simplified. The LoadPostData method will be obsoleted.