Solved

aligning buttons next to combo box

Posted on 2014-09-04
2
138 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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP: Filling Out/Creating a PDF 29 93
Github api to fetch the number of collaborators in a git repo 1 25
javascript form submition 2 21
Jquery if else not working ... WHY? 5 23
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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…

685 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