Hello,
Can I use "InPlace" mode to edit the Telerik grid and use "popup" templete when I add new record to this Grid?
Also, is it possible to set certain column to read only during editing record but also editable/set up when creating new record using PopUp templete form?
Thanks alot
current code working on:
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowPaging="True" AutoGenerateColumns="False" PageSize="20" AllowSorting="True"
OnPreRender="RadGrid1_PreRender" OnNeedDataSource="RadGrid1_NeedDataSource"
OnItemCreated="RadGrid1_ItemCreated" OnUpdateCommand="RadGrid1_UpdateCommand" OnInsertCommand="RadGrid1_InsertCommand" OnDeleteCommand="RadGrid1_DeleteCommand"
OnItemDataBound="RadGrid1_ItemDataBound">
<MasterTableView DataKeyNames="PathwayContactID" CommandItemDisplay="Top" EditMode="InPlace" HorizontalAlign="NotSet" AutoGenerateColumns="False">
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
</telerik:GridEditCommandColumn>
<telerik:GridTemplateColumn UniqueName="FullName" HeaderText="Name" SortExpression="" >
<ItemTemplate>
<asp:Label ID="FullName" runat="server" Text='<%# Eval("FullName") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<!--gona to be a auto-complete-box here-->
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="SitePathwayName" HeaderText="Pathway" SortExpression="SitePathwayName" >
<ItemTemplate>
<asp:Label ID="SitePathwayName" runat="server" Text='<%# Eval("SitePathwayName") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<!--gona to be a auto-complete-box here-->
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="Role" HeaderText="Role" SortExpression="" ItemStyle-Width="400px">
<ItemTemplate>
<asp:Label ID="ProfessionalRole" runat="server" Text='<%# Eval("ProfessionalRole") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<!-- RadComboBox with all Roles -->
<telerik:RadComboBox ID="RadComboBoxRoles" runat="server" Width="100%" CheckBoxes="true">
</telerik:RadComboBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridCheckBoxColumn UniqueName="Notification" DataField="NotifyAboutFeedback" HeaderText="Notification">
</telerik:GridCheckBoxColumn>
<telerik:GridBoundColumn DataField="PathwayContactNote" HeaderText="Note" SortExpression="PathwayContactNote"
UniqueName="PathwayContactNote">
</telerik:GridBoundColumn>
<telerik:GridCheckBoxColumn UniqueName="Active" DataField="Active" HeaderText="Active">
</telerik:GridCheckBoxColumn>
<telerik:GridButtonColumn ConfirmText="Delete this item?" ConfirmDialogType="RadWindow"
ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete">
<HeaderStyle Width="50px"></HeaderStyle>
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
The columns that i want to set to read only during edit would be the 2nd(FullName) and 3rd column(SitePathwayName) which are going to be autoCompletebox
Can I use "InPlace" mode to edit the Telerik grid and use "popup" templete when I add new record to this Grid?
Also, is it possible to set certain column to read only during editing record but also editable/set up when creating new record using PopUp templete form?
Thanks alot
current code working on:
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowPaging="True" AutoGenerateColumns="False" PageSize="20" AllowSorting="True"
OnPreRender="RadGrid1_PreRender" OnNeedDataSource="RadGrid1_NeedDataSource"
OnItemCreated="RadGrid1_ItemCreated" OnUpdateCommand="RadGrid1_UpdateCommand" OnInsertCommand="RadGrid1_InsertCommand" OnDeleteCommand="RadGrid1_DeleteCommand"
OnItemDataBound="RadGrid1_ItemDataBound">
<MasterTableView DataKeyNames="PathwayContactID" CommandItemDisplay="Top" EditMode="InPlace" HorizontalAlign="NotSet" AutoGenerateColumns="False">
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
</telerik:GridEditCommandColumn>
<telerik:GridTemplateColumn UniqueName="FullName" HeaderText="Name" SortExpression="" >
<ItemTemplate>
<asp:Label ID="FullName" runat="server" Text='<%# Eval("FullName") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<!--gona to be a auto-complete-box here-->
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="SitePathwayName" HeaderText="Pathway" SortExpression="SitePathwayName" >
<ItemTemplate>
<asp:Label ID="SitePathwayName" runat="server" Text='<%# Eval("SitePathwayName") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<!--gona to be a auto-complete-box here-->
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="Role" HeaderText="Role" SortExpression="" ItemStyle-Width="400px">
<ItemTemplate>
<asp:Label ID="ProfessionalRole" runat="server" Text='<%# Eval("ProfessionalRole") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<!-- RadComboBox with all Roles -->
<telerik:RadComboBox ID="RadComboBoxRoles" runat="server" Width="100%" CheckBoxes="true">
</telerik:RadComboBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridCheckBoxColumn UniqueName="Notification" DataField="NotifyAboutFeedback" HeaderText="Notification">
</telerik:GridCheckBoxColumn>
<telerik:GridBoundColumn DataField="PathwayContactNote" HeaderText="Note" SortExpression="PathwayContactNote"
UniqueName="PathwayContactNote">
</telerik:GridBoundColumn>
<telerik:GridCheckBoxColumn UniqueName="Active" DataField="Active" HeaderText="Active">
</telerik:GridCheckBoxColumn>
<telerik:GridButtonColumn ConfirmText="Delete this item?" ConfirmDialogType="RadWindow"
ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete">
<HeaderStyle Width="50px"></HeaderStyle>
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
The columns that i want to set to read only during edit would be the 2nd(FullName) and 3rd column(SitePathwayName) which are going to be autoCompletebox