This is a migrated thread and some comments may be shown as answers.

Problem with DefaultButton in Q1 2012

34 Answers 595 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marian
Top achievements
Rank 1
Marian asked on 21 Feb 2012, 12:37 PM
Hi to all,
I have upgraded my telerik controls from 2011.2.915.40 to 2012.1.215.40 with msi installer.
After uprade I discovered that defaultbutton declared for asp:Panel does not fire postback on pressing
the key Enter.
Here is small example. It works fine with older Telerik.Web.UI, but not with Q1 2012.
<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="Default.aspx.cs" Inherits="Test._Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Test</title>
</head>
 
<body>
    <form id="MainForm" runat="server">
        <telerik:RadScriptManager ID="RadSCM" runat="server" />
        <asp:Panel ID="pnlWrapper" runat="server" DefaultButton="btnSearch">
            <telerik:RadTextBox ID="tbSearch" runat="server" EmptyMessage="Search" Width="130" />
            <telerik:RadButton ID="btnSearch" ButtonType="StandardButton" Text="Search" ToolTip="Searching" runat="server" OnClick="btnSearch_Click" />
        </asp:Panel>
        <asp:Label ID="lblMsg" runat="server" />
    </form>
</body>
</html>
using System;
 
namespace Test
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblMsg.Text = string.Empty;
        }
 
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            lblMsg.Text = "O.K. - Button fired";
        }
    }
}

Does anybody know where is the problem?
Thanks
-Marian

34 Answers, 1 is accepted

Sort by
0
Nick
Top achievements
Rank 1
answered on 21 Feb 2012, 07:58 PM
We are having this same problem.
0
Grigore Dolghin
Top achievements
Rank 1
answered on 22 Feb 2012, 02:55 AM
Same problem here, although it's not related to asp:panel. My code is in page.load:

Me.Form.DefaultButton = btnSave.UniqueID

It just stopped working after update.
0
Marian
Top achievements
Rank 1
answered on 22 Feb 2012, 01:25 PM
Hi guys,

because this problem is serious for me, I have forwarded the same to Telerik as official support ticket.
-Marian
0
Dave
Top achievements
Rank 1
answered on 22 Feb 2012, 04:18 PM
Same problem here. I just upgraded this morning and this was the first thing i noticed. A fix or work around would be great.
0
Slav
Telerik team
answered on 22 Feb 2012, 06:03 PM
Hello,

We are aware of this problem and we are looking for a solution. Currently I am unable to confirm if it would be a fix for the problem or if it will remain as limitation of the new rendering of RadInput. There are several options for fixing the behavior of the RadTextBox control, which could be used for the time being:
  • You could still use the old rendering by setting the EnableSingleInputRendering property to false for your RadInputs.
  • You could set AutoPostBack to true for your Input if it is applicable in your scenario.
  • You could utilize the client-side event OnKeyPress in order to check if the pressed keyboard button is Enter and if it is, to click the RadButton programmatically (via its client-side method click()).

Additionally you can check this forum thread.

Feel free to let us know if you run into more difficulties.

All the best,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Grigore Dolghin
Top achievements
Rank 1
answered on 22 Feb 2012, 07:13 PM
I can't believe I was just read. I really really hope it will not "remain as a limitation of the new rendering of RadInput".

Do you realistically believe we will going to hunt down all the textboxes in our apps to add that property? And even if we do, what about the comboboxes, which do not expose it?

I am using validators and validation summary. User presses enter and I show him what and where to enter. Until last update everything worked smoothly, users were happy and I was happy too. Now they aren't happy anymore and guess what's my mood.

Please put the defaultbutton back. I don't understand why such a breaking change, which make no sense anyway. Why choose a implementation which breaks a well established one?

Besides that, if I press enter in a textbox on a form that has the DefaultButton property set, then the entire page stops working. Tab doesn't navigate to next control anymore, the browers eats 60-90% of the processor and the red upper right x cannot be clicked (all the processing goes to some javascript in the page).

Guys, please FIX this. No "will remain as a limitation". Limitation doesn't mean "we broke it".
0
Marian
Top achievements
Rank 1
answered on 22 Feb 2012, 07:40 PM
Grigore - I agree with you. Nevertheless defaultbutton functionality is not only one problem with RadInputs in Q1 2012. I found unexpected behavior also with their appearance (width) and focusation (sometimes user is unable to focus by click and edit text in enabled text box). But I must do some tests for checking dependencies.
0
Nick
Top achievements
Rank 1
answered on 22 Feb 2012, 08:15 PM
I also noticed there are rendering issues for ie7 in the radnumerictextbox, raddatepicker, radtimepicker, and raddatetimepicker. I'm not sure how, but I'm guessing something was messed up when they minified the css skins.

