Rank: Newbie Groups: Member
Joined: 9/24/2011 Posts: 9
|
Dear sir,
From your example Appending New item with JavaScript i did the Textbox value added in a grid. But how we do for dropdown list, i need to add dropdown value and Dropdown Text in two diffn column. Thanks Basit.
function addNewItem() { //Get the Grid object var grid = eo_GetObject("Grid1");
//Add a new item var item = grid.addItem();
//Set cell data var textbox = document.getElementById("txtNewCellData"); item.getCell(1).setValue(textbox.value);
//Make sure the new item is visible item.ensureVisible(); }
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
There are two parts of your question: 1. How to get the value from your drop down; 2. How to add the value to the Grid; Only the second part is related to our product and that part is the same no matter where your value comes from. The first part of your question is beyond the scope of our support so you will need to seek help from other resource.
Thanks!
|