I have a RadListbox with CheckBoxes set to true. What I'm doing is reading data in to the listbox from a sql database and having the checkbox be checked if the data is able to be crossreferenced with another table.
I am able to populate the listbox with data and have the checkboxes be checked or unchecked on page load. My problem is handing the ItemChecked event. I want to capture the event and pass the value of the list item that had it's check box checked or unchecked to a function in server side code. The function then either creates or deletes a record in my sql database for cross referencing.
For example I have a 4 items in the list, the items consist of a name and a value(a guid), items 1 and 3 are checked on load. When I check item 2 how do I capture the check event and then pass the GUID value to the code?
I attempted to follow the instructions listed here: http://www.telerik.com/help/aspnet-ajax/ajax-client-side-api.html but I had no luck in getting it to call the function much less figuring out how to pass the information I need in the arguments.
I am able to populate the listbox with data and have the checkboxes be checked or unchecked on page load. My problem is handing the ItemChecked event. I want to capture the event and pass the value of the list item that had it's check box checked or unchecked to a function in server side code. The function then either creates or deletes a record in my sql database for cross referencing.
For example I have a 4 items in the list, the items consist of a name and a value(a guid), items 1 and 3 are checked on load. When I check item 2 how do I capture the check event and then pass the GUID value to the code?
I attempted to follow the instructions listed here: http://www.telerik.com/help/aspnet-ajax/ajax-client-side-api.html but I had no luck in getting it to call the function much less figuring out how to pass the information I need in the arguments.