Version: Infragistics35 9.2.20092.1003
Hi, I am attempting to add required field validators to a webhierarchicaldatagrid. I tried the method shown in the following blog post, which refers to plain webdatagrids:
https://ko.infragistics.com/community/forums/f/ultimate-ui-for-asp-net/91691/webdatagrid-cell-validation-on-row-adding-and-row-editting-nullreferenceexception
but discovered that unlike the HDG, validators will not accept the id of a WHDG for the "ControlToValidate" property of a validator (I get the following error: "Control 'WebHierarchicalDataGrid1' referenced by the ControlToValidate property of 'RegularExpressionValidator2' cannot be validated. "
I have attached some very simple code to show the difference (simply remove the comment tags from the validators attached to the WHDG. I haven't done anything in codebehind).
This being the case, is there a way of using standard asp.net validators with editable cells for the webhierarchicaldatagrid, as with the webdatagrid?
Hi, I never found a way to get the validator to work - I just implemented my own validation, as I recall.
This post is over a year old, has an answer been found? I am having the same problem with the WebHierarchicalDataGrid. My error is "Message: Control 'whdgAddress' referenced by the ControlToValidate property of 'valEmailAddress' cannot be validated.", where whdgAddress is my grid and valEmailAddress is my validator. The field I am trying to edit is in the child band of the grid.
I'm having the same issue...
Plus, I have come across a few other limitations of the WebHierarchicalDataGrid, e.g.,
1. I could not get the "filtering" to work (i.e., programmatically)
getting a null reference exception; when trying to call ApplyFilter method in the code...
2. There isn't any support for "Edit Row Templates" (like that for the regular WebDataGrid).