RadListBox transfer inside of a RadGrid

2 posts, 0 answers
  1. Nicolás
    Nicolás avatar
    1 posts
    Member since:
    Nov 2016

    Posted 08 Nov Link to this post

    I have two radlistbox inside of a radgrid, I want to use the transfer between this two radlistbox, but only works the first transfer, later if I want to transfer again it doesn't work in any direction. What am I missing?

    Thanks!

     

    <telerik:GridTemplateColumn HeaderText="Plants" UniqueName="Plants" Visible="false">
                            <EditItemTemplate>
                                <telerik:RadListBox Width="200px" RenderMode="Lightweight" runat="server" DataKeyField="PlantId"
                                    ID="rdlPlants" EnableDragAndDrop="True" Skin="Bootstrap" SelectionMode="Multiple" AutoPostBackOnTransfer="true"
                                    Height="200px" AllowTransfer="true" TransferToID="rdlSelectedPlants" OnItemDataBound="rdlPlants_ItemDataBound"
                                    OnTransferred="rdlPlants_Transferred">
                                    <ButtonSettings ShowTransferAll="false" ShowReorder="false"></ButtonSettings>
                                    <ItemTemplate>
                                        <%# Eval("Pint").ToString() + " - "  + (Eval("Name1") != null ? Eval("Name1").ToString() : string.Empty) %>
                                    </ItemTemplate>
                                </telerik:RadListBox>
                                <telerik:RadListBox RenderMode="Lightweight" Width="200px" ID="rdlSelectedPlants" runat="server"
                                    DataKeyField="PlantId" Height="200px" Skin="Bootstrap" OnItemDataBound="rdlPlants_ItemDataBound">
                                    <ButtonSettings ShowTransfer="false" ShowTransferAll="false"></ButtonSettings>
                                    <ItemTemplate>
                                        <%# Eval("Pint").ToString() + " - "  + (Eval("Name1") != null ? Eval("Name1").ToString() : string.Empty) %>
                                    </ItemTemplate>
                                </telerik:RadListBox>
                            </EditItemTemplate>
                            <InsertItemTemplate>
                                <telerik:RadListBox Width="200px" RenderMode="Lightweight" runat="server" DataKeyField="PlantId"
                                    ID="rdlPlants" EnableDragAndDrop="True" Skin="Bootstrap" SelectionMode="Multiple"  AutoPostBackOnTransfer="true"
                                    Height="200px" AllowTransfer="true" TransferToID="rdlSelectedPlants" OnItemDataBound="rdlPlants_ItemDataBound"
                                    OnTransferred="rdlPlants_Transferred">
                                    <ButtonSettings ShowTransferAll="false" ShowReorder="false"></ButtonSettings>
                                    <ItemTemplate>
                                        <%# Eval("Pint").ToString() + " - "  + (Eval("Name1") != null ? Eval("Name1").ToString() : string.Empty) %>
                                    </ItemTemplate>
                                </telerik:RadListBox>
                                <telerik:RadListBox RenderMode="Lightweight" Width="200px" ID="rdlSelectedPlants" runat="server"
                                    DataKeyField="PlantId" Height="200px" Skin="Bootstrap" OnItemDataBound="rdlPlants_ItemDataBound">
                                    <ButtonSettings ShowTransfer="false" ShowTransferAll="false"></ButtonSettings>
                                    <ItemTemplate>
                                        <%# Eval("Pint").ToString() + " - "  + (Eval("Name1") != null ? Eval("Name1").ToString() : string.Empty) %>
                                    </ItemTemplate>
                                </telerik:RadListBox>
                            </InsertItemTemplate>
                        </telerik:GridTemplateColumn>
  2. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 11 Nov Link to this post

    Hi Nicolás,

    You can check the attached web site sample.
    I hope it will prove helpful.

    Regards,
    Eyup
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top