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
125
webdatechooser not working in row edit template
posted

I am adding controls dynamically to the edit template of my ultrawebgrid control. The generic server controls have no problem, but with the Infragistics WebDateChooser and WebDateTimeEdit controls I'm getting "Could not init Editor" in the status bar and the attribute for the columnkey I am adding to the WebDateChooser is being applied to the Table tag instead of the input tag. So the template has no value to put into the column of the grid after editing? Any ideas on how to correct these issues?

Parents
No Data
Reply
  • 45049
    posted

    You need to use JavaScript to copy the values from your WebGrid cell into the control in your row edit template of your WebGrid as the template opens, and back when the template closes.  This is the case for any control that stores its value in any way other than in a "value" attribute directly on the element.

    Details on how to implement this is provided in the following article from our online Knowledge Base:
    HOWTO: Placing complex controls into the Row Edit Template

    This article happens to use a WebDateChooser in its example:

Children