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

ListBox doesn't fire oninserting and oninserted events

2 Answers 78 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
gary
Top achievements
Rank 1
gary asked on 24 May 2011, 09:17 PM
Hi,
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,
Gary

<asp:ObjectDataSource ID="ObjectDataSourceLookUpValues" runat="server"
    OldValuesParameterFormatString="original_{0}" SelectMethod="Select"
     
    TypeName="Epsi.Segmentation.WebApp.DataSource.ObjectDataSourceAttrLookUpValues">
    <SelectParameters>
        <asp:Parameter Name="attrEntityDto" Type="Object" />
    </SelectParameters>
</asp:ObjectDataSource>
 
<telerik:RadComboBox ID="RadComboBoxStringInLookupValue" Runat="server"
    Width="325px" AllowCustomText="True" CausesValidation="False"
    EmptyMessage="<%$ Resources:CommonUserMsg, EnterValueMsgResource %>"
    EnableTextSelection="False" DropDownWidth="325px" HighlightTemplatedItems="True" 
    OnClientDropDownClosing="OnClientDropDownClosing"
    OnClientDropDownClosed="DropDownClosed_PopulateInComboBoxEmptyMessage" >
    <ItemTemplate>
        <ul>
         <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"
                OnTransferring="RadListBoxSource_Transferring"
                OnClientSelectedIndexChanged="IndexChanged" ondatabound="OnDataBound"
                onitemdatabound="OnItemsDataBound"
                 ontransferred="RadListBoxSource_OnTransfered"
                 TransferMode="Move" >
               <ButtonSettings TransferButtons="Common"></ButtonSettings>
           </telerik:RadListBox
         </li
         <li class="col2">
            <telerik:RadListBox ID="RadListBoxDestination" runat="server" Height="125px" SelectionMode="Multiple"
               oninserted="RadListBoxDestination_AddItemToList"
                 oninserting="RadListBoxDestination_Inserting" AllowDelete="True"
                 TransferMode="Move">
            </telerik:RadListBox>
         </li>                                
        </ul>
      </ItemTemplate>
      <Items>
          <telerik:RadComboBoxItem Text="" />
      </Items>          
</telerik:RadComboBox>

2 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 26 May 2011, 09:58 AM
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.

0
gary
Top achievements
Rank 1
answered on 31 May 2011, 02:49 PM
Thanks..That helped
Tags
ListBox
Asked by
gary
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
gary
Top achievements
Rank 1
Share this question
or