I know there are a couple examples of this but none of them fit my exact situation and I need to solve this problem quickly. Please help.
I have a page with a a radwindow that pops up. Inside the radwindow are a few controls but the ones that come into play are an image button, a combobox and a listbox. The combobox is filled with a list of many items that can be easily searched using the autofill feature. The listbox has the same list of items. Once the user finds the item he is looking for, the user clicks the image button and the list box is supposed to selects the same item and autoscroll to that item so the user can then select multiple items after the selected item.
I am able to do all of this except have the listbox autoscroll to the item and show it visibly in the list box.
The code I found that I think is close to what I need uses this javascript:
The problem I am having is the control called lstAllGroups can't be found and I don't know how to activate the javascript from the code behind.
If you would be able to supply a complete example of this, I would be grateful.
RJ
I have a page with a a radwindow that pops up. Inside the radwindow are a few controls but the ones that come into play are an image button, a combobox and a listbox. The combobox is filled with a list of many items that can be easily searched using the autofill feature. The listbox has the same list of items. Once the user finds the item he is looking for, the user clicks the image button and the list box is supposed to selects the same item and autoscroll to that item so the user can then select multiple items after the selected item.
I am able to do all of this except have the listbox autoscroll to the item and show it visibly in the list box.
The code I found that I think is close to what I need uses this javascript:
Sys.Application.add_load(function (e) { var item = $find("lstAllGroups").get_selectedItem(); if (item) item.scrollIntoView();
The problem I am having is the control called lstAllGroups can't be found and I don't know how to activate the javascript from the code behind.
If you would be able to supply a complete example of this, I would be grateful.
RJ