Hi,
I'm trying to add a CheckBox to the Edit and Insert forms. I've added a usercontrol AdvancedForm.ascx
<%@ Register TagPrefix="scheduler" TagName="AdvancedForm" Src="AdvancedForm.ascx" %>
And in the AdvancedForm.aspx, I've added this code
<asp:CheckBox ID="cboxAllUsers" runat="server" Text="All Users" />
I'm getting this error
DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'AllUsers'.
How do I fix this error?
Thanks!
I'm trying to add a CheckBox to the Edit and Insert forms. I've added a usercontrol AdvancedForm.ascx
<%@ Register TagPrefix="scheduler" TagName="AdvancedForm" Src="AdvancedForm.ascx" %>
<
AdvancedEditTemplate
>
<
scheduler:AdvancedForm
runat
=
"server"
ID
=
"AdvancedEditForm1"
Mode
=
"Edit"
Subject='<%# Bind("Subject") %>'
Description='<%# Bind("Description") %>' Start='<%# Bind("Start") %>' End='<%# Bind("End") %>' AllUsers='<%# Bind("AllUsers") %>'/>
</
AdvancedEditTemplate
>
<
AdvancedInsertTemplate
>
<
scheduler:AdvancedForm
runat
=
"server"
ID
=
"AdvancedInsertForm1"
Mode
=
"Insert"
Subject='<%# Bind("Subject") %>'
Start='<%# Bind("Start") %>' End='<%# Bind("End") %>' Description='<%# Bind("Description") %>' AllUsers='<%# Bind("AllUsers") %>' />
</
AdvancedInsertTemplate
>
And in the AdvancedForm.aspx, I've added this code
<asp:CheckBox ID="cboxAllUsers" runat="server" Text="All Users" />
[Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]
public
bool
AllUsers
{
get
{
return
cboxAllUsers.Checked;
}
set
{
cboxAllUsers.Checked = value;
}
}
I'm getting this error
DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'AllUsers'.
How do I fix this error?
Thanks!