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

How to remove blinking cursor from page size combobox.

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fenil
Top achievements
Rank 1
Fenil asked on 16 Oct 2015, 11:12 AM

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.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 21 Oct 2015, 09:09 AM
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
Tags
Grid
Asked by
Fenil
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or