Hi,
When we double click an empty slot,onFormCreating event is fired.But we are not able to get the combo box control and fill the users.
But in onFormcreated event ,we can get the control by using e.container.
The problem is this event(onFormcreated event) is not fired.
i would like to load the users in combobox while inline create window opens.
i am giving you the sample coding that i am using
<InlineInsertTemplate>
<table>
<tr>
<td>
Subject:
</td>
<td>
<asp:TextBox runat="server"
ID="DescriptionText"
Width="240px">
</asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblStartTime" runat="server" Text="Start time:"></asp:Label>
</td>
<td>
<telerik:RadTimePicker ID="tpStartTime" DateInput-ReadOnly="true" Skin="Web20" runat="server">
</telerik:RadTimePicker>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblEndTime" runat="server" Text="End time:" Visible="true"></asp:Label>
</td>
<td>
<telerik:RadTimePicker ID="tpEndTime" DateInput-ReadOnly="true" runat="server" Skin="Web20">
</telerik:RadTimePicker>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblUser" runat="server" Text="User:" Visible="true"></asp:Label>
</td>
<td>
<telerik:RadComboBox ID="ddlUsers" Skin="Web20"
DataValueField="UserId" DataTextField="UserName"
AutoPostBack="false" runat="server">
</telerik:RadComboBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblMarkUs" runat="server" Text="Mark as" ></asp:Label>
</td>
<td>
<telerik:RadComboBox ID="ddlMarkUs" Skin="Web20" AutoPostBack="false" runat="server">
<Items>
<telerik:RadComboBoxItem Text="Select" Value="N" />
<telerik:RadComboBoxItem Text="Assisted user" Value="A" />
<telerik:RadComboBoxItem Text="Service/Maintenance" Value="S" />
<telerik:RadComboBoxItem Text="Training" Value="T" />
</Items>
</telerik:RadComboBox>
</td>
</tr>
<tr>
<td>
<asp:Button runat="server" ID="btnSchedulerUpdate"
ValidationGroup="vgCreateAppointment" SkinID="btn"
CausesValidation="true" Text="Update"
/>
</td>
<td>
<asp:Button ID="btnSchCreatUpdateCancel"
SkinID="btn"
causesvalidation="false" OnClientClick="hideForm();"
runat="server" Text="Cancel" />
</td>
</tr>
</table>
</InlineInsertTemplate>
Thanks for any help
we are trying to add custom controls to the appointment inline create/edit form.
In inline create/edit we have added the new field as Users and used the radcomboBox for showing users.we have to get the users from db and bind into it.
In inline create/edit we have added the new field as Users and used the radcomboBox for showing users.we have to get the users from db and bind into it.
But in onFormcreated event ,we can get the control by using e.container.
The problem is this event(onFormcreated event) is not fired.
i would like to load the users in combobox while inline create window opens.
i am giving you the sample coding that i am using
<InlineInsertTemplate>
<table>
<tr>
<td>
Subject:
</td>
<td>
<asp:TextBox runat="server"
ID="DescriptionText"
Width="240px">
</asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblStartTime" runat="server" Text="Start time:"></asp:Label>
</td>
<td>
<telerik:RadTimePicker ID="tpStartTime" DateInput-ReadOnly="true" Skin="Web20" runat="server">
</telerik:RadTimePicker>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblEndTime" runat="server" Text="End time:" Visible="true"></asp:Label>
</td>
<td>
<telerik:RadTimePicker ID="tpEndTime" DateInput-ReadOnly="true" runat="server" Skin="Web20">
</telerik:RadTimePicker>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblUser" runat="server" Text="User:" Visible="true"></asp:Label>
</td>
<td>
<telerik:RadComboBox ID="ddlUsers" Skin="Web20"
DataValueField="UserId" DataTextField="UserName"
AutoPostBack="false" runat="server">
</telerik:RadComboBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblMarkUs" runat="server" Text="Mark as" ></asp:Label>
</td>
<td>
<telerik:RadComboBox ID="ddlMarkUs" Skin="Web20" AutoPostBack="false" runat="server">
<Items>
<telerik:RadComboBoxItem Text="Select" Value="N" />
<telerik:RadComboBoxItem Text="Assisted user" Value="A" />
<telerik:RadComboBoxItem Text="Service/Maintenance" Value="S" />
<telerik:RadComboBoxItem Text="Training" Value="T" />
</Items>
</telerik:RadComboBox>
</td>
</tr>
<tr>
<td>
<asp:Button runat="server" ID="btnSchedulerUpdate"
ValidationGroup="vgCreateAppointment" SkinID="btn"
CausesValidation="true" Text="Update"
/>
</td>
<td>
<asp:Button ID="btnSchCreatUpdateCancel"
SkinID="btn"
causesvalidation="false" OnClientClick="hideForm();"
runat="server" Text="Cancel" />
</td>
</tr>
</table>
</InlineInsertTemplate>
Thanks for any help