Hi,
I use a combobox with checkboxes. I can get the checked values on the client side just I couldn't figure out how to set the checkboxes checked on client side. I know how to do it on serverside but we have a no-postback ajax enviroment and need to do this in client side.
ddNewLocation combobox is databinded on page_load on server_side like below.
ddNewLocation.DataSource = dr;
ddNewLocation.DataBind();
With the below code I could set the selectedindices but it doesn't check the checkboxes visually. How can I achieve this?
var location = $find("<%= ddNewLocation.ClientID %>");
var locations = JSON.parse(result.Message);
for (var i = 0; i < locations.length; i++)
{
location._checkedIndices.push(locations[i].row_number);
}
Thanks. My Company has a paid account but I didnt have time to find the username and password.
I use a combobox with checkboxes. I can get the checked values on the client side just I couldn't figure out how to set the checkboxes checked on client side. I know how to do it on serverside but we have a no-postback ajax enviroment and need to do this in client side.
ddNewLocation combobox is databinded on page_load on server_side like below.
ddNewLocation.DataSource = dr;
ddNewLocation.DataBind();
With the below code I could set the selectedindices but it doesn't check the checkboxes visually. How can I achieve this?
var location = $find("<%= ddNewLocation.ClientID %>");
var locations = JSON.parse(result.Message);
for (var i = 0; i < locations.length; i++)
{
location._checkedIndices.push(locations[i].row_number);
}
Thanks. My Company has a paid account but I didnt have time to find the username and password.