?
Solved

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

Posted on 2006-11-14
3
Medium Priority
?
439 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

762 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