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

Upgrade from Q1 2007 to Q3 2010

1 Answer 58 Views
Window
This is a migrated thread and some comments may be shown as answers.
William Choo
Top achievements
Rank 1
William Choo asked on 13 Apr 2011, 04:08 AM
Hi,

I'm facing an issue from an upgrade as mentioned.

I have a scenario as such, where I have a RadWindow which returns values via arguments thru OnClientClose, and I write this using javascript to two ASP textboxes, however, the moment I upgraded the component to the latest version, the value gets written to the textboxes but no text is displayed on ctl1. If I do an alert based on the ctl1 value, I can get the value, but the textbox text is still empty. ctl2 works fine.

Any Ideas?

function OnClientClose(radWindow)
{                 
  var oArg = radWindow.Argument;
  if (oArg!=null) {
    if (oArg.type == 'task')
    {
      var ctl1 = document.getElementById(oArg.key1);
      var ctl2= document.getElementById(oArg.key2);
      ctl1.style.color="blue";
      ctl1.value = oArg.value1;
      ctl2.value = oArg.value2;
    }
  }
}

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 14 Apr 2011, 02:55 PM

Hello William,

This is a really odd issue and without your actual code I can only be guessing, but please make sure that you get the correct reference. I can suggest that you try using the $find() method, especially if this textbox is no longer a regular <input> element, but a complex control (like RadTextBox).

Also please make sure that you pass the correct values from the RadWIndow.

You can also take a look at the following demo: Returning values from a dialog.

If this does not help please send us a simple runnable project that displays this behavior along with detailed reproduction steps so we can debug it locally and pinpoint the cause.



Best wishes,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Window
Asked by
William Choo
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or