RadGrid Batch Mode Get Value from Popup or bind another dropdown.

2 posts, 0 answers
  1. Corey
    Corey avatar
    5 posts
    Member since:
    Mar 2013

    Posted 11 Feb 2015 Link to this post

    I am trying to get a value from a popup window. 

    My process goes like this.

    When a user clicks on a value from a RadDropDownList (CUST_NBRDropDown) I have OnClientItemSelected fire a popup

    <telerik:RadDropDownList ID="CUST_NBRDropDown" runat="server" DataSourceID="Customer_DDL" DataTextField="account_name" DataValueField="account_number" DropDownHeight="400px" SelectedValue='<%# Bind("CUST_NBR")%>' OnClientItemSelected="OnClientItemSelected">
    </telerik:RadDropDownList>


    function OnClientItemSelected(sender, eventArgs) {
         var item = eventArgs.get_item();
        //alert("You selected " + item.get_text() + " with value " + item.get_value());
        retVal = window.open("BSDM_PLANT_BACKNUMBERS_popup.aspx?acct_num=" + item.get_value(), "Popup", "width=300,height=100");
        retVal.focus();
     }

    On the BSDM_PLANT_BACKNUMBERS_popup.aspx page i have a RadComboBox that i want the user to be able to select one of the values from.(This dropdown is populated from a Oracle DB. with the filter from the original 'CUST_NBRDropDown' dropdown.)

    After they select a value i want to return the selected value back to the BSDM_PLANT_BACKNUMBERS (Parent) page to a Textbox in the same row as the original RadDropDownList.
    <asp:TextBox ID="CUST_NBR_txt" runat="server" Text='<%# Bind("CUST_NBR") %>' Visible="true"></asp:TextBox>

    So far I have not been able todo that.


    If possible instead of doing a popup i would like to be able to have the dropdown that is populated in the Popup window to be in the radgrid row. but from my understanding i cannot bind the dropdown in "batch edit mode" after the CUST_NBRDropDown is selected since this is all client side functions...


    Any help would be greatly appreciated!

  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 16 Feb 2015 Link to this post

    Hello Corey,

    In essence you want to have related combos in a batch editing grid. To demonstrate a possible realization of this scenario I have assembled a sample web site for you to review(you can find it in attachments). Please examine the implementation and let us know if the illustrated approach fits the requirements.

    Regards,
    Angel Petrov
    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.

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