0

I want to export my gridPanel to excel. I am using ext.net(Version 1.6) and vb.net code behind and i don't want to use any java script function. Please Take a look at this function.

<script type="text/javascript">
var saveData = function () {
GridData.setValue(Ext.encode(GrdAppointment.getRowsValues({ selectedOnly: false })));};
</script> 

Is it possible to use an equivalent of this function from vb? Thanks.

Joseph
  • 5
  • 1
  • 2
    I don't think there is an equivalent. Please clarify why do you not want to use JavaScript for that operation? – Daniil Veriga May 17 '13 at 12:12
  • Hello Daniil, I do not want to use JavaScript because i can't use listeners to call JavaScript function (am already using DirectEvent for my button). So what i put this java script function in aspx header! But i don't know how to call this function from vb.net. – Joseph May 19 '13 at 16:37
  • I tried this: `code`System.Web.UI.ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "Script", "saveData();", True) `code` but it's not working – Joseph May 19 '13 at 16:43
  • 1
    To call a JavaScript function from server side you can use X.Js.Call("saveData"). – Daniil Veriga May 20 '13 at 04:19

0 Answers0