Hi!
I have a strange problem with the webasyncrefreshpanel and the datetimeedit. I'm using 2009 vol 2 of the asp.net controls. See my code below:
<asp:FormView ID="blaat" DefaultMode="Insert" runat="server"> <InsertItemTemplate> <igmisc:WebAsyncRefreshPanel ID="_warpTimes" runat="server" Height="100%" Width="100%"> <table style="width: 100%;"> <tr> <td style="vertical-align: middle;"> Vertrek: </td> <td> <div style="width: 75px;"> <igtxt:WebDateTimeEdit ID="DepartureTime" runat="server" EditModeFormat="t" HideEnterKey="True" MinimumNumberOfValidFields="1" Width="50px" Style="margin: 0; vertical-align: bottom;" DataMode="DateOrNull" DisplayModeFormat="t" NullText="--:--" Value='<%# Bind("DepartureTime") %>'> </igtxt:WebDateTimeEdit> <asp:ImageButton ImageUrl="~/Images/clock.png" TabIndex="-1" ToolTip="Huidige tijd gebruiken" runat="server" ID="ImageButton3" OnClick="DepartureTimeButton_Click" Style="vertical-align: bottom;" /> </div> </td> </tr> </table> </igmisc:WebAsyncRefreshPanel> </InsertItemTemplate></asp:FormView>
After the WebDateTimeEdit there is an imagebutton with an onclick handler, which sets the current time to the webdatetimeedit. After I have done this I select the webdatetimeedit and hit the backspace key. Then a browser back wil happen. This is pretty annoying.
The strange thing with this is that it's only happening in a code file that isn't on the root of the application.
I've tried to upgrade to the newest version, but then I have to use an updatepanel, right? Problem with that is that the values won't be in the values collection of the inserting event and that i can't have 2 updatepanels (insert and edit template) with controls with the same id. So then I should rewrite my control completely.
Is there someone with any idea how to fix this?
Hi datamex,
Please let me know if you still need help with this issue.
I'm working on this issue today in place of Troy. Would you please send your sample to me so I can better understand the specifics of the issue? You may send the sample to support@infragistics.com if posting to the forum is not satisfactory.
Hi Troy,
The problem was with a webdatetimeedit in a webasyncrefreshpanel. Without the webasyncrefreshpanel there are no issues. I've tried it with version 11.1 and I still have the same problem. I can send you a simple sample project to show you the issue. Cause the problem is really specific.
I have done a some testing of this issue with NetAdvantage 2011.1 but was unable to reproduce an issue where upon selecting webdatetimeedit and keypressing 'BackSpace' that the browser back spaces.
It is possible that this issue existed at some point an time with 2009 volume 2, but had since been corrected.
There are a couple of options you can consider. You can download 11.1 which maintains the classical controls or you can upgrade all the way to 11.2. The classical controls have been retired from the toolkit for 11.2 but you can update your project with version-less assemblies and continue to use them. Here is how:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.3/CLR4.0/html/ASPNET_Versionless_Assemblies.html
http://forums.infragistics.com/blogs/taz_abdeali/archive/2011/11/17/asp-net-product-changes-in-2011-volume-2.aspx
I have attached my test sample to this thread for your review.
Please let me know if you need any additional assistance regarding this matter.
Thanks! I hope you can find a solution :)