Solved

how to bind drop down list box  in data grid using java script

Posted on 2006-11-14
3
432 Views
Last Modified: 2008-02-01
i have a one data grid that contain a drop down list box. i bind data grid and ddl when page is loaded. i have also one link button(add button) in data grid. when i click on the link button(add) the new page(child page) is open using pop up dialog box,. this child  page has one save button. when click on the save button new value added in database that relate to drop down list box and  back  to  parent page and  i want to bind drop down list boxdown list box using java script

plz help
0
Comment
Question by:polythought
3 Comments
 
LVL 25

Accepted Solution

by:
nauman_ahmed earned 500 total points
Comment Utility
Call a javascript function from the child window that insert the value in the drop-down field:

window.opener.updateDropDown('value');

function updateDropDown(DDLValue,DDLText)
{
 var elOptNew = document.createElement('option');
    elOptNew.text = DDLText;
    elOptNew.value = DDLValue;
   document.getElementById('ddl').add(elOptNew,0);
}

You can learn more about the select DOM at http://www.mredkj.com/tutorials/tutorial005.html

HTH, Nauman.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
HTML table 7 54
WPF issue with Trigger 2 64
Hangfire / asp.net sample 3 27
ASP.NET Web Form Variables being reset 2 17
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now