I think we are going to stick with the Q3 2011 build until they fix their Q1 2012 build. I suggest anyone reading this who has not updated to Q1 2012 does so with caution!!!

Nick
0
Mark
Top achievements
Rank 1
answered on 23 Feb 2012, 10:30 AM
We have numerous applications with Telerik Controls where we depend on the DefaultButton property of a panel. I just can't update all those applications untill this is fixed. 

I cannot believe this will be a limitation!
0
Vasil
Telerik team
answered on 23 Feb 2012, 02:15 PM
Hello,

We found a solution to this problem and it will be fixed for the next service pack of the RadControls.
Please excuse us for the caused inconvenience.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Dave
Top achievements
Rank 1
answered on 23 Feb 2012, 02:45 PM
That's great! Any idea of when that may be released?
0
Marcel Rossi
Top achievements
Rank 2
answered on 23 Feb 2012, 03:49 PM
That's good News.

I am also awaiting that Fix.

I use only the RadControls in all my Projects, whereever I can.
At the Moment I should rollout a greater Solution to my customer but cannot, because that DefaultButton-Problem...

Can you please tell us when you will release that service pack?
Maybe I have to go back to the last Version... :-(

Regards
Marcel
0
Vasil
Telerik team
answered on 24 Feb 2012, 12:23 PM
Hello to all,

The service pack is not tightly scheduled yet and could not be sure when it is. However by upcoming
Tuesday we should have uploaded an internal build that to contains the fix. I would appreciate if you try it out, and share your results. It would be good to have feedback from wide range of real live scenarios.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Mahesh
Top achievements
Rank 1
answered on 28 Feb 2012, 03:46 PM
Please provide instructions on how and where to download the internal update from!
Thanks
0
Mark
Top achievements
Rank 1
answered on 28 Feb 2012, 03:51 PM
I've downloaded the latest internal build here:
http://www.telerik.com/account/your-products/product-versions/single-download.aspx?pmvid=2711&pid=561

In this build the bug is fixed, thank you Vasil!
0
Grigore Dolghin
Top achievements
Rank 1
answered on 28 Feb 2012, 08:16 PM
I am getting "Telerik is undefined" javascript error. I have unzipped the hotfix overwriting the old folder structure, then upgraded the website using Upgrade Wizard. Is there anything else I should do? (deleted the framework cache and visual studio cache).

The error occurs here:
WebForm_AutoFocus('frmMain_ctlLogin');Sys.Application.add_init(function() {
   $create(Telerik.Web.UI.RadAjaxManager, {"_updatePanels":"","ajaxSettings":[],"clientEvents":{OnRequestStart:"",OnResponseEnd:""},"defaultLoadingPanelID":"","enableAJAX":true,"enableHistory":false,"links":[],"styles":[],"uniqueID":"ctl00$myRadAjaxManager","updatePanelsRenderMode":0}, null, null, $get("ctl00_myRadAjaxManager"));


The error occurs on a brand new website as well. What can i do to fix this?
0
Grigore Dolghin
Top achievements
Rank 1
answered on 01 Mar 2012, 10:36 AM
Unistalled Q1 2012, installed it back, upgraded the dll in the bin folder and now it doesn't hang anymore, but still needs work.

Create a blank new RadControls webpage. Drop an <asp:login> cotnrol on it and run the thing. Click the login button - it will show asterisks next to both textboxes.

Run the webpage again, set focus in first textbox and press enter. It will show an asterisk next to that text box, and not to second one. That means user need to tab to next textbox and press enter, then tab to next one, press enter and so on, in order to get all the validation messages.

I am rollling back to Q3 2011, and most probably this is my last ASP.NET project built with Telerik controls.

Have a good day.
0
Salvador Fernández
Top achievements
Rank 1
answered on 02 Mar 2012, 01:15 PM
Some important things does not work in my project after upgrading to Q1 2012, too.


0
Vasil
Telerik team
answered on 02 Mar 2012, 04:13 PM
Hi Grigore,

I will test the described scenario. If confirm the issue I will log it so our developers to fix it.

All the best,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Shonda
Top achievements
Rank 1
answered on 05 Mar 2012, 05:59 PM
Marian -- I have also noticed issues with width. I have a simple log on page with 3 text boxes. All are set to an absolute width of 200px yet the password TextBox with the property TextMode="Password" is noticeably shorter than the TextBoxes without setting the TextMode property.

Luckily on the log on page I really do not need to use the RadControls so I was able to revert back to the normal ASP TextBox to fix the width problem as well as the DefaultButton problem. No so lucky on the other pages however and am eagerly waiting for the official service release so I can deploy my application. Until then I will stick with the previous version.
0
Gary
Top achievements
Rank 1
answered on 14 Mar 2012, 03:20 PM
I recently upgraded to Q1 2012 and found the same issue with rad inputs not firing the default button ID and as a quick solution I added a skin file to my theme with the following definition for <rad:TexBox> :

<telerik:RadTextBox runat="server" EnableSingleInputRendering="false"></telerik:RadTextBox>

It's not the best solution but it should save any copy and paste errors in trying to find all instances of the controls throughout your applications.
0
AJ
Top achievements
Rank 1
answered on 10 Apr 2012, 02:49 AM
Wow, there went 3 hours of my life until I found this out.

Waiting for the patch.
0
Vasil
Telerik team
answered on 10 Apr 2012, 08:00 AM
Hi AJ,

The input should work properly with the latest internal build, the official ServicePack for Q1 2012 will be available in few days.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Marian
Top achievements
Rank 1
answered on 11 Apr 2012, 07:42 AM
Hi all,

@Shonda: You have described exactly the same problem as my with width property in Password textbox. Because I use the same login control on many deployed applications - I still use Q2 2011. I hope that radinput control's behavior will come back as we are expecting in this thread.
@Vasil: We are looking forward to SP.

-Marian


0
Tash
Top achievements
Rank 1
answered on 26 Apr 2012, 09:36 PM
Was this fix patch deployed yet? 
0
Galina
Top achievements
Rank 1
answered on 26 Apr 2012, 09:41 PM
Please let us know when we can download a new version.
0
Vasil
Telerik team
answered on 27 Apr 2012, 12:04 PM
Hello,

Then Service Pack is available since 11th of April, you could download if after you log into your account. Look for version 2012.1.411.

Kind regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
David
Top achievements
Rank 1
answered on 03 May 2012, 10:07 AM
I have upgraded my telerik controls from 2012.1.215 to 2012.1.411 with msi installer.
After uprade I discovered...the solution is non 100% :-( !!!!!!!!
one click ok!  | two ok! | three no ok!!!!!!....autopostback stopped!
<telerik:RadTextBox runat="server" EnableSingleInputRendering="false"></telerik:RadTextBox>........is working but slowly

RadWindow is non stabil too .-(
0
Vasil
Telerik team
answered on 07 May 2012, 09:22 AM
Hello David,

You write here the code containing the inputs that you have problem with?

I would ask you to post a formal support ticket and to describe the problems that you have with RadWindow, If it is something that is known you will get additional help, and if it is unknown issue we will do our best to resolve it.

Regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
David
Top achievements
Rank 1
answered on 10 May 2012, 11:02 AM
Hello, a formal support ticket is not necessary at the moment, RadWindow is working, but still the page is taking amount of time to load. Please let me know if there is any other property that can help me in improving the performance? The issue occurs with Firefox Version 12, with Firefox Version 10 und IE ist OK!
0
Vasil
Telerik team
answered on 10 May 2012, 12:22 PM
Hi,

We are working on further performance optimizations for both renderings of RadInput for the next release. However I can't suggest you any such solution for the old rendering in the previous release.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Grigore Dolghin
Top achievements
Rank 1
answered on 02 Jul 2012, 12:21 AM
I've upgraded to last version and .... defaultbutton still doesn't work. This is ridiculous, guys....
0
Grigore Dolghin
Top achievements
Rank 1
answered on 02 Jul 2012, 10:50 PM
Hmmmmm.... on a new project it works. I have to dig this further.
0
Vasil
Telerik team
answered on 03 Jul 2012, 07:28 AM
Hi Grigore,

Last week we solved an issue that was causing default button to not execute when you have ASP:RequiredFieldValidator in your page that to validate the input controls.
If you don't have such validator in your new project, it will work.

You can update your project to the latest hotfix and it should work correct.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Marian
Top achievements
Rank 1
Answers by
Nick
Top achievements
Rank 1
Grigore Dolghin
Top achievements
Rank 1
Marian
Top achievements
Rank 1
Dave
Top achievements
Rank 1
Slav
Telerik team
Mark
Top achievements
Rank 1
Vasil
Telerik team
Marcel Rossi
Top achievements
Rank 2
Mahesh
Top achievements
Rank 1
Salvador Fernández
Top achievements
Rank 1
Shonda
Top achievements
Rank 1
Gary
Top achievements
Rank 1
AJ
Top achievements
Rank 1
Tash
Top achievements
Rank 1
Galina
Top achievements
Rank 1
David
Top achievements
Rank 1
Share this question
or