ListBox doesn't fire oninserting and oninserted events

3 posts, 0 answers
  1. gary
    gary avatar
    14 posts
    Member since:
    Aug 2010

    Posted 24 May 2011 Link to this post

    I have two list boxes inside a RadComboBox. RadListBoxSource is bound to an ObjectDataSource that load the listbox with names. The RadListBoxDestination is not bounded to anything, it just accepts the values that I select to transfer. The problem I am having is that when I select an Item from the RadListBoxSource, I break inside its ontransferring and ontransferred without ever breaking inside the RadListBoxDestination's oninserting and oninserted events.

    I have witnessed the flow looking at the transfer demo and see that all the mentioned events get called; however, two do not get called.

    Any Help will be appreciated.

    Thanks in advance,

    <asp:ObjectDataSource ID="ObjectDataSourceLookUpValues" runat="server"
        OldValuesParameterFormatString="original_{0}" SelectMethod="Select"
            <asp:Parameter Name="attrEntityDto" Type="Object" />
    <telerik:RadComboBox ID="RadComboBoxStringInLookupValue" Runat="server"
        Width="325px" AllowCustomText="True" CausesValidation="False"
        EmptyMessage="<%$ Resources:CommonUserMsg, EnterValueMsgResource %>"
        EnableTextSelection="False" DropDownWidth="325px" HighlightTemplatedItems="True" 
        OnClientDropDownClosed="DropDownClosed_PopulateInComboBoxEmptyMessage" >
             <li class="col1">
               <telerik:RadListBox ID="RadListBoxSource" runat="server" Height="125px" AutoPostBack="False"
                    DataSourceID="ObjectDataSourceLookUpValues" DataTextField="Descr" DataValueField="Code"
                    AllowTransfer="true" TransferToID="RadListBoxDestination" SelectionMode="Multiple" 
                    AllowTransferOnDoubleClick="True" AutoPostBackOnTransfer="True"
                    OnClientSelectedIndexChanged="IndexChanged" ondatabound="OnDataBound"
                     TransferMode="Move" >
                   <ButtonSettings TransferButtons="Common"></ButtonSettings>
             <li class="col2">
                <telerik:RadListBox ID="RadListBoxDestination" runat="server" Height="125px" SelectionMode="Multiple"
                     oninserting="RadListBoxDestination_Inserting" AllowDelete="True"
              <telerik:RadComboBoxItem Text="" />
  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 26 May 2011 Link to this post

    Hi gary,

    In our demo the two RadListBox controls are bound to datasources. The datasources' events are fired on the server side - insert, delete and update.
    Please consult with the following help article about RadListBox server side events.

    All the best,
    Peter Filipov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. gary
    gary avatar
    14 posts
    Member since:
    Aug 2010

    Posted 31 May 2011 Link to this post

    Thanks..That helped
Back to Top