.net - ext.net / How to run server-side method on Row Click in GridPanel? -


Hey, messing about ext.net and running in some minor problems.

I run a server-side method when a user clicks on a line in a gridpanel. For example, I read on the Internet that it should be straight forward, but it is not working.

Then, I have GridPanel (in MyTest.aspx)

   & Lt; / Listeners & gt;   

and then the server-side method (in MyTest.aspx.cs)

  [DirectMethod] public zero set customer () {uint customerId = 0; // does not do anything)   

SetCustomer is not executed, but the listener is working I instead

  & rt; RowClick Handler = "SetCustomer" /> I   

I do

  & lt; Rocic handler = "alert ('test')" />   

And if that works, any thoughts would be appreciated =)

  & lt; Rochelle Handler = "Ext.net. DirectMethods.SetCustomer ();" / & gt;   

View

Comments