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
85
Attribute 'columnkey' is not a valid attribute of element input
posted

I created a dataset with two tables in it along with approprite Select, Insert, Update, and Delete methods in ASP.Net 2.0 with Visual Studio 2005.  I then dropped an Infragistics UltraWebGrid control, version 8.1.20081.1000, on the web form setting its datasource to one of the tables in the dataset.  The grid wizard automatically created an input element for every grid column from the dataset within the <RowEditTemplate> element such as :

. . .
PDRequestID
<input id='igtbl_TextBox_0_0' columnkey='PDRequestID' style='width: 150px;' type="text"><br>
. . .

 Every thing I have seen here indicates this is valid syntax, though I do not quite understand why there is never a closing / or </input> within the <RowEditTemplate> paragraph.  However, Visual Studio is producing an error for every input element with the message of: "Validation (XHTML 1.0 Transitional): Attribute 'columnkey' is not a valid attribute of element input".

When, editing withing the input element, VS intellisense does not list 'columnkey' as an attribute.  Is this a known issue?  Did something from NetAdvantage install not register itself properly to cause this?

Parents
No Data
Reply
  • 45049
    posted

    The columnkey attribute is something added by our RowEditTemplate to easily connect certain HTML elements with the corresponding column from the WebGrid.  It is, strictly speaking, not an attribute that is defined on the INPUT element itself (or any other element, for that matter), which is why it doesn't show up in Intellisense.  Visual Studio correctly gives you a warning that this attribute is "not valid," though the page should compile and run just fine.

    If you don't want to deal with these warnings, then you'll have to remove the columnkey attribute, and instead copy data from your WebGrid rows into your row edit template (and back out) using client-side events.  If you're using controls which don't use a "value" attribute to store their actual value, you have to do this anyway for your row edit template to function.  Information how to accomplish this is provided in the following article from our online Knowledge Base:
    HOWTO:  Placing complex controls into the RowEditTemplate

Children
No Data