Hi,
I have a radgrid with two combobox (per row), so when the radgrid loads i populate the firts combobox, now i need to populate the second combobox when the selected index of the firts one changes, but i need to do that all by client-side, i am using a code-behind method enabled for access in jquery, that means that the method is decorated with [WebMehod].
Right now i am using an ajax query inside the event onclientindexchanged, i can get the combobox instance and i can look for the items for populate the second combobox, but the big problem im facing is that i have no idea about how do i get the reference/instance of the second combobox inside the same row of the firts one.
i have the data, but how do i populate the second combobox ( in the same row of radgrid ) ?
Here is my jquery ajax function:
I have a radgrid with two combobox (per row), so when the radgrid loads i populate the firts combobox, now i need to populate the second combobox when the selected index of the firts one changes, but i need to do that all by client-side, i am using a code-behind method enabled for access in jquery, that means that the method is decorated with [WebMehod].
Right now i am using an ajax query inside the event onclientindexchanged, i can get the combobox instance and i can look for the items for populate the second combobox, but the big problem im facing is that i have no idea about how do i get the reference/instance of the second combobox inside the same row of the firts one.
i have the data, but how do i populate the second combobox ( in the same row of radgrid ) ?
Here is my jquery ajax function:
function FindRoomsByFloor(sender, eventArgs) { var params = new Object(); params.idBloque = sender.get_value(); params = JSON.stringify(params); $.ajax({ type: "POST", url: "Default.aspx/GetRoomsByFloor", data: params, contentType: "application/json; charset=utf-8", dataType: "json", async: false, error: function(XMLHttpRequest, textStatus, errorThrown) { alert(textStatus + ": " + XMLHttpRequest.responseText); }, success: function(result) { $.each(result.d, function() { //Here i most populate the second combobox in the same row of the first one }); } }); }