hi guys,
<ig:EditingColumnSetting ColumnKey="ItemNameKey" EditorID="ItemTextEditorProvider" ReadOnly="false" />
"itemNameKey" is a TemplateDataField above code not will not make the field editable.
any solution?
Hello,
Please provide the whole markup for the grid in order to investigate this issue.
I am just checking to see if you had the time to provide a working sample or at least your code so that I can test on my side.
<ig:WebDataGrid ID="grdPrMaintenanceItem" runat="server" Width="100%" AutoGenerateColumns="False" EnableAjax="true" OnRowUpdating="grdPrMaintenanceItem_RowUpdating" OnInitializeRow="grdMaintenanceItem_InitializeRow" OnColumnSorted="grdPrMaintenanceItem_ColumnSorted" DataKeyFields="Id" ViewStateMode="Enabled" EnableDataViewState="True" DefaultColumnWidth="100%" ItemCssClass="thinRows"> <EditorProviders><ig:WebTextEditProvider ID="WebTextEditProviderMaintenance" /> </EditorProviders> <Columns><ig:TemplateDataField Key="ItemNameKey" Header-Text="Item description" Width="24%"> <ItemTemplate> <div id="divMaintenanceItemName" runat="server" class="igg_wordWrapp"> <asp:Label ID="lblMaintenanceItemName" runat="server" Text='<%# Bind("ItemName") %>' Font-Bold="false" CssClass="pointercss" /> </div> <div style="display: none;"> <div id="maintenanceItemTooltip" runat="server" style="max-height: 300px; width: 350px; overflow-y: auto"> <div style="width: 100%"> <table> <tr> <td style="width: 35px; vertical-align: top"> <label class="label-style"> Item :</label> </td> <td> <asp:Label runat="server" Text='<%# Bind("ItemName") %>' ID="lblItemName" SkinID="label-style-data" /> </td> </tr> </table> <table style="display: none" runat="server" id="tblRepDrawingNo"> <tr> <td style="width: 75px; vertical-align: top"> <label class="label-style"> Drawing no :</label> </td> <td> <asp:Label runat="server" Text='<%# Bind("RepDrawingNo") %>' ID="lblIMPAISSACode" SkinID="label-style-data" /> </td> </tr> </table> </div> </div> </div> </ItemTemplate> </ig:TemplateDataField> </Columns> <Behaviors> <ig:EditingCore Enabled="true" AutoCRUD="false"> <Behaviors> <ig:CellEditing> <ColumnSettings> <ig:EditingColumnSetting ColumnKey="ItemNameKey" EditorID="WebTextEditProviderMaintenance" ReadOnly="false" /></ColumnSettings> <EditModeActions MouseClick="Double" EnableOnActive="true" /> </ig:CellEditing> </Behaviors> <EditingClientEvents RowUpdated="grdPrMaintenanceItem_Initialize" /> </ig:EditingCore> </Behaviors> <ClientEvents Initialize="grdPrMaintenanceItem_Initialize" /> </ig:WebDataGrid>
Hello Vishnu,
Thank you for the code shared and sorry for late response.
Actually the TemplateDataField contains html code as string and it is expected that you will not be able to edit this string from TextEditorProvider, or DropDownEditor, etc. If you wish to edit the value that is being shown in the cell (in your case this is the text of the <asp:Label ID="lblMaintenanceItemName"> control ) then you need to place the editor inside the ItemTenplate and implement custom binding, so that the value entered in the editor is set to the <asp:Label ID="lblMaintenanceItemName"> control.
Please let me know if you would need assistance on how to implement the suggested.
I'm just following up to see if you need any further assistance with the suggested. If so please let me know.