Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ListGrid Editor Issue

$
0
0
SmartGWT version: 3.1

One Line Decription:

I want to receive the user input for a FLOAT column without any framework modification:
e.g. 1.20 as 1.20, not 1.2

Detailed description and solutions tried:

I am facing an issue while developing a small prototype app. I have a ListGrid with FLOAT data type columns. I want to validate the input for fixed precision. If the precision is 2, I want user to enter "1.20" and not "1.2". The issue I am facing is that when I try to validate using inbuilt regexValidator, it fails for 1.20 input as validator sees it as 1.2, not 1.20.

I tried to validate the input value in Row Exit Handler and there I am able to get 1.20 as it is from event.getNewValues map. But issue happens again, if user enters 1.2 and after validation failure, user modifies value 1.2 to 1.20. The modified value is not reflected in Exit Handler.

Please help.

Viewing all articles
Browse latest Browse all 4756

Trending Articles