I have a LoadOnDemand combobox that I want to limit to 25 items or less. I can do this just fine. However I also want to update a label on the page with a match count depending on the contents of the text in the control. I can probably show this better with an example:
So far the load on demand portion of this is working fine. However I can't figure out a way to pass back the match count (4500, 567, 120, 18, etc...) to the client so that the label can be updated. I tried AjaxManager.ResponseScripts.Add() with no luck. Also investigated the OnClientItemsRequested property, but there doesn't seem to be a way to pass a value back to it from the server call.
Is there any way to do what I am trying to do here? Any help would this would be, as usual, greatly appreciated.
Thanks,
Kevin
| Combo Text Label |
| ---------- ----- |
| AL1 4500 match(s) |
| AL12 567 match(s) |
| AL123 120 match(s) |
| AL1234 18 matche(s) // actual items appear here. |
So far the load on demand portion of this is working fine. However I can't figure out a way to pass back the match count (4500, 567, 120, 18, etc...) to the client so that the label can be updated. I tried AjaxManager.ResponseScripts.Add() with no luck. Also investigated the OnClientItemsRequested property, but there doesn't seem to be a way to pass a value back to it from the server call.
Is there any way to do what I am trying to do here? Any help would this would be, as usual, greatly appreciated.
Thanks,
Kevin