We have been trying to use a combination of features of the RadComboBox. We want to use Load-on-Demand with CustomText AND also set/persist a SelectedValue, with a large number of records. We have encountered a couple issues that prevent us from accomplishing our goal.
The online demo ( http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx ) narrowly avoids one of the major issues we have encountered with the suggested implementation of load-on-demand. The online demo loads just enough records per request (10) that no matter what custom text is entered, there is never more than one request worth of filtered items to load. We often need multiple requests to load all of the matching/filtered items for the custom text, but the demonstrated method reverts to loading unfiltered items after the first request. We tried working around this issue ourselves, but then ran into another quirk of the load-on-demand mechanism.
The demonstrated method seems to only be feasible in the context of a single pass questionaire. Our application requires users be able to view and edit previous selections in fields with load-on-demand enabled. We are able to set a selected value, but then load-on-demand breaks. Every time the user clicks the load more results button, another duplicate of the selected value is added to the list. We tried various workarounds without success. We cannot distinguish between the first request (showing the selected value) and subsequent requests (showing filtered or unfiltered items based on the custom text).
We need to accomplish the following with the RadComboBox:
We are very close to having all three features working together, but are missing a piece. When the user opens the combobox, sees the selected value listed as the only item, and clicks the load more results button, we need to load unfiltered items instead of filtered items. We can always load the unfiltered items, but then we have the opposite problem: the custom text is never used to get a filtered list of items. This is the last obstacle to overcome in order to get load-on-demand working in our application the way it should (we think) by design.
Unhandled exception at line 8, column 21447 in http://localhost:16007/CESIReportExec/DES/GetFiles.aspx?type=scripts&version=5.0.1.5000&files=0_1_2_4_7_8_9_15_16_17_18_20_22_24_27_31_33_41_44_49_54
0x800a138f - Microsoft JScript runtime error: Unable to get value of the property '10': object is null or undefined
The code that produces this appears in teh IE debugger: "vMO.MYMonth.innerHTML=(vMO.AMN?vCI.AMN[vM]:vCI.MN[vM]);"
which is in DES\GetFiles.aspx. I know that vMO.AMN is undefined and vM=10; This code is just a small part of a large amount of Telerik code. Is there anything else you need from me to give me some idea as to what I can do?
Thank you.