Access controls on the client-side
Q:
I have a few OboutDropDownList controls inside a Grid template. I'm trying to access these controls on the client-side, to retrieve the selected values. The code that I'm using (which works fine with a standard DropDownList), doesn't work with the OboutDropDownList: var ddl = document.getElementById('ctl00_grid1_Template1_ctl00_ddl1');
What am I doing wrong?
A:
The Obout Interface controls should be accessed on the client-side based on their IDs (which were set on the server-side). You don't need to use the document.getElementById method. So simply use "ddl1", instead of "document.getElementById('ctl00_grid1_Template1_ctl00_ddl1');".
See more information here: http://www.obout.com/Interface/aspnet_ddl_client_api.aspx http://www.obout.com/Interface/aspnet_txt_client_api.aspx
|