Hey Guys,
I'm using a WebUserControl as an Edit / Insert form for my RadGrid. I am populating this form programattically through each control's PreRender event. My problem is that when i load the form for an Insert instead of an edit, the form still tries to populate each control. Is there a better place for me to be binding this information? or is there a way that i can tell if the form was loaded either from an insert or a delete?
EDIT: Also, i've tried using
I'm using a WebUserControl as an Edit / Insert form for my RadGrid. I am populating this form programattically through each control's PreRender event. My problem is that when i load the form for an Insert instead of an edit, the form still tries to populate each control. Is there a better place for me to be binding this information? or is there a way that i can tell if the form was loaded either from an insert or a delete?
EDIT: Also, i've tried using
<%# Not (TypeOf DataItem Is Telerik.Web.UI.GridInsertionObject) %>
on the page, but i keep getting a "Name 'DataItem' is not declared"
Any help is appreciated. Thanks in advance,
Mitch