extjs

ExtJS - Dynamically Format GridPanel rows?

I have records with a boolean value, and depending on the boolean value, I would like the GridPanel's rows to be rendered bold. I'm sure there is a nice GridView style way to do this but I can't seem to find it. Thanks. ...

How to unit test ExtJS or similar JavaScript based interfaces?

Hi, I am using PHPUnit to test my PHP source code, but I need a way to test client-side code, too. I use ExtJS to build rather complex interfaces that call the server for data. I am wondering here is how does one test the UI? ...

How do I hide the top toolbar of a Ext.Panel? (ExtJS 2.0)

Hi, everyone For some reason Ext.Panel.getTopToolbar() is returning an array of objects (the elements of the toolbar, but NOT the toolbar itself) and not an Ext.Toolbar. Because of that, I can't manage to hide an already set toolbar. How should I proceed? Sample code: function (panel) { alert(panel.getTopToolbar()); // displays th...

JavaScript based application work flow -- how does it work?

Hi, I often find myself wondering what is the best way to do a JavaScript based web application. The server may be PHP, Perl or whatever -- but when the client-side is ExtJS or something similar, how do you construct your application? What is the work flow exactly? For example, how is the authentication handled? In a current applicatio...

Content of Ext.Carousel ist not visible

Hello! I have a problem using the Carousel component of the Sencha Touch Framework. I have a component extended from a simple Panel that does the following: var cardItems = []; this.basicCard = new Ext.Component({ scroll: 'vertical', html: 'Hello Carousel 1!' }); this.basicCard2 = new Ext.Component({ ...

restrict edition to one cell in row editorGrid

in my editorGrid i have one column with dateField editor , when the grid is rendred i set that field to non editable : myColModel.setEditable(colIdex,false) it will be editable after the value changed in other cell in the same row myColModel.setEditable(colIdex,true) the probleme is : all the cells in the column are editables h...

scroll multiselect in extjs

hi everyone I have a multiselect component in Ext js 3. I have a number of entries in it. Now i want to select an entry and scroll multiselect to make it visible to the user. I am able to select an entry but i cannot scroll multiselect. I have used dataview component and i do this same function using following: dataviewObj.container.do...

PHP Session is not set using php & EXTJS

Hello, When I call a php file using Ajax, I do this : function logIntoApp(){ Ext.Ajax.request({ url:'php/login.php', params:{ action:'login', email:Ext.getCmp('userLogin').getValue(), motDePasse:Ext.getCmp('passwordLogin').getValue() }, method:'GET', ...

ExtJS: Swapping panels within a parent panel

hi, I am trying to insert a child Panel B (position 1) before a child Panel A(positon 0) in a Parent Panel. This works fine but when I am again reinserting panel B (now in positon 0) after panel A(now in position 1) it does not seem to work. Any Suggestions would be greatly appreciated. Below is the code snippet I am using. ......... ....

ExtJS : How to set combobox id?

Hello guys. I have a little problem. At my application Im always building two linked combobox - country and towns(then country are selected - towns began to load). So i thinked - mbe write a constructor and minimized my code? Ok i did it. But i got a problem: i have 2-3 couple of this linked comboboxes on page and when i selected at sec...

How do I figure out the type of exception I'm getting if I get a read error using Ext.data.DataProxy?

I'm using an Ext.data.JsonReader defined like so: new Ext.data.JsonReader ( { totalProperty: 'totalCount', successProperty: 'success', idProperty: 'id', root: 'data', messageProperty: 'message' }, [{ name: 'id' }, { name: 'a'}, { name: 'b'}, { name: 'c'}, {name: 'd'}, {name: 'e'}, {n...

Is there a publicly available list of possible exceptions that may come when using an ExtJS JsonReader?

I'm having trouble debugging an issue and looking for more information on the possible sources of error with it. ...

How do I include Django 1.2's CSRF token in a Javascript-generated HTML form?

I recently upgraded to Django 1.2.3 and my upload forms are now broken. Whenever I attempt to upload, I receive a "CSRF verification failed. Request aborted." error message. After reading Django's documentation on this subject, it states that I need to add the {% csrf_token %} template tag within the HTML <form> in my template. Unfortun...

ExtJS: focus field

Hi, I have a window containing a form (formPanel). Users can show this window clicking on a button in an ExtJS environment. I would like that when the user clicks the button to show the window, a specific field inside the form contained by the window will focus (by this I mean that the cursor should move to that field so that the user c...

Where can I find good documentation on ExtJS's templates?

Hi, I'm attempting to learn Sencha Touch (and Ext JS, being more of a jquery guy), and I'm struggling a bit with the documentation. For example, I'm trying to figure out how to write templates, but I've found the documentation to be very sparse. For example, this page tells me how to instantiate a template, but not what the syntax look...

EXTJS Writer Grid - removal of row - client and serverside

Hi At the moment when I remove a row - it reappears on the client side - refreshing the page I see it has indeed been deleted Adding a store.reload in the method means it appears again and then disappears when the store is reloaded Any help appreciated // The DataWriter component. var writer = new Ext.data.JsonWriter({ encode : f...

Is there really no way to hook into the reset event of an Ext.js component?

When I reset a form in Ext.js it resets every child component, but the only events fired are invalid and valid. It seems a bit "hacky" to hook them to handle the clearing of a value, is there no other way? The "problem domain" is that I am writing a plugin to create dependent comboboxes: Ext.plugins.combobox.DependsOn = function(depends...

Accessing value from ExtJS Radio button

So I declare an ExtJS radio button object like this: .AddExtObject("{xtype:'radiogroup', ref:'../AndOr', defaults:{name:'rdo-payee2'}, width:120, items:[{boxLabel:'And', checked:true, inputValue:'and'},{boxLabel:'Or', inputValue:'or'}]}") When I do this: if (checkWin.Payee2.AndOr.getValue() == 'and') { fundingRec.set(...

File upload using EXTJS and PHP

I upload my file using EXTJS and it's saved in the server the problem is that I can't get a success function or even the waitMsg is always running Here is the Code EXTJS code : var fp = new Ext.FormPanel({ fileUpload: true, width: 500, frame: true, title: 'File Upload Form', bodyStyle: 'padding: 10px 10px 0 10px;',...

How to get ExtJS Layout used for Container

Hi, is there a way to find out which layout type is used for a container. For instance. When I use the following code to get a container how can I determine the layout type. comp = Ext.getCmp('<name>'); comp.getLayout(); I only get a layout object but there is no field from the object which tells me the layout type ...