I have a simple toolbar with a button on it, but when I click the button, I'm not getting a postback....?
<igtbar:UltraWebToolbar ID="toolBar1" runat="server" BackgroundImage="" ImageDirectory="" ItemWidthDefault="" onbuttonclicked="toolBar1_ButtonClicked">
<Items>
<igtbar:TBarButton DisabledImage="" HoverImage="" Image="" Key="New" SelectedImage="" Text="New" AutoPostBack="true">
</igtbar:TBarButton>
How come the toolBar1_ButtonClicked server code isn't being called?!?
I used a similar set up using Version=7.2.20072.61 of the controls.
<igtbar:UltraWebToolbar ID="UltraWebToolbar1" runat='server' OnButtonClicked="UltraWebToolbar1_ButtonClicked" > <Items> <igtbar:TBarButton Key="new" Text="new" AutoPostBack="true"> </igtbar:TBarButton> </Items> </igtbar:UltraWebToolbar>
And the control posted back fine. If you are still having problems with this (or using a different version) I suggest creating a really small demo application, and submitting it to Developer Support.
I did some additional testing.....
My aspx page has a <cc1:ValidatorCalloutExtender> from the AjaxControlToolkit on it. When I removed it from the page, the buttons on the toolbar started posting back properly.
I have a similar problem, however, my application is very complicated.
In simple terms, I have a webgrid that I launch a dialog form (instead of an open web page). This dialog has a formview and an ultrawebtoolbar above the formview, all inside an AJAX update panel. The toolbar has a series of buttons to emulate the formview buttons, edit, insert, update, cancel, close, and paging buttons (first, next prev, last).
When I page from one record to the next, the buttons post back and everything is fine. I can also enter a formview edit mode or formview insert mode via the toolbar buttons without a problem. I can then save or cancel the record (Update/Insert/Cancel) and this works as well. However, after this point the page no longer posts back. All client javascript runs fine, but the postback never occurs, whether using the paging buttons, or trying to edit or insert a new record.
To make things uglier, the buttons all behave themselves if the form is not a dialog. This is not so good for me because I need to control the dimensions of the web page, and I need to restrict the user from accessing the application while editing the record.
FINALLY, the problem does not occur on all dialog forms I am using. Some work and others do not. I am using the same code on all forms via a javascript file that is referenced and classes containing the comon code for working the toolbar buttons at the server.
I am submitting this problem to support to see if they know anything. Just thought others may jump in if this exerience is public...