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

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

1 Answer 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Corey
Top achievements
Rank 1
Corey asked on 11 Feb 2015, 04:07 PM
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!

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 16 Feb 2015, 09:40 AM
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.

 
Tags
General Discussions
Asked by
Corey
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or