in our program, we use UltraWebGrid to fetching data.
some data in our db is number type, and it can be editable in the UI, we use the asp:RangeValidator(we do need) validator to control the column data input.
there is a strang scenario happens like this,if we input the none-number content to cell and the validator will throw error message to user, and the grid will forbid user operate other cells in the grid unless user change the non-number content. but user can click other controls out of the grid(in our program is Submit or other dropdowlist or else). We once want get the none-number content for further verify(stop user to click other controls out of grid), but it will get null value(the asp:RangeValidator will auto change it).
somebody will say, you can verify the value if it is null, but in our program null is acceptable.
our question is, is there a way to forbid user operate other controls when there has some errors in the grid?
thanks in advance and i will be waiting on-line.
Hi wobudongta,
It has been a while since your post, however in case you still need assistance I would be glad to help.
Regarding "forbidding" the user to submit a form, one possible approach would be to keep a javascript variable and based on its value, to cancel (or not) the postback events.
You may also wish to consider other approaches for validation which are avaialable in the UltraWebGrid. Detailed information is available at:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=2883
and:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=1556
Please contact me if you need further assistance.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support