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
135
To Set focus on first four letters of the UltraDropDown.
posted

Hello All,

I am working on Infragistics Combo editor .I have changed the drop down style of combo editor to drop down as i want to edit the text.Few things which i want to do are as follows:

a) I want focus(with blue back ground) only on first four letter rather then whole text to be selected.

b) When i select a text in UltraDropdown which is having length more then the size of comboeditor control  it shows the last portion of the text.I want it to show text from first letter rather then to see the last letters of the string .(This is similar to when you select an item in ultradropdownlist it showsitem from left to right)

 Regards,

Prabhat Chauhan

Parents
  • 37774
    posted

    Prabhat,

    In regards to your first question, I believe that the SelectionStart and SelectionLength properties should provide the functionality that you need here.  As for your second issue, I'm not really sure if there's a way to have the combo editor have all of the text selected *and* have the first portion of the text remain visible if it's larger than the area the control has available to it.  You could certainly accomplish this by removing the selection:

     private void ultraComboEditor1_AfterEnterEditMode(object sender, EventArgs e)
    {
        this.ultraComboEditor1.SelectionLength = 0;
    }

    -Matt

Reply Children