Solved

aligning buttons next to combo box

Posted on 2014-09-04
2
139 Views
Last Modified: 2014-09-17
hi experts
I have my code like this:

Ext.define('app.view.CustomerTab', {
	layout : {
		type : 'border',
		padding : 5
	},
	defaults : {
		split : true
	},
	extend : 'Ext.panel.Panel',
	alias : 'widget.CustomerTab',
	id : 'CustomerTab',
	margin : '10 10 10 10',
	border : true,
	items : [{
		xtype : 'panel',		 	 
		width : '35%',		
		region : 'west',
		autoScroll : true,
		items : [{			
			id : 'searchCustomer',
			//collapsible : true,
			title : 'Search Customer', 
			//split : true,
			margin : '2 2 2 2',
			width : '5%',	
			//height : '5%',
			xtype : 'combo',
			queryMode : 'local',
			fieldLabel : 'customer Name',		 
			forceSelection : true,
			displayField : 'fullName',  
			valueField : 'firstName',  
			name : 'name',  
			minChars : 1,
			triggerAction : 'all',
			store : 'customerName',		
			loadingText : 'Fetching ..',
			labelStyle : 'white-space: nowrap;',		
			hideTrigger : true,		 
			typeAhead : false
		},
		{
		buttons : [ {
			text : 'Search',
			action : 'searchcustomerDetails'
			}, {
			text : 'Reset',
			action : 'resetcustomerDetails'
		}]
		},
		{
		itemId : 'customerDetailList',
		xtype : 'customerDetaillist', 
		border : true	
		}
		]
	},

	{

		region : 'center',
		layout : 'border',
		border : true,
		items : [{
					xtype : 'panel',
					border : true,
					split : true,
					width : '65%',
					height : '100%',
					region : 'center',
					autoScroll : true,
					items : [{
								itemId : 'productDetaillist',
								xtype : 'productDetaillist', 
								border : true
							}],					 
					dockedItems : [{
								xtype : 'pagingtoolbar',
								store : 'productDetaillist', 
								dock : 'bottom',								
								displayInfo : true
							}]
				}]
	}

	]
});

Open in new window


I want my buttons
Search and Reset to be next to my combo box, but right now they are in two different lines, any idea how i can put it in same line?

thanks
0
Comment
Question by:royjayd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
Montoya earned 500 total points
ID: 40304512
If this is going in html page, use CSS to position the buttons. Are you trying to do it strictly through javascript?
0
 

Author Comment

by:royjayd
ID: 40304874
yeah , i was doing through javascript.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SharePoint and CAML query help 4 22
Glitching Slide Show 19 37
ExcelWebAddIn Connect to SQL database (Javascript or VB.net) 7 51
Error Handler 8 38
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question