-
12 Dec 2012 8:02 AM #1
Unanswered: How to bind textfield to store
Unanswered: How to bind textfield to store
Hi,
I am pretty much new to ext js and practically not an expert on JS. I've worked with windows forms for most of my project
Anyway, i need to know the best approach of binding the text field to a store so that when i navigate through the store (using the pagingtoolbar), the field values gets displayed to.
To give you a better idea, let me show you my form:
12-13-2012 12-10-09 AM.png
Thanks.
-
14 Dec 2012 6:18 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
- Answers
- 3113
You will need to extend Text field or make a plugin as there is no built in support for this.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Dec 2012 10:03 AM #3
What if you set the pageSize on the store to 1 and then listened to the change event on the paging toolbar and used the page number to do something like:
Code:change: function (tb, pageData) { var rec = tb.getStore().getAt(pagingData.toRecord); myForm.loadRecord(rec); }
-
14 Dec 2012 1:49 PM #4
Use combo and hide trigger.
varsos
-
5 Jan 2013 6:41 PM #5


Reply With Quote