Bug found in RadDock

8 posts, 0 answers
  1. David
    David avatar
    24 posts
    Member since:
    Feb 2013

    Posted 27 Mar 2013 Link to this post

    Hi Telerik,

    I have found a bug in the RadDock. It was working in a previous version of the telerik controls but not the new version.

    See my two example projects in the solution I have uploaded to my webspace. (I have deleted the telerik DLLs from the bin folder so you will need to re-reference them)

    http://www.revilloc.com/FocusProofSln.zip

    The project FocusProof uses telerik version 2013.1.319.40
    The project FocusWorks uses telerik version 2011.1.519.40

    However, as 2011 doesn't work properly in IE 10, we need the later version.

    I have proved that the project using 2013 fails and the one using 2011 works in Chrome, so please use chrome as the test browser.

    How to prove the problem.

    Run FocusWorks.

    Edit the textbox on the left side. IMPORTANT... Leave the cursor in the textbox. Do not move, click or tab out of it. Now, grab the dock item from the right hand side and drag below the dock on the left.

    You will then see a change on the screen in the case of the label showing what is in the text box.

    Now... repeat with FocusProof.

    You will NOT see the label.

    The text changed event does not fire.

    You will note that both projects are identical except for the namespaces and the referenced versions of telerik.

    (Incidentally, I did also have the issue with the earlier version of telerik released this quarter).

    I look forward to hearing from you. I really need a way to make this work as it was working in the previous version of telerik.
  2. David
    David avatar
    24 posts
    Member since:
    Feb 2013

    Posted 27 Mar 2013 Link to this post

    I have also checked that it fails in latest build... 2013.1.326.40 (and it does fail).
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 29 Mar 2013 Link to this post

    Hello David,

    The behavior you described is a known limitation which occurs when a RadTextBox is used within RadDock. You can avoid it by ensuring that the text box is blurred when the dock initiates postback. The following code sample shows how to do this.

    1. A handler for the OnClientDragStart event of the dragged dock is set:
    <telerik:RadDock ID="uxRadDockC" runat="server" Title="Stuff" AutoPostBack="true"
        CommandsAutoPostBack="true" OnClientDragStart="DragStart">
        <ContentTemplate>
            <telerik:RadTextBox ID="uxRtb" runat="server" Text="This is the text" OnTextChanged="uxRtb_TextChanged">
            </telerik:RadTextBox>
        </ContentTemplate>
    </telerik:RadDock>

    2. In the event handler the active text box is blurred:
    <script type="text/javascript">
        function DragStart(sender, args) {
            var activeEl = document.activeElement;
            if (activeEl && activeEl.control && Telerik.Web.UI.RadTextBox.isInstanceOfType(activeEl.control))
                activeEl.control.blur();
        }
    </script>

    Regards,
    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.
  5. David
    David avatar
    24 posts
    Member since:
    Feb 2013

    Posted 29 Mar 2013 Link to this post

    Forgive me for asking, but how can it be a "known limitation" when it was clearly working with the previous version of telerik as demonstrated in my two examples?

    This to me is either a bug or a removal of a feature.
  6. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 03 Apr 2013 Link to this post

    Hi David,

    Indeed, the value of the RadTextBox should be passed to the server-side when a RadDock initiates the postback. This issue is fixed and the solution is included in the Q1 2013 SP1 release of RadControls for ASP.NET AJAX which is now available.

    Regards,
    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.
  7. David
    David avatar
    24 posts
    Member since:
    Feb 2013

    Posted 03 Apr 2013 Link to this post

    Hi Telerik,

    So it is acknowledged as a bug?

    Do I earn any points for this?

    I will get the latest version and let you know if it now works for me.
  8. David
    David avatar
    24 posts
    Member since:
    Feb 2013

    Posted 04 Apr 2013 Link to this post

    Just to let you know, this is working now.
  9. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 05 Apr 2013 Link to this post

    Hello David,

    I am very happy that your problem is now resolved.

    Telerik points are provided for reporting new issues, while in this case the behavior with the RadTextBox was already known.

    Regards,
    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017