Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
470
UltraWebGrid Validator is not working between tab grids when async mode is on.....
posted

Hi,

 

i've Ultrawebtab with 5 tabs in each tab i've one ultrawebgrid...

for tab i'm using Async Mode is on and Trigger of SelectedTab....

every thing is work fine.. when i put validator in each grid static.... that time it's not working...

only first tab's grid is working... not others.... why?

 

if i can add validator in the Code behind that time it'll work i think so....

how to add validator through code behind to perfectly.....

 

 

 

 

 

 

 

 

 

Infragistics.WebUI.UltraWebGrid.

i've written this code after banding that grid.

 

ValidatorItemsCollection vc = new ValidatorItemsCollection ();

Infragistics.WebUI.UltraWebGrid.

 

 

 

ValidatorItem item = new Infragistics.WebUI.UltraWebGrid.ValidatorItem();

 

RegularExpressionValidator rev1 = new RegularExpressionValidator();

rev1.ID =

"rfv111";

rev1.ValidationGroup =

"grid1";

rev1.ControlToValidate =

"grid";

rev1.ErrorMessage = "required";

rev1.ValidationExpression =

"[0-9]+$";

 

item.Value =

"rfv111";

vc.Add(item.ToString()); 

 

grid.DisplayLayout.Bands[0].Columns.FromKey(

"CA_NewAdditions_YA_Purchase").Validators.Add(item);

but no success please let me know.. how to add validator collections through code behind!

thanks in advance..

ateeqpasha