extjs

Textfields not selectable in ExtJs grid

Ran into an interesting problem. outputting a GridPanel with a custom render. The renderer outputs a basic html input field, at runtime however I cannot select text in the input. I can edit it, but if I had to click and drag inside the input box, I would not be able to select the text. here's an exerpt: tsGrid = new Ext.grid.GridPanel...

Access ExtJS grid's column model from other file

I have an ExtJS grid that has a button set up in it. The button triggers a function that's defined into other JS file that's included in the grid page. The function triggers ok but in that function I want to get the columns count like this: grid.getColumnModel().getColumnCount() The problem is that I get an error like: grid.getColumnM...

Extjs Form Validtion

Hello everyone, I am using Extjs Ext.form.FormPanel to create a form that will contain some fields like name, company,...,etc. Among the fields will be zip code and phone number, let's take the zip code problem, the zip code could be 5 numbers or 5 numbers plus 4 characters, I don't want to create two separate fields for the zip code, i...

ExtJS: DecodeVaule in PHP

Is there any way that I could enjoy a decodeValue() function in PHP, too? I am posting those encodedValue values to a PHP file and I need to work with them in PHP as an array. How can I end up with a PHP array or something from the encoded state in Ext? Or, is there any other way that I could work the encoded values to be able to easil...

ExtJs Window doesn't render

Hi, Please tell me why my window doesn't render. Below is the javascript that i am using <link href="/Scripts/ext/resources/css/ext-all.css" rel="stylesheet" type="text/css"/> <script src="/Scripts/jquery/jquery-1.3.2.min.js" type="text/javascript"></script> <script src="/Scripts/ext/adapter/jquery/ext-jquery-adapter.js" type=...

ExtJS and the infamous memory leak

What, if anything, do I have to be careful about doing to prevent the infamous IE circular reference memory leak when using ExtJS? I have seen this SO question and this ExtJS forum thread, but I'm hoping for some short checklist of things to do/avoid. ...

How to read JSON from Ruby on Rails with ExtJS

I have some existing projects that were built upon a deprecated PHP framework, and I'm hoping to move them over to Ruby on Rails with minimal effort. My main problem right now is the format that the JSON is coming back in. My frontend code (all ExtJS) is expecting JSON in the format: { "result": [ [id: 1, name: "mike"], ...

ExtJs IE rendering issue

Hi, Below is a simple ext js code that i can't get to work correctly in IE (works fine in Firefox, and Chrome). The problem is that while it initially renders correctly , its messed up if i try resizing the 'west' panel. Can someone please point out the issue var viewport = new Ext.Viewport({ layout: "border", ...

Dynamically add TextAreas to a FormPanel on User Input with ExtJS

Hello. I have a FormPanel displaying a pretty basic form, essentially, it just contains a "Name" field, a "Description" field, and multiple "Rules" text areas. What I want is for the user to be able to type text into the first such Rule text area and have another empty TextField appear (when they start typing) for an additional rule. Cu...

ExtJS: autoLoad does not work in IE

Using ExtJS 2.2.1, I've got a container element which is supposed to load a piece of HTML from the server using: autoLoad: { url: 'someurl' } This works fine in Firefox, but for IE7 this results in a syntax error in ext-all-debug.js at line 7170: this.decode = function(json){ return eval("(" + json + ')'); }; I fixed this b...

Ext Js how to change the xtype dynamically

Hi, I have a border layout whose center panel is defined like the below. { region:'center', id:'Center', layout:'fit', xtype:'gridA' } But on click of some button, I need to change the grid to 'gridB' through javascript programmatically. How can this be done. I tried the following with no succes...

EXTJS: find a tree's node ID by its value.

Hello All, I have an Asynch loaded tree that I am trying to have certain branches expanded when a user does a search. Now I have the data coming back from the server side, but how do I expand (and load if necessary) a specific node of a tree by the value (i don't have the node id) Is there anyway to lookup the node by value? Thanks ...

Getting started with extJS

I don't get what I'm doing wrong. I'm trying to populate a form from a JSON string from the server and it doesn't work. I get nothing at all back. I examine the object and it's undefined. I've been beating my head against the wall for 3 days now. I need a simple example that works and I'll build from there. Here's the simple exampl...

ExtJS direct with ASP.NET MVC

I've been looking at using ExtJS Direct with ASP.NET MVC but it doesn't seem to play too nicely with MVC's routing. Has anyone had any luck implementing it with ASP.NET MVC? I don't want the actual implementation details, just want to know if anyone has been able to actually get it working. ...

ExtJS: how to have a TreePanel with several roots ?

I'm using ExtJS 2.2.1 In my web app, I used to have a TreePanel with a single root, like this: ` |- Colors |- Blue |- Red |- Yellow Now that I've realized that the top-level node does not make sense, I want to remove it and promote its children: ` |- Blue |- Red |- Yellow The problem is, according to the docs, a TreePanel...

Recurrent "Unresponsive Script Warning" on Firefox on one machine

Hello, I have developped a PHP system that is using Javascript with the ExtJS library, which provides graphic components in Javascript. So I have a grid which is refresh every 3 minutes by an AJAX call which reloads the grid. Everything works fine on all computers, except for this one computer where, once in a while when reloading th...

Which serverside Java technology to use with ExtJS

We are plannnig to upgrade the UI framework for our 6-8 year old application written using Struts/JSP/EJB to ExtJS. Just curious as to what is the most popular Java technology on the server people have been using. We were looking into several alternatives like DWR RestEasy Restlet Struts-Json We are diving more towards using DWR but ...

ExtJS PropertyGrid - Dynamically setting source

I am working on a simple PropertyGrid. If I set the source property with some json object at design time, it is displaying properly. But when I tried setting the source data dynamically, it is not displaying data. This is my code: ConceptPropertiesPanel = function() { this.source = { ***// if i set source this way, it will work*...

extjs load image in TreePanel

Hi, i created a Ext.TreePanel and i would have in the node an image, in the text of the node i have the url to the image but i can't load it in the page, i see only the text, there is the possibility to view the image? this is my code var root1 = new Tree.AsyncTreeNode({ text: 'Legenda degli starti PAT', draggable:true, // disable ro...

Ext.Ajax.request callbacks never called when isUpload is true.

Hello, I'm using ExtJS to make a form that generates a report from the data in the database in CSV format. After the user chooses a simple range of dates to extract the data and submits, running the following code : var frm = document.createElement('form'); frm.id = 'frmDummy'; frm.name = id; document.body.appendChild(frm); Ext.Mess...