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
40
Using Validation Summary In UltrawebGrid
posted

How can I able to use validation summary for UltrawebGrid

 Iam using like this.

It shows error message then and there itself not in the validation summary.

Is there is any wrong in my code.

<Bands >

<igtbl:UltraGridBand >

<Columns >

<igtbl:TemplatedColumn HeaderText="No Of Materials" >

<Header Caption = "No Of Materials" >

<RowLayoutColumnInfo OriginX="2" />

</Header>

<Footer>

<RowLayoutColumnInfo OriginX="2" />

</Footer>

<Validators >

<igtbl:ValidatorItem Value = "NumericValue" />

<igtbl:ValidatorItem Value = "reqNoOfMaterials" />

<igtbl:ValidatorItem Value = "valSum" />

</Validators>

</igtbl:TemplatedColumn>

</Bands>

</igtbl:UltraWebGrid>

 

<asp:RegularExpressionValidator ID = "NumericValue" ControlToValidate = "uwgEditPrice" ErrorMessage="Invalid" runat = "server" Display = "Static" ValidationExpression = "0*[1-9][0-9]*" ValidationGroup = "btnSave"></asp:RegularExpressionValidator>

<asp:RequiredFieldValidator ID = "reqNoOfMaterials" ControlToValidate = "uwgEditPrice" ErrorMessage = "Required" runat = "server" Display = "Static" ValidationGroup = "btnSave" ></asp:RequiredFieldValidator>

<asp:ValidationSummary ID = "valSum" HeaderText = "Following Error Occured" runat = "server" />

 

Thanks

Parents
No Data
Reply
  • 19308
    posted

    Before you tear your hair out, the grid can only support validation on the cell level, after an edit action.  Unfortunately it doesn't support validating the entire contents in a mode where the validation summary can be used.  Luckily, the specialized editors available for the grid ensure that data meets constraints as it is entered, rather than relying on a batch style validation.  Of course, I do understand that there are cases where using the ValidationSummary would be useful, and hopefully we can support this case in the future.  I'd recommend that anyone reading this thread who thinks this is a valuable feature, weigh in by submitting a feature request - http://devcenter.infragistics.com/Protected/RequestFeature.aspx

    Regards,

    -Tony

Children