Validating in a DataGrid

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Validating in a DataGrid

    I use a TextInput ItemEditor in a Datagrid. How do I make sure the user only inputs numeric input? I can use restrict to get only integers, but what if I want real numbers with two decimal places?
    bentonM Guest

  2. Similar Questions and Discussions

    1. Validating by tab
      I am currently trying to switch my flash coldfusion pages over to submit by flash remoting. I am having a problem with only validating the fields...
    2. validating datagridtextboxcolumn textbox, validating event fire twice, why?
      Anyone has the same experience? I am trying to validate one of the textboxes inside a datagrid, but everytime when i click my mouse on another...
    3. validating a custom control in a datagrid
      hi, i have a datagrid which display custom controls when user clicks edit, changing data. I am using customvalidator to validate this control. I...
    4. Validating Boundcolumns in datagrid
      Hi, I have a Datagrid with boundcolumns. I need to validate the textbox when the user clicks the update link.How can i do it. Also i need to set...
    5. Once again: validating the datagrid
      Hi, After long search of the internet, I couldn't find any solution on validating a datagrid. I have textboxes and validators (required field)...
  3. #2

    Default Re: Validating in a DataGrid

    A simple solution would be to use a Number Validator as seen here:

    [url]http://livedocs.adobe.com/flex/3/html/help.html?content=validators_1.html[/url]

    :S
    pickle jar Guest

  4. #3

    Default Re: Validating in a DataGrid

    Yes, I've used the validators before. I'm having trouble getting them to work with a component that is part of an Item Editor in a DataGrid. Any advice for this situation?
    bentonM Guest

  5. #4

    Default Re: Validating in a DataGrid

    Gotcha, ok how about running a validation in actionscript when a change event
    is fired from your item editor.. So when a user enters text the data is passed
    to an actionscript function which validates whether its a number or not and
    responds accordingly?

    pickle jar Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139