extjs

How to get data into an EXTJS Grid Panel using json and sql

我只是一个虾纸丫 提交于 2019-12-13 07:38:38
问题 I am trying to display a gridview in extjs. That data is collected from sql db. I have a query to get the data from sql db in my GridViewController() but I am not sure on how to save those data in an array and then encode it as JSON and send the data back. my gridviewcontroller public string writeRecord() { Response.Write("Survey Completed!"); SqlConnection conn = DBTools.GetDBConnection("ApplicationServices2"); string sqlquery = "SELECT Q1, Q2, Q3, Q4, Improvements, Comments FROM myTable";

ExtJS 5 combobox - submitting both value and text

泪湿孤枕 提交于 2019-12-13 07:16:45
问题 I'm trying to get a simple combobox in ExtJS 5 to submit both the value and text of the selected element. From everything I've read it seems like this should work if I include the hiddenName property for the combo but I cannot get it to submit both. Here is the relevant combobox config: name: 'myCombo', hiddenName: 'myComboId', submitValue: true, xtype: 'combo', queryMode:'local', valueField: 'id', displayField: 'state', And here is a jsFiddle with this all set up: fiddle If you look in

load store for List using json

梦想与她 提交于 2019-12-13 07:13:35
问题 Here my code for list using Sencha touch2 , I have a rest service and I need to be able to load my store for my list view.Follows var tab= Ext.create('Ext.List', { width: 320, height: 290, store: { fields: ['ext_xtype','imgURL','arimg'], data: [{ ext_xtype: 'Harry Potter 4', imgURL:'bo.png', arimg:'arrow.png' },{ ext_xtype: 'Iphone5 64gb', imgURL:'mo.png', arimg:'arrow.png' },{ ext_xtype: 'Hill Figure', imgURL:'wa.png', arimg:'arrow.png' }] }, itemTpl: '<img src="{imgURL}" width="35" heigh=

Synchronously loading consider adding Ext.require(…) above Ext.onReady

天涯浪子 提交于 2019-12-13 06:56:32
问题 I've already read this, this, this and this but it didn't give a solution. I've generated a basic application with sencha cmd. I've created a model "Groupe.js", a store "TreeGroupes.js" that is a "collection" of rows of "Groupe.js" (sorry if I'm not using the right words, I hope you know what I mean). Then I've created a view of this collection: Gestion.view.TreeGroupes. And I'm displaying it in my main controller view/main/Main.js. Here's the tree: . ├── Application.js ├── model │ ├── Groupe

scrollbar in jsp with window.open

南楼画角 提交于 2019-12-13 06:25:24
问题 i have a big doubt, i would like to use a scroll in my web, my problem is that i call my web from another web and paint my web in a frame of the original web page, but i need to put a scroll in the frame... to call my web page i use a window.open with the property _self. My problem is that in my the frame it dosent appears the scroll bar. My window open is: window.open("http://lnxntf05:8080/MyMaver/ServletTablaLotes2?usuario="+document.form1.CLAVEUSU.value,'_self'); I put in my window.open

Should I add custom methods to Ext.data.store derived classes

一个人想着一个人 提交于 2019-12-13 06:25:01
问题 I'm totally new to sencha touch and extjs. Here is the scenario: Suppose you have this store that holds the items on a shopping cart: Ext.define('MyApp.store.CardItems', { extend: 'Ext.data.Store', requires: ['MyApp.model.CardItem','Ext.data.proxy.SessionStorage'], config :{ model: 'MyApp.model.QuoteItem', autoLoad: true, autoSync: true, identifer: 'uuid', proxy:{ type:'sessionstorage', id:'card' } } }); I know that in sencha a store is used to bind a list of model items to a grid for example

Browser History with ExtJS MVC

北慕城南 提交于 2019-12-13 06:23:58
问题 I am looking for an example of ExtJs MVC which supports browser history. The example they have on the Sencha site here is not MVC based. The other one I found here uses dynamically loaded views and controller. I imagine the solution is a combination of the 2 approaches. Wondering if anyone has a ready example that I can refer to? 回答1: I managed to put together an example by combining the approaches from the 2 links above. Here is the jsfiddle with the ext js script: http://jsfiddle.net

Ext js event fired or called after renderer

久未见 提交于 2019-12-13 06:19:14
问题 I have a grid column which uses the renderer function. Are the any events fired or called after this? I have tried several ones but they all get called on the whole column and they all fire before the renderer (even event afterrender) thanks in advance 回答1: afterrender only fires once when the column is laid out on the page. It is a basic ExtJS component event that almost all ExtJS components have and doesn't relate to the renderer function used for grid columns. Not totally sure what you're

Is it possible to mix themes in ExtJS 4?

房东的猫 提交于 2019-12-13 06:14:33
问题 I want to have neptune toolbar on classic themed ExtJS website. Is this thing possible ? If so , How ? 回答1: You could create a custom theme derived from a classic theme and you could copy the toolbar styles to your custom theme folder. sencha generate theme my-custom-theme Then, on your project's config file found on project folder /.sencha/app/sencha.cfg , edit/add the following: app.theme=my-custom-theme #app.theme=ext-theme-classic I assume you have generated your project through Sencha

Extjs radiogroup fieldLabel not displaying inside panel

瘦欲@ 提交于 2019-12-13 06:04:05
问题 I am using ExtJs 2.3.0. I have a panel and inside it a radiogroup as follows var testPanel = { xtype: 'panel', border: false, items: [ { fieldLabel: 'Please select ', xtype: 'radiogroup', id: 'id1', columns: 2, vertical: false } ], items: [ { boxLabel: 'Yes', name: 'yes', inputValue: 'Yes', xtype: 'radio'}, { boxLabel: 'No', name: 'no', inputValue: 'No', xtype: 'radio' } ] } The issue is- The fieldLabel 'Please select' of radioBox is not displaying. I am able to see 'Yes'/ 'No' radiobuttons.