This is a migrated thread and some comments may be shown as answers.

RadListBox transfer inside of a RadGrid

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nicolás
Top achievements
Rank 1
Nicolás asked on 09 Nov 2016, 03:45 AM

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>

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 11 Nov 2016, 03:49 PM
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.
Tags
Grid
Asked by
Nicolás
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or