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

[Solved] SetValue javascript in RadNumeric

6 Answers 236 Views
Input
This is a migrated thread and some comments may be shown as answers.
Rodrigo
Top achievements
Rank 2
Rodrigo asked on 25 Apr 2008, 04:22 PM
Hi,
not set value in RadNumeric on javascript, please help ?


function SET_FRM_PRD0650_002_36(PARAMETRO)
  {
    window["edIdStatus"].SetValue(PARAMETRO);
    window["edIdStatus"].SetTextBoxValue(PARAMETRO);
  }

and

  function Atualizar()
  {
    window["RadNumericTextBox1"].SetValue("12.50");
  }

and

  function Atualizar()
  {
    window["RadNumericTextBox1"].SetValue("12,50");
  }

the examples above do not function.


6 Answers, 1 is accepted

Sort by
0
Rodrigo
Top achievements
Rank 2
answered on 25 Apr 2008, 05:04 PM
Util code:


  function Atualizar()
  {
    var txtTypeValue = $find('edIdStatus');
    txtTypeValue.set_value(15);
  }

or 

 function Atualizar()
  {
    $find('edIdStatus').set_value(15);
  }

or

 function Atualizar(sParam)
  {
    $find('edIdStatus').set_value(sParam);
  }



Rodrigo Chiarato

0
Dimo
Telerik team
answered on 28 Apr 2008, 12:21 PM
Hi Rodrigo,

I see that you have found the correct way to set value and now everything is OK, right ?

Let us know if you need more information.


Best wishes,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Rodrigo
Top achievements
Rank 2
answered on 29 Apr 2008, 12:02 AM
Ok, functioned correctly, debtor.

One another question: I use CodeGear for the development and I am with problems in absolute position. It can help me?
0
Dimo
Telerik team
answered on 30 Apr 2008, 08:01 AM
Hello Rodrigo,

Do you have problems with the browser display or the IDE design-time display?


All the best,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Rodrigo
Top achievements
Rank 2
answered on 30 Apr 2008, 01:11 PM
Hello, Dimo

The problem  IDE design-time.
Lost project using absolute position, Help.
  Do not obtain to develop no project with RadControl AJAX using absolute position with RadStudio 2007 or Visual Studio 2008.
  If colum a component on panel's Rad the error occurs, if use outside of panel's Rad does not occur error.
  It includes a RadTabStrip, a RadMultPage and two RadPageView. Inside of one of the RadPageView I placed one label without absolute position and one label with absolute position.
  What position was marked with absolute if lost inside of form. I took off the Label with absolute position and placed directly in form and the error does not occur error.
 
0
Dimo
Telerik team
answered on 07 May 2008, 08:19 AM
Hi Rodrigo,

You seem to be using an automatic translation tool and it is hard to understand what you want to say.

Anyway, here is another advice:

When using absolute positioning, the top and left styles are set with regard to the innermost absolutely/relatively positioned ancestor of the absolutely positioned element (your label in this case). If there is no such positioned ancestor, the top and left styles are set with regard to the page <body> element.

More information can be found here:

http://www.brainjar.com/CSS/positioning/default4.asp

Basically, what you need to do to fix the label's positioning is add or remove a relative style from one of the label's ancestors. Alternatively, you can remove the absolute position from the label and use another approach.

I hope this helps.

Greetings,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Input
Asked by
Rodrigo
Top achievements
Rank 2
Answers by
Rodrigo
Top achievements
Rank 2
Dimo
Telerik team
Share this question
or