Hi,
I implemented your LoadOnDemand demo project in my current project. It works fine for a small set of results. But due to the client side script "
In my project I use a client side variable to save the last typed text:
Now I want to enable this code for multiple ComboBoxes. Is there an easy way to save the variable typedText with a single ComboBox?
Or more simple: Is there a way to get the last user-typed-text? If I use e.get_text() even if get_appendItems is true, the first marked text is returned and not the user typed search text.
I implemented your LoadOnDemand demo project in my current project. It works fine for a small set of results. But due to the client side script "
OnClientItemsRequesting
" the demo fetches ALL results (search string is set empty!) when scrolling down to the next results. You can't see it in the demo, because there are less than 10 similar records searchable.In my project I use a client side variable to save the last typed text:
<script type="text/javascript"> |
var typedText = ""; |
function OnClientItemsRequesting(sender, e) { |
var context = e.get_context(); |
if (!sender.get_appendItems()) typedText = e.get_text(); |
context["FilterString"] = typedText; |
} |
</script> |
Now I want to enable this code for multiple ComboBoxes. Is there an easy way to save the variable typedText with a single ComboBox?
Or more simple: Is there a way to get the last user-typed-text? If I use e.get_text() even if get_appendItems is true, the first marked text is returned and not the user typed search text.