Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1290
Setting ValueList on client side
posted

Hi,

I'm trying to programmatically set the valuelist using javascript but I've ran into some problems. Here's my code:

 var grid = document.getElementById('ctl00_ContentPlaceHolder1_UltraWebGrid1');

var ddlArrayContainer = new Array(2);

var ddlArrayItem1 = new Array('Driver', 'Driver');

var ddlArrayItem2 = new Array('Attendant', 'Attendant');

ddlArrayContainer[0] = ddlArrayItem1;

ddlArrayContainer[1] = ddlArrayItem2;            

grid.Bands(0).Columns(4).ValueList = ddlArrayContainer;

 

The last line is returning some javascript error. I tried using :

grid.Bands[0].Columns[4].ValueList = ddlArrayContainer;

which still returned some error.

Please assist!