Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
410
Using DropDownProvider and TemplateDataField in a same grid
posted

.

.

.

.

.

<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?