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
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
Hello Matt,Thanks for replying.for part1 I am able to choose the first few letters by selection start but for part2 please see my analysis below:I have tried with selectionLength = 0 in fuction AfterEnterEditMode but that doesnt workthen later i tried with BeforeEnterEditMode and BeforeExitEditMode but not works.
Actually what i want if we select an item in Ultradropdown it should show the text starting from the first letter as happens in case of dropdown list(when we select an item it always show the text starting from the first letter irrespective to the length of the text) but default behaviour of drop down is like it shows the last portion of the text which hides the first portion
.for e.g Me.Ultracomboeditor1.text = "0001 United States of America" in case of ultradropdown it shows the last portion of text depending upon size of control like "States of America" but i want it to show from first portion like "001 United " as happens in case of drop down list.I am not using dropdownlist because i want combo to be editable.Here i have tried to change the dropdown displaymode to dropdownlist at runtime but it bring the control in unstable state.Hope now you will get the idea what exactly i am expecting...Thanks a lot once again for giving time .
Thanks & Regards,