.
<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.
Thank you for the information.
However I was not able to reproduce this behavior. I created a sample using your code to add dropdown editor provider and use it to edit a column in the grid. Then I click on the link in the TemplateField and no issue occurs.
I believe this may has something to do with the code you execute inside BtnPRItemViewDoc_Click server event. You can try this code in my sample to see if it will produce the error now.
Am using this version 'Infragistics4.Web.v12.1.dll'. all i do inside BtnClick is rebinding. your sample app work ......... but same code you send pasted in my page then its not working.:(
Hi,
Thank you for your feedback.
Please use the your code to rebind in my sample app and see if it will work. Also modify my sample with anything that you consider related to the issue that occurs. If you manage to reproduce the issue in my sample it will be fine. Or try to isolate your sample and send it for investigation.
You can also specify the exact version of 12.1 that you are using, so I can test my sample app with it.