This is a migrated thread and some comments may be shown as answers.

Drop Down List Reference on Client Side

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Loi
Top achievements
Rank 1
Loi asked on 28 Jul 2008, 11:41 PM
Hi All,

I have a column inside my grid that hold a drop down list.  On client side or in a Javascript function, does anyone know how way to make a reference to that drop down list?

This is what I have in my code:

var grid = <%= rgDRFormASPPFCaseInfo.ClientID %>;

var tableView = grid.MasterTableView;

var ID = tableView.GetCellByColumnUniqueName(tableView.Rows[RowIndex],"ID").innerHTML;

var ddlList = tableView.GetCellByColumnUniqueName(tableView.Rows[RowIndex],"Answer");

I tried to access ddlList like a drop down list, but it doesn't recognized the properties belong to the drop down list.

Please help

Thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Jul 2008, 05:29 AM
Hi Loi,

Go through the following code library submission and see whether it helps.
Accessing server controls in a grid template on the client

Thanks
Shinu.

Tags
Grid
Asked by
Loi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or