PDA

View Full Version : [0.8.2] Onclick + extraparms



SouthDeveloper
Feb 10, 2010, 1:28 PM
Hello,

Is it possible to pass parameters on the onclick event?

onclick:


<ext:Button ID="ButtonPesquisar" Text="pesquisar" &#111;nclick="ButtonPesquisar_Click"
Icon="ApplicationFormMagnify" runat="server" StyleSpec="margin-bottom: 10px" />


parameter to pass


Ext.encode(#{GridPanelCNAE}.getRowsValues(false))


Thanks

hbbazan
Feb 10, 2010, 2:05 PM
Hi, I don't know if I understood your question..........but try it



<ext:Button ID="btnAcoes" StyleSpec="display:none" runat="server">
<AjaxEvents>
<Click OnEvent="acoesEnquete_click">
<ExtraParams>
<ext:Parameter Name="parameterName" Value="#{GridPanelCNAE}.getRowsValues(false)"></ext:Parameter>
</ExtraParams>
</Click>
</AjaxEvents>
</ext:Button>


qualquer coisa, faça a pergunta em português para eu entender melhor e ver se posso te ajudar hehe

SouthDeveloper
Feb 10, 2010, 2:12 PM
Why i am trying to do is to access a method so i can bind asp grid, so it can't ajaxevents.


pt-BR

Ae, Conterrâneo!

Eu tô tentando dar bind em gridview (asp), então, não poderia acessar por ajaxevents.

Thanks