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

ListBox OnTransferring Issue

6 Answers 95 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Jagat
Top achievements
Rank 1
Jagat asked on 18 Feb 2015, 10:29 PM

Hi,

When i select a particular item in the listbox, i want to check for a condition  and display a message to the user. I could display a message but the item is not displaying in the destination listbox. Why are the selected items not displaying in destination list box?



C# code:
protected void rlbClntService_Transferring(object sender, RadListBoxTransferringEventArgs e)
{
 
            string hHold = Uc_Client.Clients.SelectedValue;
            double pLevel, eligibility;
            string sItem;
             
            pLevel = objBLLClntServ.GetClientPLevel(hHold);
            sItem = rlbClntService.SelectedItem.Value;
            eligibility = objBLLClntServ.GetEForSelectedItem(sItem);
            if (pLevel > eligibility)
            {
                 
                //ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Client is not eligible.');", true);
                lblWarning.Text = "This client not eligible. ";
                mpuWarning.Show();
                 
            }
            
}
 
ASPX:
 
<table>
                                                <tr>
                                                    <td>
                                                        <telerik:RadListBox ID="rlbClntService" runat="server" AllowTransfer="True" AllowTransferDuplicates="false" AutoPostBack="true"
                                                            AllowTransferOnDoubleClick="True" AutoPostBackOnTransfer="true" EnableDragAndDrop="true"
                                                            Height="130px" Skin="Forest" TransferToID="rlbSelectedServices" Width="400px" OnTransferring="rlbClntService_Transferring">
                                                            <ButtonSettings ShowReorder="false" ShowTransferAll="false" />
                                                        </telerik:RadListBox>
                                                    </td>
                                                    <td>
                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblSelectedServices" runat="server" CssClass="label" Text="Selected Services" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <telerik:RadListBox ID="rlbSelectedServices" runat="server" AllowDelete="true" Height="110px"
                                                                        Skin="Forest" Width="400px">
                                                                        <ButtonSettings ShowDelete="true" TransferButtons="All"  />
                                                                    </telerik:RadListBox>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>

6 Answers, 1 is accepted

Sort by
0
Jagat
Top achievements
Rank 1
answered on 18 Feb 2015, 10:37 PM
Copying aspx code here again:
table
>
<tr>
   <td>
     <telerik:RadListBox ID="rlbClntService" runat="server" AllowTransfer="True" AllowTransferDuplicates="false" AutoPostBack="true"
     AllowTransferOnDoubleClick="True" AutoPostBackOnTransfer="true" EnableDragAndDrop="true"
     Height="130px" Skin="Forest" TransferToID="rlbSelectedServices" Width="400px" OnTransferring="rlbClntService_Transferring">
     <ButtonSettings ShowReorder="false" ShowTransferAll="false" />
     </telerik:RadListBox>
   </td>
   <td>
<table>
<tr>
   <td>
   <asp:Label ID="lblSelectedServices" runat="server" CssClass="label" Text="Selected Services" />
   </td>
</tr>
<tr>
   <td>
   <telerik:RadListBox ID="rlbSelectedServices" runat="server" AllowDelete="true" Height="110px"
   Skin="Forest" Width="400px">
   <ButtonSettings ShowDelete="true" TransferButtons="All"  />
   </telerik:RadListBox>
   </td>
</tr>
</table>
</td>
</tr>
</table>
0
Hristo Valyavicharski
Telerik team
answered on 23 Feb 2015, 04:10 PM
Hi Jagat,

Do you get any error message?

Regards,
Hristo Valyavicharski
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jagat
Top achievements
Rank 1
answered on 24 Feb 2015, 07:02 PM
No Error messages are displayed.
0
Jagat
Top achievements
Rank 1
answered on 25 Feb 2015, 04:55 PM
any fix for this issue?
Thanks
0
Jagat
Top achievements
Rank 1
answered on 27 Feb 2015, 04:23 PM
hi,
any help no this appreciated.
thanks
0
Hristo Valyavicharski
Telerik team
answered on 02 Mar 2015, 08:17 AM
Hi Jagat,

The provided information is not enough. Please open a support ticket and attach sample project with detailed steps to reproduce.

Thanks,

Regards,
Hristo Valyavicharski
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ListBox
Asked by
Jagat
Top achievements
Rank 1
Answers by
Jagat
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Share this question
or