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

[Solved] Validation and Grid

1 Answer 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mohammad
Top achievements
Rank 1
mohammad asked on 12 May 2009, 09:23 AM
Hi
i have a grid that it has too many data,when i want to insert a row,it expand and width of my gird  become double( like that it is in two pages) ,in this case my validators in second half don't work.
I make all of my validators with same method:
 editors.Add((GridTextBoxColumnEditor)item.EditManager.GetColumnEditor(row["field_name"].ToString())); 
                        cells.Add((TableCell)editors[editors.Count - 1].TextBoxControl.Parent); 
                        regs.Add(new RegularExpressionValidator()); 
                        editors[editors.Count - 1].TextBoxControl.ID = row["field_name"].ToString() + "_validation"; 
                        regs[regs.Count - 1].ControlToValidate = editors[editors.Count - 1].TextBoxControl.ID; 
                        regs[regs.Count - 1].ErrorMessage = "Please enter int"
                        regs[regs.Count - 1].ValidationExpression = @"^\d+$"; 
                        cells[cells.Count - 1].Controls.Add(regs[regs.Count - 1]); 
Please help me ASAP!!i really need to solve it.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 14 May 2009, 01:11 PM
Hello Mohammad,

Unfortunately I could not understand where the exact source of the problem is. In my attempt to replicate the problem I have created a test project which implements the required functionality. Feel free to use it as a base in order to reproduce the depicted issue.

If the problem still persists I will suggest you to open a new support ticket on this matter and attach to it a working test project which replicates the described erroneous behavior.

Kind regards,
Georgi Krustev
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.
Tags
Grid
Asked by
mohammad
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or