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 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...
New Information!
I painstakenly reconstructed and tested my dialog, one control at a time, and discovered that the problem is caused by a WebCombo control I am using in the Edit Template. If I do not have a WebCombo control on the edit template of the FormView, then there is no postback problem after saving or cancelling a formview edit. If I add one, then the form stops posting back after saving or canceling the edit.
I will pass this on to the support staff and see what is going on...