PDA

View Full Version : grid control and image control



Shranes
23 Jun 2011, 9:51 PM
guys,
i got two issues that need to be addressed right away.

1- is thr any grid control in sencha like the one that is available is asp.Net?i need one to retrieve data from database and bind it to a grid control.

2- how do u add image to your application and align it in ur preferred position?

jmclem
23 Jun 2011, 10:01 PM
2- how do u add image to your application
see http://www.sencha.com/forum/showthread.php?136814-Adding-image-in-sencha-in-a-panel&highlight=img+html

Shranes
24 Jun 2011, 8:13 PM
i can include the image, but i wanna place it in my preferred position. how do u work with the alignment part??
and i also wanna know if we can place buttons in a dashboard control, and if we can, how do we do it??

bclinton
25 Jun 2011, 10:27 AM
Try CSS for the image alignment.

What's a dashboard control? Is that an ASP thing?

bclinton
25 Jun 2011, 10:30 AM
guys,
1- is thr any grid control in sencha like the one that is available is asp.Net?i need one to retrieve data from database and bind it to a grid control.

Sencha Touch doesn't have anything as complex as Ext JS's gridpanel, but a list may be what you are looking for: http://dev.sencha.com/deploy/touch/docs/?class=Ext.List

Shranes
27 Jun 2011, 1:47 AM
u don't understand..
i've created a Sencha screen, complete with viewport, panel and toolbars.
now i need a dashboard control,complete with two buttons and a background image, right in the center of my screen. i've tried panel and container. neither of them work.

jmclem
27 Jun 2011, 4:11 AM
from what I understand that you described ;-),


a panel, with an id
with a vbox or hbox layout ('pack' and 'align' properties to 'center') (http://dev.sencha.com/deploy/touch/docs/?class=Ext.layout.VBoxLayout)
as items, your two buttons
and a css rule for the background image of your panel (thanks id)

should do it.

Jean-Marie.