PDA

View Full Version : How to line seperator in combo box list of values



kamalakarreddy vancha
13 Sep 2014, 2:29 AM
Hi....
I want to add line separator in the combo box list of values.
In the list of values i want separate the every row with a separate line.
Is there any example.......????
Help me in this.......




Thanks in Advance
Kamalakar Reddy

chamacs
13 Sep 2014, 11:22 AM
Have you looked at the listConfig attribute to set your own HTML output for each row in the combobox?


displayField : 'myField',
listConfig: {
getInnerTpl : function(){
return '{myField}<br><hr>';
}
}

**Using <hr> like this is untested. There are other ways in html for a line.

Or maybe: http://docs.sencha.com/extjs/4.1.1/#!/api/Ext.view.BoundList-cfg-border


listConfig: {
border : 1
}

Hope this helps.

kamalakarreddy vancha
15 Sep 2014, 5:28 AM
Thanks for your reply....
But I am not looking for this...
I need separate line to separate the values in combo box values like in Fig.


Thanks
Kamalakar Reddy