I'm trying to debug my RadGrid that is intended to use a User Controls for inserting & editing records.
Whenever I click the Add Record command button, the whole grid disappears. I've looked at the rendered HTML and all I see is a wrapper for the grid. Everything else disappears.
I was wondering if it was related to my User Control so I did an experiement and put a purposely invalid name for the UserControlName attribute of the EditFormSettings tag. To my surprise the code ran without any exception being thrown.
1. Isn't there any check done in the internal code of RadGrid to confirm that it has loaded the User Control?
2. My RadGrid is in an ASCX of its own which is located in a second level folder of the website. The ASCX for the Edit Form is located in the same directory. What path name do I put for the UserControlName attribute? I was thinking "~\Controls\editformUserControl.ascx". Is that correct?
To be clearer, here is the structure of the page:
\
wrapperPage.aspx
\Controls
parentUserControl.ascx
editformUserControl.ascx
WrapperPage contains a user control named parentUserControl.ascx which in turn contains the RadGrid. That RadGrid wants to use an edit form implemented in editformUserControl.ascx.
Whenever I click the Add Record command button, the whole grid disappears. I've looked at the rendered HTML and all I see is a wrapper for the grid. Everything else disappears.
I was wondering if it was related to my User Control so I did an experiement and put a purposely invalid name for the UserControlName attribute of the EditFormSettings tag. To my surprise the code ran without any exception being thrown.
1. Isn't there any check done in the internal code of RadGrid to confirm that it has loaded the User Control?
2. My RadGrid is in an ASCX of its own which is located in a second level folder of the website. The ASCX for the Edit Form is located in the same directory. What path name do I put for the UserControlName attribute? I was thinking "~\Controls\editformUserControl.ascx". Is that correct?
To be clearer, here is the structure of the page:
\
wrapperPage.aspx
\Controls
parentUserControl.ascx
editformUserControl.ascx
WrapperPage contains a user control named parentUserControl.ascx which in turn contains the RadGrid. That RadGrid wants to use an edit form implemented in editformUserControl.ascx.