ClientSide - Setting value with RadInputManager

5 posts, 0 answers
  1. guillaume.lebel
    guillaume.lebel avatar
    60 posts
    Member since:
    Oct 2012

    Posted 16 Jul 2009 Link to this post

    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
  2. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 21 Jul 2009 Link to this post

    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.
  3. guillaume.lebel
    guillaume.lebel avatar
    60 posts
    Member since:
    Oct 2012

    Posted 21 Jul 2009 Link to this post

    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
  4. guillaume.lebel
    guillaume.lebel avatar
    60 posts
    Member since:
    Oct 2012

    Posted 22 Jul 2009 Link to this post

    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
  5. guillaume.lebel
    guillaume.lebel avatar
    60 posts
    Member since:
    Oct 2012

    Posted 22 Jul 2009 Link to this post

    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
Back to Top