Combobox not work on IE while using Scriptmanager EnableHistory property

6 posts, 0 answers
  1. hgmamaci
    hgmamaci avatar
    4 posts
    Member since:
    Aug 2009

    Posted 07 Mar 2011 Link to this post

    hi,

    My Browser is IE8. I am using comboBox like that;

    <telerik:RadComboBox ID="rcbEquipmenList" runat="server" Width="300px" Height="150px"
                    EmptyMessage="Malzeme Seçiniz" EnableLoadOnDemand="True" ShowMoreResultsBox="true"
                    EnableVirtualScrolling="true" OnItemsRequested="rcbEquipmenList_ItemsRequested">
                </telerik:RadComboBox>

    When I convert my scriptmanager EnableHistory propert TRUE, then OnItemsRequested not fired. On chrome and mozilla it is working very well. but on IE8  not work. if I close EnableHistory false then it is working.. 

    Conditions;

    first click combobox. you will see, the data is coming. then click button and postback , add history property. After that click again combobox, the data not come.. 

    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager runat="server" ID="ddd" EnableHistory="true" AsyncPostBackTimeout="30">
        </asp:ScriptManager>
     
        <telerik:RadAjaxPanel ID="pmnl" runat="server">
            <telerik:RadComboBox ID="rcbEquipmenList" runat="server" Width="300px" Height="150px"
                EmptyMessage="Malzeme Seçiniz" EnableLoadOnDemand="True" ShowMoreResultsBox="true"
                EnableVirtualScrolling="true" OnItemsRequested="rcbEquipmenList_ItemsRequested">
            </telerik:RadComboBox>
     
            <asp:Button id="dd" runat="server" onclick="dd_Click" ></asp:Button>
        </telerik:RadAjaxPanel>
    </div>
    </form>

    private const int ItemsPerRequest = 20;
       protected void rcbEquipmenList_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
       {
           //Random r = new Random(1000);
           //string s = r.Next().ToString();
           //ddd.AddHistoryPoint(s, "dd");
           List<string> lst = new List<string>();
           lst.Add("111");
           lst.Add("2222");
           lst.Add("333");
           lst.Add("444");
           lst.Add("555");
           lst.Add("66");
           lst.Add("77");
           lst.Add("88");
           lst.Add("9999");
           lst.Add("100");
           lst.Add("111");
           lst.Add("122");
           lst.Add("1333"); lst.Add("2222");
           lst.Add("333");
           lst.Add("444");
           lst.Add("555");
           lst.Add("66");
           lst.Add("77");
           lst.Add("88");
           lst.Add("9999");
           lst.Add("100");
           lst.Add("111");
           lst.Add("122");
           lst.Add("1333"); lst.Add("2222");
           lst.Add("333");
           lst.Add("444");
           lst.Add("555");
           lst.Add("66");
           lst.Add("77");
           lst.Add("88");
           lst.Add("9999");
           lst.Add("100");
           lst.Add("111");
           lst.Add("122");
           lst.Add("1333");
     
           int itemOffset = e.NumberOfItems;
           int endOffset = Math.Min(itemOffset + ItemsPerRequest, lst.Count);
           e.EndOfItems = endOffset == lst.Count;
     
           for (int i = itemOffset; i < endOffset; i++)
           {
               rcbEquipmenList.Items.Add(new RadComboBoxItem(lst[i], lst[i]));
           }
       }
       protected void dd_Click(object sender, EventArgs e)
       {
           Random r = new Random(1000);
           string s = r.Next().ToString();
           ddd.AddHistoryPoint(s, "dd");
       }
  2. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 07 Mar 2011 Link to this post

    Hi Dogan COBANYILDIZI,

    Load On Demand feature uses the form "action" attribute in order to work.
    In your particular case, when the user selects an item from RadComboBox and hits the button - a history point is added to the ScriptManager from server-side and the form “action” is changed. That is why Load On Demand does not fire a request for items.

    Regards,
    Kalina
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. hgmamaci
    hgmamaci avatar
    4 posts
    Member since:
    Aug 2009

    Posted 07 Mar 2011 Link to this post

    Firstly, make an action , add history. then try to use combobox but not work in IE8 . on Chrome or mozilla this condition works well. 

    I am using a Core. soo it include e scriptmanager and ENableHistory = true. soo I try to use Radcombox load on demand feature. every action make a history, so radcombobox not fire the OnItemsRequested.
  4. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 15 Mar 2011 Link to this post

    Hi Dogan COBANYILDIZI,

    Please accept my apologies for the late response and delaying the answer, but we are very busy with the upcoming Q1 2011 Release.
    I will do my best to investigate the issue will update you as soon as I make progress on it.

    Kind regards,
    Kalina
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  5. hgmamaci
    hgmamaci avatar
    4 posts
    Member since:
    Aug 2009

    Posted 13 Apr 2011 Link to this post

    I update my telerik to 2011.1.315.35. but still this problem not fix..

    I am using my .net aspx project, using scriptmanager.enablehistory = true and try to browsing on IE8..

    IE8 output - http://www.genport.com.tr/tempImage/telerik1.jpg 

    mozilla output - http://www.genport.com.tr/tempImage/telerik2.jpg  

    <telerik:RadComboBox ID="rcbSiteNo" runat="server" Width="220px" Height="150px" EmptyMessage="Site listesi"
                               EnableLoadOnDemand="True" ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                               OnItemsRequested="rcbSiteNo_ItemsRequested">
                           </telerik:RadComboBox>

    private const int ItemsPerRequest = 20;
        protected void rcbSiteNo_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            DataTable dt = this.InvokeBll(BLLValues.CatalogSiteDM, "GetDataByCustomerCode", rcbCustomerCode.SelectedValue) as DataTable;


            int itemOffset = e.NumberOfItems;
            int endOffset = Math.Min(itemOffset + ItemsPerRequest, dt.Rows.Count);
            e.EndOfItems = endOffset == dt.Rows.Count;


            for (int i = itemOffset; i < endOffset; i++)
            {
                rcbSiteNo.Items.Add(new RadComboBoxItem(dt.Rows[i]["SITENO"].ToString(), dt.Rows[i]["SID"].ToString()));
            }
        }

  6. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 23 May 2011 Link to this post

    Hello Dogan COBANYILDIZI,

    Upon revisiting the issue you reported in this thread we discovered that it does not occur with the latest version of Telerik.Web.UI or at least we cannot reproduce it.

    I am sending you a sample project, where I tested last in IE8. Can you please run it on your side with the latest version of TWUI and let me know if I am missing something in the setup? Please also let me know the exact version of IE8, which you are using, as well as the Browser/Document mode combination.

    Once we reproduce the issue on our side we will either provide you a workaround and/or fix the issue in our code.

    Kind regards,
    Simon
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top