Solved

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

Posted on 2006-11-14
3
436 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 25

Accepted Solution

by:
nauman_ahmed earned 500 total points
ID: 17938848
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

730 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