extjs

Extjs DataView ArrayStore problem

Hi I have the following JS: http://monobin.com/__m1c171c4e and the following code: Code: var tpl = new Ext.XTemplate( '<tpl for=".">', '<div class="thumb-wrap" id="{Name}">', '<div class="thumb"><img src="{ImageMedium}" title="{Name}"></div>', '<span class="x-editable">{Name}</span></div>', '</tpl>', ...

How do I get an ExtJS JsonStore to put the JSON data directly into the request body?

I have a JsonStore configured like so: var store = new Ext.data.JsonStore({ restful: true, url: '/categories', remoteSort: true, idProperty: 'Id', totalProperty: 'total', root: 'results', writer: new Ext.data.JsonWriter({ encode: false }), fields: [ 'Id', 'Name' ] }); I grab some data from ...

ExtJS - Do you find it easier to work with JSON or XML responses?

Hi all, Just a quick question (it's marked as a community wiki) From experiences, have you found it easier to evaluate your ajax responses using XML or JSON when using ExtJS? Which format is ExtJs better for handling? I'm torn between them. Thanks! ...

Extjs - Getting more from the server

Hi, Is it possible to get every data from the server? for example, i want to get the columns items from the server Via Ajax/Proxy by sending json string? thanks var grid = new Ext.grid.GridPanel({ store: store, columns: [ {id:'company',header: 'Company', width: 160, sortable: true, dataIndex: 'company'}, {header: 'Price', width: 75, so...

Extjs beautiful synchronous Popup

Hi! Is there a beautiful synchron Popup in extjs, to replace the standard Popup(alert("xyz")) ? ...

ExtJS: Login with 'Remember me' functionality

I'm trying to create a simple login window with the very common 'Remember me' functionality. The login validation is done AJAX style, thus the browser won't remember my input. My approach is to use the built-in state functionality, but how to use it confuses me. Ext.state.Manager.setProvider(new Ext.state.CookieProvider({ expires: ...

Dynamic content in ExtJS Window

TLDR I want to add some dynamic content into an Ext-JS window / popup. Currently I have tried assigning this content to a div and pulling on the innerhtml of that div like: new Ext.Window({ height: 50, width: 160, x: 0, y: 30, layout: "fit...

Selecting elements that do not contain a certain ID using ExtJS

I'm trying to select all the <input> elements of a form except ones with IDs containing the words foo or bar. How can I do this using ExtJS 2.3.0? I've tried the following: Ext.query("select,input:not([id*=foo][id*=bar])", "SomeForm");` ... but it doesn't work. Excluding IDs with foo in them seems to work fine: Ext.query("select,in...

Silverlight vs web 2.0

I understand that silverlight has come a long way since its inception, but I have always struggled to find the business need for silverlight. What are the advantages and disadvantages of silverlight 4.0 vs modern html5 and javascript libraries like jQuery or ExtJS? Should i use silverlight or a combination of html5 and javascript for my...

itemdoubleclick event in ExtJS Charts

Hi all, I got a strange issue today while working on ExtJS charts. I am trying to use some of the events for the chart when user clicks on the chart items. I found the following events are available: itemclick, itemdoubleclick, itemdrag, itemdragstart, itemdragend, itemmouseover, itemmouseout Here is my test chart where I have impleme...

Ext Gwt and ExtJs View Part - Interchangeable?

Just watched the Google I/O 2010 Expense application demo showing the features and advantages of new widgets in GWT2.1 , In a simple jee web app built using spring and hibernate - for the View part if one uses ExtJs and then replaces with ExtGWT or with GWT - how easy is the View part replacement. What are the pros and cons for going w...

Create Autosizeble panel with panels inside

Hi, guys :) Sorry for not very clear question title, but maybe image will help to describe my ploblem: I want small child panels in parent panel to be autosizeable. Here is my markup and codebehind: protected void Page_Load(object sender, EventArgs e) { var bkg = new[] { "background-color: wheat;", "backgr...

ExtJS (Grid): How do I traverse the data of a Grid

I need to validate information from a grid: - check if all the rows that have the "required" column set to "Yes", have the "Status" column set to "Received". How do I traverse the data of the grid? ...

Multiselect combobox with ExtJs

How do you implement a multiselect combobox as part of a Ext.FormPanel using ExtJs? I've been looking, but can't seem to find a solution that is compatible with the latest version of ExtJs (this question is similar, but doesn't have a working/current solution). This is what I have so far, but it's a single select: new Ext.FormPanel({ ...

Return extra data besides tree data from ExtJS TreeLoader dataUrl?

I asked this question in the Ext JS forums, but I received no responses, so I am asking here. I have a TreePanel (code below) that uses a TreeLoader and an AsyncTreeNode. In my API method specified by the TreeLoader's dataUrl, I return a JSON array to populate the tree. This works great, of course. However, I need to return an addition...

Change ExtJS Grid Height in Javascript

How can I point at the object of a ExtJS Grid and manually set the height (in pixels)? For example, with this same: var grid = new Ext.grid.GridPanel({ store: store, columns: [ {id:'company',header: 'Company', width: 160, sortable: true, dataIndex: 'company'}, {header: 'Price', width: 75, sortable: true, rendere...

ExtJS FormPanel Change labelWidth after adding fields dynamically

Hi, I have a dynamic FormPanel where I need to set the label width after I have loaded in all the fields. I have tried using this.labelWidth = 200 before calling this.doLayout but it's ignoring the new value. Can someone tell me where I can set this and redraw the form, thanks. ...

Extjs combobox - doQuery callback?

Hi there, I'm using the following combobox: var cb = new Ext.form.ComboBox({ store: someDs, fieldLabel: 'test', valueField:'name', displayField:'name_id', typeAhead: true, minChars: 3, triggerAction: 'query' }); So wh...

How do I change the radio button icon in extjs?

I have two Ext.menu.CheckItem's in a group. How would I change the checked item's disc icon to something else? I would like to retain the radio button functionality (only one selected), but have a check mark instead of the disc. var options = new Ext.Button({ allowDepress: false, menu: [ {checked:true,group:'labels',text...

Is this scenario in compliance with GPLv3?

For arguments sake, say that we create a web application , that depends on a GPLv3 licensed component, lets say Ext JS. Based on Section 0 of the license, the common notion is that the entire web application (the client side javascript) falls under the definition of a covered work: A “covered work” means either the unmodified Progra...