Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
paul wheaton
Ron McLeod
Devaka Cooray
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Paul Clapham
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
HTML Pages with CSS and JavaScript
[Ext JS] Sorting by IP adress
Stan Pak
Greenhorn
Posts: 9
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I want to sort my grid by IP adress like this
192.168.1.3
192.168.1.4
192.168.1.200
but, It's working like this
192.168.1.200
192.168.1.3
192.168.1.4
How can I sort the grid by IP adress correctly?
This is my code.
<script type="text/javascript"> Ext.onReady(function(){ var store = new Ext.data.JsonStore({ url: 'mainDataCollector.action', root: 'printerInfo', idProperty: 'ip', totalProperty: 'count', fields: ['ip', 'modelName', 'stateText', 'groupName'], remoteSort: true, sortInfo: { field: "groupName", direction: "ASC" } }); var myPageSize = 20; var grid = new Ext.grid.GridPanel({ renderTo: Ext.getBody(), frame:true, title: 'SH', height:530, width:500, loadMask: true, store: store, columns: [ {header: "IP", dataIndex: 'ip', sortable: true}, {header: "ModelName", dataIndex: 'modelName', sortable: true}, {header: "StateText", dataIndex: 'stateText', sortable: true}, {header: "GroupName", dataIndex: 'groupName', sortable: true} ], bbar: new Ext.PagingToolbar({ pageSize: myPageSize, store: store }) }); store.load({ params: { start: 0, limit: myPageSize} }); }); </script>
Thank you.
Bear Bibeault
Sheriff
Posts: 67754
173
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
To my knowledge there are few, if any, members of JavaRanch using ExtJS. It's not particularly well regarded in the industry.
You might have better luck at the
ExtJS Forums
, or (if you have a choice) picking a more widely-used library.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
static content (css and EXT-JS JavaScript) not found 404 (SOLVED)
Ext JS: how to populate grid with values from servlet
Struts2/JQuery
serialize() Sortable Accordion
how to connect to other machine rather than localhost.
More...