Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
404
Setting Initial Value of WebCombo when "Smart Load" is enabled
posted

Apologies in advance, this question was raised before, but the thread it was posted by another user appears to have gone cold.  I have the following situation:

  • I have a webcombo with a large data set, this means we have smart paging with EnableXmlHTTP= true. Performance is good and this works when we are in "create new record" mode of the form.
  •  The problem occurs when we go into edit mode and we want to set the wembcombo to a specific value, if the required value just happens to be within the existing rowcount, all is good.  If however the record is not within the rowcount, we get an error as the value we want to set is not in the Webcombo.
  • The solution would appear to be in code to "page" the webcombo to the the appropriate rowcount section that does contain the desired value.  How can this be done?

Neil

  • 24671
    posted

    Hi,

    You can use the WebDropDown control ASP.NET AJAX control (new in 2009.1) to achieve this functionality.

    There paging and filtering work together independently, so you can filter (by editing the text),  and page at the same time.

    Apart from paging there is LoadOnDemand, which allows you to scroll down and new data is appended to the existing data.

    Hope this helps,

    Angel

  • 14049
    Offline posted
    Hello,

    You can try to change pages on the embedded grid until the cell value
    comes into the range. Which can be quite lengthy procedure if your data
    source is really big. To optimize it you can have the column, in which
    you're looking for the cell values in, to be sorted. And then divide and
    conquer.
    To change pages:
    combo.grid.goToPage(n);
    To catch the response handle the AfterXmlHttpResponseProcessed off the grid.

    Just throwing ideas... If your data source is huge you might want to
    reconsider the logic somehow or otherwise it might become very slow.