extjs

JSON Data changes while transferring from C# to ExtJS

血红的双手。 提交于 2019-12-12 17:16:14
问题 When transferring JSON data from a Webmethod in asp.net C# through an Ajax call in ExtJS 4.2.2, several characters are added to the beginning and end of the string. JSON Data before leaving C#: [{"ID":"0","NAME":"ALAN"},{"ID":"1","NAME":"BLAKE"}] JSON Data as seen by firebug which is received by ExtJS {"d":"[{"ID":"0","NAME":"ALAN"},{"ID":"1","NAME":"BLAKE"}]"} This will also happen if the JSON Data has a set root property. From what it appears it seems as if something somewhere along the

How to increase Java Heap Memory for CMD 6.1.1.76

爷,独闯天下 提交于 2019-12-12 16:41:30
问题 How to increase Java Heap Memory for CMD 6.1.1.76 ? I think these are no longer valid methods: http://www.ladysign-apps.com/developer/java-heap-exception-when-using-sencha-cmd/#.VxQIauMrJTY https://www.sencha.com/forum/showthread.php?251529-Java-Heap-Size I'm getting a Java heap exception when running sencha app build specifically while slicing images (I don't want to skip this) 回答1: You have to edit sencha.cfg file which is located in your Cmd folder. If you are on Windows - most probably

How to scroll to a specified record in a grid

梦想与她 提交于 2019-12-12 16:24:44
问题 How can we scroll to a defined record (record or index) in a grid? Using a buffered renderer this is quite easy by calling: grid.view.bufferedRenderer.scrollTo(0, false, callback, scope); but how can this be done with a default renderer? 回答1: Try grid.getView().scrollRowIntoView(rowIndex) 来源: https://stackoverflow.com/questions/23421508/how-to-scroll-to-a-specified-record-in-a-grid

Question regarding the ExtJS License [closed]

喜你入骨 提交于 2019-12-12 16:15:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Let's say I create a CMS that uses ExtJS. I want to avoid the license fee, so I open-source the CMS on github. Now let's imagine that I make your friend Dave a website that uses my CMS. I spend three hundred hours designing a logo and layout. Can I charge a fee for this, and would I be obliged to open-source

How I'll create a model from json file? (ExtJS)

ⅰ亾dé卋堺 提交于 2019-12-12 16:06:57
问题 This the model that I want to create using json file Ext.define('Users', { extend: 'Ext.data.Model', fields: [{name: 'user_id', type: 'int'}, {name: 'user_name', type: 'string'}] }); What do I have to do in order to automatically create this model, based on the content of a json response from the server? 回答1: In order to have the model created automatically, you need to include the metaData field with your Json data. metaData can be used to describe all of the fields for the Model. In the

ExtJS + NodeJS mvc application

元气小坏坏 提交于 2019-12-12 16:05:05
问题 I would like to ask about use ExtJS inside NodeJS environment, I tried some node modules but no one allow me to create the application of extjs using thier mvc structure (I mean using Ext.application) do anyone have any luck with this? Regards. 回答1: Ordinary build of ExtJs will not work. ext-core-debug.js uses window and another browser builtin objects. To make it work you'll need to make some fakes: window , navigator , etc. 来源: https://stackoverflow.com/questions/13526318/extjs-nodejs-mvc

extjs apps on iphone

廉价感情. 提交于 2019-12-12 15:44:20
问题 This is an extjs single-page application which works fine in FF, IE, and Safari. There are several problems with viewing or using this extjs app in the iphone. The extjs panels/windows do not resize, as it would in a normal screen. When the user zooms out, the expanding viewing area is blanked out. An example image is below: Iphone does not recognize the combo box of the extjs. Unable to scroll down. Viewport Issue: The main issue is with the viewport. It does not scroll or zoom properly in

Ext Js Combo Filter by distinct items

心已入冬 提交于 2019-12-12 15:21:56
问题 I have two requirement to bind the EXT Js combo -- The first Item in the combo should have the fixed text such as "Unfilterd" -- After that I need to bind the data store to the above combo. The datastore has repated columnA values, so how can filter the datastore so that it has distinct rows in a columnA before binding the combo. Note: I am using the data store to bind the grid panle aswell, I do not want to create another call to database. That's the reason why I am looking for a solution to

Switch from textfield to displayfield with ExtJS4

狂风中的少年 提交于 2019-12-12 15:08:44
问题 I have created a form that displays values in plain displayfields. There is an "edit" button next to the form and once clicked by the user, the displayfields should switch to being textfields and will, therefore, make the data editable. This, I am guessing, would be achieved by having two identical forms, one editable and one not and one or the other would be visible, based on the user having clicked the button. Another way, perhaps, is to have the xtype dynamically selected upon clicking the

Curly Bracket Variable in Javascript

半城伤御伤魂 提交于 2019-12-12 15:01:19
问题 I have come across this a lot in ExtJS and I was wondering where it's coming from I have an example like this: view: new Ext.grid.GroupingView({ forceFit:true, groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})' }), Where is {text} coming from in this function? It's not been set like var text; anywhere in the script. Can I manipulate it like a normal string? Any insight on this would be helpful, Thanks 回答1: That's a template. Somewhere in the rest of the