ListBox OnTransferring Issue

7 posts, 0 answers
  1. Jagat
    Jagat avatar
    135 posts
    Member since:
    Jan 2011

    Posted 18 Feb 2015 Link to this post


    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>
  2. Jagat
    Jagat avatar
    135 posts
    Member since:
    Jan 2011

    Posted 18 Feb 2015 in reply to Jagat Link to this post

    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>
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 23 Feb 2015 Link to this post

    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.

     
  5. Jagat
    Jagat avatar
    135 posts
    Member since:
    Jan 2011

    Posted 24 Feb 2015 in reply to Hristo Valyavicharski Link to this post

    No Error messages are displayed.
  6. Jagat
    Jagat avatar
    135 posts
    Member since:
    Jan 2011

    Posted 25 Feb 2015 Link to this post

    any fix for this issue?
    Thanks
  7. Jagat
    Jagat avatar
    135 posts
    Member since:
    Jan 2011

    Posted 27 Feb 2015 Link to this post

    hi,
    any help no this appreciated.
    thanks
  8. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 02 Mar 2015 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017