.
<ig:DropDownProvider ID="UOM_DropDownProvider"> <EditorControl DropDownContainerMaxHeight="200px" EnableAnimations="False" ID="EditorControl" runat="server" EnableDropDownAsChild="False" DropDownContainerWidth="150px"> <Items> <ig:DropDownItem Key="Kgs" Text="Kgs" Value="1"> </ig:DropDownItem> <ig:DropDownItem Key="Liters" Text="Lts" Value="2"> </ig:DropDownItem> <ig:DropDownItem Key="Meeters" Text="Mtls" Value="3"> </ig:DropDownItem> </Items> </EditorControl> </ig:DropDownProvider>
<ig:BoundDataField DataFieldName="ItemPriority" Key="ItemPriorityKey" Width="7%"> <Header Text="Priority" /> </ig:BoundDataField>
<ig:BoundDataField DataFieldName="RemarksTooltip" Key="RemarksKey"> <Header Text="Remarks" /> </ig:BoundDataField> <ig:UnboundCheckBoxField Key="testKey" HeaderCheckBoxMode="BiState" HeaderChecked="true" /> <ig:TemplateDataField Key="ViewKey" Header-Text="View"> <ItemTemplate > <div id="javawwwww" style="width: 99%; float: left"> <asp:LinkButton CssClass="editDoc-button" OnClick="BtnPRItemViewDoc_Click" TabIndex="112" Visible='<%#Eval("HasDoc")%>' ToolTip="Click to view documents" CommandArgument='<%#Eval("Id")%>' runat="server"></asp:LinkButton> </div> </ItemTemplate> </ig:TemplateDataField> <ig:BoundDataField DataFieldName="Id" Key="Id" Hidden="true"> </ig:BoundDataField> </Columns>
<ig:EditingColumnSetting ColumnKey="ItemPriorityKey" EditorID="WebDataGrid1_DropDownProvider1" ReadOnly="False" /> <ig:EditingColumnSetting ColumnKey="RemarksKey" ReadOnly="True" /> </ColumnSettings>
on 'edit any field and post back' above code trigger following error :(
Multiple controls with the same ID 'it11_0' were found. FindControl requires that controls have unique IDs.
if i don't use any TemplateDataField it working fine
any workaround for solving this issue?
Hello Vishnu,
Which is the the code that produces this error and which control do you try to access via FindControl ? Please provide these answers and I will be happy to suggest accordingly.
hi thanks for your quick response :)
error happen when ever adding following code to the webDataGrid
<EditorProviders><ig:DropDownProvider ID="UOM_DropDownProvider"> <EditorControl DropDownContainerMaxHeight="200px" EnableAnimations="False" ID="EditorControl" runat="server" EnableDropDownAsChild="False" DropDownContainerWidth="150px"> <Items> <ig:DropDownItem Key="Kgs" Text="Kgs" Value="1"> </ig:DropDownItem> <ig:DropDownItem Key="Liters" Text="Lts" Value="2"> </ig:DropDownItem> <ig:DropDownItem Key="Meeters" Text="Mtls" Value="3"> </ig:DropDownItem> </Items> </EditorControl> </ig:DropDownProvider> </EditorProviders>
....... then edit any editable cell
then click on any button placed in TemplateDataField.
i think its not happen in user code.