PDA

View Full Version : [CLOSED] Change text property on button



Jurke
Sep 11, 2008, 7:30 AM
Hi
I'm trying to change the .text property on a button that has its onClick event in a AjaxEvents tag. But the property change does not reflect on the web page. Why does not this work?
Im using 0.6 of Coolite


protected void Button1_Click(object sender, AjaxEventArgs e)
{


Button1.Text = "New label";


}


<ext:Button ID="Button1" runat="server" Icon="Key">
<AjaxEvents>
<Click OnEvent="Button1_Click"></Click>
</AjaxEvents>
</ext:Button>





Best regards
Mikael Jürke

Vladimir
Sep 11, 2008, 7:38 AM
Hi Mikael,

This bug was fixed today and changes in SVN now. If you have no SVN access then you can apply next work around (until you will have new version of Toolkit)



protected void Button1_Click(object sender, AjaxEventArgs e)
{
Button1.SetText("New label");
}

Jurke
Sep 11, 2008, 7:50 AM
Thank you, that solved it! How do I get SVN access?

Best regards
Mikael J�rke

Vladimir
Sep 11, 2008, 7:55 AM
The SVN Access currently only available for Professional Edition license holders.

please see http://www.ext.net/store/

dim4ik2008
Feb 09, 2016, 6:50 PM
http://forums.ext.net/showthread.php?10542-CLOSED-1-0-MVC-Grid-Store-Export-to-xls-csv-xml-Error/archive/showthread.php?1885-CLOSED-error-in-online-example