I need to hide control called dtParticipationEndDate only on add mode. How i can achive?
<telerik:RadGrid ID="rdParticipationList" runat="server" OnNeedDataSource="ParticipationGrid_NeedDataSource"
OnItemDataBound="ParticipationGrid_ItemDataBound" OnItemCommand="ParticipationGrid_ItemCommand"
AllowPaging="true" AllowSorting="true" Width="930px" OnInsertCommand="ParticipationGrid_ItemInserted"
OnEditCommand="ParticipationGrid_EditCommand" OnUpdateCommand="ParticipationGrid_ItemUpdated">
<MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="false" DataKeyNames="ParticipationID"
EditMode="InPlace" InsertItemPageIndexAction="ShowItemOnCurrentPage">
<CommandItemTemplate>
<asp:LinkButton ID="add" runat="server" Text="Add New Record" CommandName="InitInsert"></asp:LinkButton>
<asp:LinkButton ID="save" runat="server" Text="Add new Record" CommandName="PerformInsert" Visible="false"></asp:LinkButton>
</CommandItemTemplate>
<Columns>
<telerik:GridTemplateColumn HeaderText="Participant" ItemStyle-Width="240px" UniqueName="Participant">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "FullName")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="ddlStudentList" runat="server" DataSourceID="dsFullName" DataTextField="StudentName" DataValueField="EnrolmentID"
SelectedValue = '<%# Eval("EnrolmentID") %>'>
<Items>
<telerik:RadComboBoxItem Value="0" Text="-- Select a Value --" />
</Items>
</telerik:RadComboBox>
<asp:RequiredFieldValidator ID="vStudentList" runat="server" ErrorMessage="*"
ControlToValidate="ddlStudentList"></asp:RequiredFieldValidator>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Start Date" UniqueName="StartDate" HeaderStyle-Width="10%" DataType="System.DateTime">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "ParticipationStart","{0:dd MMMM yyyy}")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDatePicker ID="dtParticipationStartDate" runat="server" Skin="Office2007" DateInput-DateFormat="dd MMM yyyy" DbSelectedDate='<%# Eval("ParticipationStart") %>'
DateInput-Width="20px" DateInput-CssClass="controlText" DateInput-Enabled="true"
Calendar-ShowRowHeaders="false" AutoPostBack="true">
</telerik:RadDatePicker>
<asp:RequiredFieldValidator ID="vDateStart" runat="server" ErrorMessage="*"
ControlToValidate="dtParticipationStartDate"></asp:RequiredFieldValidator>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="End Date" UniqueName="EndDate" HeaderStyle-Width="10%">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "ParticipationEnd", "{0:dd MMMM yyyy}")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDatePicker ID="dtParticipationEndDate" runat="server" Skin="Office2007" DateInput-DateFormat="dd MMM yyyy" DbSelectedDate='<%# Eval("ParticipationEnd") %>'
DateInput-Width="20px" DateInput-CssClass="controlText" DateInput-Enabled="true"
Calendar-ShowRowHeaders="false" AutoPostBack="true">
</telerik:RadDatePicker>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Reason For Leaving" ItemStyle-Width="240px" UniqueName="ReasonForLeaving" DataType="System.DateTime">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "ReasonForLeaving")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="ddlReasonLeaving" runat="server" DataSourceID="odsReasonForLeaving" DataTextField="ReasonForLeaving" DataValueField="ReasonForLeavingID"
SelectedValue = '<%# Eval("ReasonForLeavingID") %>'>
<Items>
<telerik:RadComboBoxItem Value="0" Text="-- Select a Value --" />
</Items>
</telerik:RadComboBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="ParticipationNotes" HeaderText="Notes" HeaderStyle-Width="30%" UniqueName="Note" Visible="false" />
<telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="LinkButton"></telerik:GridEditCommandColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<telerik:RadGrid ID="rdParticipationList" runat="server" OnNeedDataSource="ParticipationGrid_NeedDataSource"
OnItemDataBound="ParticipationGrid_ItemDataBound" OnItemCommand="ParticipationGrid_ItemCommand"
AllowPaging="true" AllowSorting="true" Width="930px" OnInsertCommand="ParticipationGrid_ItemInserted"
OnEditCommand="ParticipationGrid_EditCommand" OnUpdateCommand="ParticipationGrid_ItemUpdated">
<MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="false" DataKeyNames="ParticipationID"
EditMode="InPlace" InsertItemPageIndexAction="ShowItemOnCurrentPage">
<CommandItemTemplate>
<asp:LinkButton ID="add" runat="server" Text="Add New Record" CommandName="InitInsert"></asp:LinkButton>
<asp:LinkButton ID="save" runat="server" Text="Add new Record" CommandName="PerformInsert" Visible="false"></asp:LinkButton>
</CommandItemTemplate>
<Columns>
<telerik:GridTemplateColumn HeaderText="Participant" ItemStyle-Width="240px" UniqueName="Participant">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "FullName")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="ddlStudentList" runat="server" DataSourceID="dsFullName" DataTextField="StudentName" DataValueField="EnrolmentID"
SelectedValue = '<%# Eval("EnrolmentID") %>'>
<Items>
<telerik:RadComboBoxItem Value="0" Text="-- Select a Value --" />
</Items>
</telerik:RadComboBox>
<asp:RequiredFieldValidator ID="vStudentList" runat="server" ErrorMessage="*"
ControlToValidate="ddlStudentList"></asp:RequiredFieldValidator>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Start Date" UniqueName="StartDate" HeaderStyle-Width="10%" DataType="System.DateTime">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "ParticipationStart","{0:dd MMMM yyyy}")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDatePicker ID="dtParticipationStartDate" runat="server" Skin="Office2007" DateInput-DateFormat="dd MMM yyyy" DbSelectedDate='<%# Eval("ParticipationStart") %>'
DateInput-Width="20px" DateInput-CssClass="controlText" DateInput-Enabled="true"
Calendar-ShowRowHeaders="false" AutoPostBack="true">
</telerik:RadDatePicker>
<asp:RequiredFieldValidator ID="vDateStart" runat="server" ErrorMessage="*"
ControlToValidate="dtParticipationStartDate"></asp:RequiredFieldValidator>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="End Date" UniqueName="EndDate" HeaderStyle-Width="10%">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "ParticipationEnd", "{0:dd MMMM yyyy}")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDatePicker ID="dtParticipationEndDate" runat="server" Skin="Office2007" DateInput-DateFormat="dd MMM yyyy" DbSelectedDate='<%# Eval("ParticipationEnd") %>'
DateInput-Width="20px" DateInput-CssClass="controlText" DateInput-Enabled="true"
Calendar-ShowRowHeaders="false" AutoPostBack="true">
</telerik:RadDatePicker>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Reason For Leaving" ItemStyle-Width="240px" UniqueName="ReasonForLeaving" DataType="System.DateTime">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "ReasonForLeaving")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="ddlReasonLeaving" runat="server" DataSourceID="odsReasonForLeaving" DataTextField="ReasonForLeaving" DataValueField="ReasonForLeavingID"
SelectedValue = '<%# Eval("ReasonForLeavingID") %>'>
<Items>
<telerik:RadComboBoxItem Value="0" Text="-- Select a Value --" />
</Items>
</telerik:RadComboBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="ParticipationNotes" HeaderText="Notes" HeaderStyle-Width="30%" UniqueName="Note" Visible="false" />
<telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="LinkButton"></telerik:GridEditCommandColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>