How to remove blinking cursor from page size combobox.

2 posts, 0 answers
  1. Fenil
    Fenil avatar
    1 posts
    Member since:
    Aug 2014

    Posted 16 Oct 2015 Link to this post

    I am using RadGrid control inside which I have paging combo box [Please refer to the attached image].

    The issue is the blinking cursor inside combo box.I want the combo box as read only.Unable to find appropriate property for that.

    Please help as issue is in high priority!!!

     

    Thanks.

  2. Eyup
    Admin
    Eyup avatar
    3819 posts

    Posted 21 Oct 2015 Link to this post

    Hello Fenil,

    This behavior is not Telerik related, but rather specific to IE - you won't observe the same on other browsers. Nevertheless, you can use the following approach to achieve your requirement:
    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridPagerItem)
        {
            GridPagerItem pager = e.Item as GridPagerItem;
            RadComboBox combo = pager.FindControl("PageSizeComboBox") as RadComboBox;
            combo.OnClientLoad = "function(s,a){s.get_inputDomElement().disabled=true;}";
        }
    }

    Hope this helps. Please give it a try and let me know if it works for you.

    Regards,
    Eyup
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top