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

ClientSide - Setting value with RadInputManager

4 Answers 89 Views
Input
This is a migrated thread and some comments may be shown as answers.
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
guillaume.lebel asked on 16 Jul 2009, 08:53 PM
Hi,
I have a page with a radgrid in it. Each time i click in a cell i put a textbox in the cell to edit the value.
The actual value of the cell is set in the textbox by default and after the user click in an other cell the textbox is appending to the new cell and set the new value in the old cell.
The problem is when i try to set the value of the textbox to 0 it always returning "". But i can set the value to 1 or more.

The textbox is using a radinputmanager to get the same property of a numerictextbox. Cause i can't append a radNumericTextBox to a specific cell in the grid. And in client side i use get_targetInput.

Is there anyway to be able to set_value() to 0 by the client side??

Thx and have a nice day!!!!

Guillaume

4 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 21 Jul 2009, 12:21 PM
Hi Guillaume,

Indeed such problem exists in our latest official release. Our developers addressed it recently and the fix is available in the latest internal build. Give it a try and let us know if you encounter any problems with it.

Greetings,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 21 Jul 2009, 02:54 PM
Thx for your answer, but i'm having an other issue with the input. I would like to know if its possible to manually trigger the error in client side to work like the date-input when the value isn't correct.

Guillaume
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 22 Jul 2009, 01:53 PM
I've found a way to raise the validating event when i navigate in my grid, but i still have a problem hehe. My onvalidating event isn't working correctly and my input style isn't updating. When i click in an other cell the event is working correctly but when i use the arrow key (onkeypress of the radGrid).

Right now each time i call the onkeypress event on the grid i call the following line to raise the validating event:
   radTextBox.get_owner().raise_validating(new Telerik.Web.UI.InputManagerValidatingEventArgs(radTextBox));

The client method OnValidating is called but like i said it isn't working.

Thx again!!

Guillaume
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 22 Jul 2009, 08:54 PM
I got it :). It was my fault sorry. I was changing the enbledCss instead of the focusedCss. Because when the value isn't valid I cancel navigation for the user so i make sure all the value entered in the grid are correct.

Thx again for your time!!

Guillaume
Tags
Input
Asked by
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
Answers by
Pavel
Telerik team
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
Share this question
or