Welcome Guest Search | Active Topics | Sign In | Register

Dropdown List Item Added through Add Button Options
Basit
Posted: Monday, November 14, 2011 2:16:40 AM
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();
}
eo_support
Posted: Monday, November 14, 2011 7:24:15 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.