Problems with sorting within a repeater

0

I have repeater:

<asp:Repeater ID="rptDocumentosRepeater" runat="server"><%--onitemdatabound="listaDocumentosRepeater_ItemDataBound"--%>
    <HeaderTemplate>
        <legend class="uppercase">Lista de documentos</legend>
        <table id="tabelaUpload" class="uploadBens">
            <thead>
                <th width="200">
                    Tipo de documento
                </th>
                <th width="200">
                    Escolha o arquivo
                </th>
                <th>
                    Documentos enviados
                </th>
            </thead>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <td>
                <asp:HiddenField ID="hdfCdDocumento" runat="server" Value='<%# Eval("CdDocumentoBem")%>' />
                <asp:HiddenField ID="hdfCdTipoDocumento" runat="server" Value='<%# Eval("CdTipoDocumentoBem")%>' />
                <asp:HiddenField ID="hdfDsPathDocumento" runat="server" Value='<%# Eval("DsPathDocumento")%>' />
                <asp:HiddenField ID="hdfNmObrigatorio" runat="server" Value='<%# Eval("NmTipoObrigatorio")%>' />
                <asp:HiddenField ID="hdfForcarLiberacao" runat="server" Value="0" />
                <asp:Label ID="lblNmTipoDocumento" CssClass="tipoDocumento" Text='<%# Eval("NmTipoDocumentoBem")%>' runat="server" />
                <br />
                <asp:Label ID="lblObrigatorio" runat="server" Text='<%# Eval("NmTipoObrigatorio")%>' Font-Bold="True"></asp:Label>
            </td>
            <td class="ajusteTdIe">
                <asp:FileUpload ID="fiuDocumentoUpload" runat="server" CssClass="acessos" />
            </td>
            <td>
                <a href="/UpLoads/<%# Eval("DsPathDocumento")%>" class="linkUpload"><%# Eval("NmTipoDocumentoDown")%></a>
                <asp:Label ID="lblDtCriacao" runat="server" Text='<%# Eval("DtCriacao")%>' Font-Bold="True"></asp:Label>
                <asp:Label ID="lblNmUsuario" runat="server" Text='<%# Eval("NmUsuario")%>' Font-Bold="True"></asp:Label>
                <asp:Label ID="lblRecebeMotivoReprovacao" Text='<%# Eval("NmTipoMotivoRecusaBem")%>' runat="server" CssClass="motivoEscolhido" Visible="true" />
            </td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
</asp:Repeater> 

This repeater shows on the left side of the screen a series of documents to be loaded (name, type, DUT, Nota Fiscal and etc). In% central% there is a button to upload the document. And in the <TD> of the right, it shows the loaded lecture. Well what happens, is that as I go carrying the documents, it goes up to the top of the screen like this: Let's say I have a list of 5 documents to upload. The first of the list would be Nota Fiscal and the last one would be DUT. If I load the DUT first, after the load, it becomes the first and not the fifth as it should. The problem is that the user loads and when changing position in the grid, the user thinks that it loaded the wrong and this causes a huge deonforto. The problem that the entity and the procedure it carries have no <TD> and would like to know if there is a way to not change their position on the screen. Force non-ordering of fields.

    
asked by anonymous 04.02.2015 / 17:04

1 answer

1

I could not do it in repeater, then added another field just to sort through it, it was the only resource I got. In the repeater I could not do it.

    
09.02.2015 / 14:04