I have added some custom fields and bound them to datasources.
This is working but when the form loads each datasource has a blank value by default. This blank value will mess up my SQL.
They are integer fields ich would need a value of zero
I just want to get rid of the blank so only items in the datasource can be selected.
So i added:
This tells me that it can not find the control by those names. Am i referencing the names wrong ?
I can cause problems on your sample page as well.
http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultcs.aspx
If I edit one of the items and choose "" blank for the Calendar - that item goes into oblivion.
<AdvancedForm Modal="true" Width="400" MaximumHeight="400" /> |
<ResourceTypes> |
<telerik:ResourceType KeyField="AccountNumber" Name="AccountNumber" TextField="AccountName" ForeignKeyField="AccountNumber" |
DataSourceID="sdsAccounts" /> |
<telerik:ResourceType KeyField="ContactNumber" Name="ContactNumber" TextField="ContactName" ForeignKeyField="ContactNumber" |
DataSourceID="sdsContacts" /> |
<telerik:ResourceType KeyField="TaskType" Name="Type" TextField="TaskType" ForeignKeyField="TaskType" |
DataSourceID="sdsTaskTypes" /> |
<telerik:ResourceType KeyField="TaskAction" Name="Action" TextField="TaskAction" ForeignKeyField="TaskAction" |
DataSourceID="sdsTaskActions" /> |
<telerik:ResourceType KeyField="RepNumber" Name="For" TextField="RepName" ForeignKeyField="For" |
DataSourceID="sdsReps" /> |
<telerik:ResourceType KeyField="RepNumber" Name="By" TextField="RepName" ForeignKeyField="By" |
DataSourceID="sdsReps" /> |
<telerik:ResourceType KeyField="PriorityText" Name="Priority" TextField="PriorityText" ForeignKeyField="PriorityText" |
DataSourceID="sdsPriority" /> |
</ResourceTypes> |
This is working but when the form loads each datasource has a blank value by default. This blank value will mess up my SQL.
They are integer fields ich would need a value of zero
I just want to get rid of the blank so only items in the datasource can be selected.
So i added:
Protected Sub RadScheduler1_FormCreated(ByVal sender As Object, ByVal e As SchedulerFormCreatedEventArgs) |
If e.Container.Mode = SchedulerFormMode.AdvancedEdit Then |
Dim ddlContactNumber As RadComboBox = DirectCast(e.Container.FindControl("ContactNumber"), RadComboBox) |
ddlContactNumber.Items.Remove(0) |
Dim ddlAccountnumber As RadComboBox = DirectCast(e.Container.FindControl("Accountnumber"), RadComboBox) |
ddlAccountnumber.Items.Remove(0) |
End If |
End Sub |
This tells me that it can not find the control by those names. Am i referencing the names wrong ?
I can cause problems on your sample page as well.
http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultcs.aspx
If I edit one of the items and choose "" blank for the Calendar - that item goes into oblivion.