This is a migrated thread and some comments may be shown as answers.

RadComboBox Load on Demand in IE8

6 Answers 77 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 13 Jul 2010, 08:46 PM

Load on demand does not populate drop down list with list items when using IE8.  It works properly in FF and it has worked in previous versions of IE.  I’ve downloaded the latest builds with the same results.

Is there a fix for this?

<!---- RAD CARRIER COMBOBOX ----->
<telerik:RadComboBox ID="radCarrierID" runat="server"  EmptyMessage='<%# GetResourceValue("Txt:PleaseSelect", "VFB")%>' ShowToggleImage="True" ShowMoreResultsBox="true"
        EnableLoadOnDemand="True" OnItemDataBound="radCarrier_ItemDataBound"
        DropDownWidth="423px" Width="260px" OnClientFocus="ClearCarrierOnFocus" OnClientBlur="OnCarrierBlur" OnClientSelectedIndexChanged="HandleEndChangingCarrier" Skin="Outlook" OnItemsRequested="radCarrierID_ItemsRequested" EnableVirtualScrolling="true">
        <HeaderTemplate>
            <table style="text-align: left">
                <tr>
                    <td style="width: 225px;">
                        Carrier
                    </td>
                    <td style="width: 125px;">
                        City
                    </td>
                    <td style="width: 25px;">
                        St
                    </td>
                </tr>
            </table>
        </HeaderTemplate>
        <ItemTemplate>
            <table style="text-align: left">
                <tr>
                    <td style="width: 225px;">
                        <%# DataBinder.Eval(Container.DataItem, "Name") %>
                    </td>
                    <td style="width: 125px;">
                        <%# DataBinder.Eval(Container.DataItem, "City") %>
                    </td>
                    <td style="width: 25px;">
                        <%# DataBinder.Eval(Container.DataItem, "St") %>
                    </td>
                </tr>
            </table>
        </ItemTemplate>                   
</telerik:RadComboBox>

      protected void radCarrierID_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
      {
        try
        {
          // create in memory datatable
          DataTable tblName = new DataTable();
          tblName.Columns.Add("NameID");
          tblName.Columns.Add("Name");
          tblName.Columns.Add("City");
          tblName.Columns.Add("St");
          e.Message = "No Matches";

          if (e.Text != "")
          {
            WhereClause wc = new WhereClause();
            OrderBy orderBy = new OrderBy(false, true);
            orderBy.Add(CarrierTable.Carrier_Lookup_Name, OrderByItem.OrderDir.Asc);
            string strFilter = "Carrier_Lookup_Name like '" + e.Text.Replace("'", "''") + "%'";
            SqlFilter objFilter = new SqlFilter(strFilter);
            wc.AddFilter(objFilter, CompoundFilter.CompoundingOperators.And_Operator);
            int intTotalCount = CarrierTable.GetRecordCount(wc);
            int itemOffset = e.NumberOfItems;
            int intPage = itemOffset / ItemsPerRequest;
            int endOffset = Math.Min(itemOffset + ItemsPerRequest, intTotalCount);
            e.EndOfItems = endOffset == intTotalCount;
            if (itemOffset <= intTotalCount)
            {
              foreach (CarrierRecord itemValue in CarrierTable.GetRecords(wc, orderBy, intPage, ItemsPerRequest))
              {
                tblName.Rows.Add(new string[] { itemValue.Carrier_ID.ToString(), itemValue.Carrier_Lookup_Name.ToString(), itemValue.Carrier_CitySpecified ? itemValue.Carrier_City.ToString() : "", itemValue.Carrier_StateSpecified ? CarrierTable.Carrier_State.Format(itemValue.Carrier_State.ToString()) : "" });
              }
            }
            e.Message = String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset, intTotalCount);
          }
          // radShipperID.DataTextField = "Name;City;St";
          radCarrierID.DataValueField = "NameID";
          radCarrierID.DataSource = tblName;
          radCarrierID.DataBind();
        }
        catch (Exception ex)
        { e.Message = "Error: " + ex.Message; }
      }

Phil

6 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 14 Jul 2010, 01:21 PM
Hello Phil,

Our online demos work properly on my side in IE8. Can you reproduce this issue in any of them?

Regards,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Phil
Top achievements
Rank 1
answered on 14 Jul 2010, 02:48 PM

Look at the demo ComboBox/Load on Demand modes for the demo Page Methods.  Try typing in ma in IE8 and it does not work, now try the same thing in FF and it does work.

I’ve upgraded to the latest release and now I’m getting an error about $telerik.disposeElement is not a function. 

Wow what’s happened over at Telerik?

Any help appreciated,
Phil
0
Simon
Telerik team
answered on 14 Jul 2010, 02:59 PM
Hi Phil,

I did exactly what you described in IE8 and the RadComboBox worked properly. Please see this video showing my test. There must be something else that I am missing.

As for the disposeElement error, where did you get it? How can I reproduce it on my side?

Kind regards,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Phil
Top achievements
Rank 1
answered on 14 Jul 2010, 03:16 PM
I reviewed your video but that's not what's happening on my end with any of the load on demand drop downs for IE8 in any mode.

Phil
0
Phil
Top achievements
Rank 1
answered on 14 Jul 2010, 03:29 PM
Simon,

       I reviewed your video then I switched between the different IE compatibility modes and still the drop down list refused to work properly.  I then shutdown Zone Alarm Extreme Security and it worked as expected.  So ZA is the culprit here.  I know Telerik is not responsible for what ZA is doing in the middle but do you have any suggestions for any security system that might cause any issue like this.

Thanks,
Phil
0
Simon
Telerik team
answered on 16 Jul 2010, 05:59 PM
Hi Phil,

Indeed we do not support any specific third-party software as Anti-Virus or Internet Security that can prevent RadControls from working. Still in such cases we encourage the usage of debugging tools - FireBug for FireFox and Fiddler/FiddlerCap for IE - for troubleshooting web resource issues locally. T

hese tools could help you detect whether the web resource is reachable, returned in a valid form or requested at all, which may lead you to the underlying cause of the issue.

Kind regards,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Phil
Top achievements
Rank 1
Answers by
Simon
Telerik team
Phil
Top achievements
Rank 1
Share this question
or