extjs

How do I install/use Extjs extensions and plugins

Sorry for the newbie question, but how do I install or go about using an Extjs Extension or plugin I found through the extjs forums? ...

How to apply a MVC architecture to a ExtJS project ?

Hello, I would like to build a web project, using ExtJS, the famous javascript library. The goal is to use only ExtJS (and some CSS and HTML) to build the entire client-side web application. I also would like to apply a Model-View-Controller structure to the code of this project. First question: is it possible and pertinent to apply su...

Adding an event listener to an iframe

Is it possible to add an event listener to an iframe? I've tried this code, but it doesn't seem to work: document.getElementsByTagName('iframe')[0].contentWindow.window.document.body.addEventListener('afterLayout', function(){ console.log('works'); }); I've also just tried using getting the element by id and adding my li...

Using Ext.Msg.Alert in Asp.net

Ext.onReady(function(){ if (Ext.get('ctl00_ContentBody_txtCM').dom.value == "") { Ext.MessageBox.alert("Status", "You have input CM!", function() { Ext.get('ctl00_ContentBody_txtCM').focus(); } ); } when submit button,it postback server before...

jQuery equivalents to ExtJS functions extend(), apply() and namespace()?

ExtJS provides some great helper functions like: Ext.extend() Ext.apply() Ext.namespace() Are there any equivalents in jQuery? I know I could port all three to jQuery since I like them so much, but maybe I'm missing something that's already there. I would like to avoid mingling with prototypes myself if possible. Endresult Ext.app...

extjs xml tree example that I put into the layout-browser example provided by extjs

Below is a javascript variable that I'm using to load into the layout-browser...you will notice the listener section is commented out...when I uncomment this section the layout-browser and the tree do not show up. When I comment out the listener section, the layout-browser and the tree work fine with the exception of the listener populat...

Amcharts rendering data incorrectly.

I have a setup where I am using amcharts that is feed data via appendData from an AJAX call. The call goes to a URL which simply renders the Time.now as the X and 8 lines using the function 2cos(x/2)+2ln (ln is the line number). AJAX request is made every 1 second. The backend is always correct and always returns a single point, unles...

Force a download of a text file in IE7 using javascript

Saw a similar question at http://stackoverflow.com/questions/349067/download-a-file-using-javascript but this one is specific to IE and I'm using extjs and alfresco (opsoro). I can get a download prompt for text files fine in Opera, Chrome, and Firefox, but not IE. Below is a list of what I've tried so far, which all work on other br...

Drag-and-Drop GridPanel rows in Coolite

Coolite has excellent support for Grids, and the GridPanel control has an obvious property: EnableDragDrop. But after a lengthy search through the forums and given examples, I have yet to come across a good example that demonstrates a fairly simple task: drag-and-drop rearranging of rows in a normal GridPanel. Has anyone implemented dr...

Extjs unpress button

Hello. I have an ExtJS button like this: new Ext.SplitButton({ text: 'Index', iconCls: 'index', scale: 'large', iconAlign: 'left', cls: 'header-item', handler: leftPanelNav, // handle a click on the button itself menu: new Ext.menu.Menu({ items: [ // these items will render as dropdown ...

ExtJS mask panel while actions are made

Hello. I have an Ext west panel from my viewport and I have a handler on a button that first removes all elements from west then ads another element, then does a doLayout(). So there are 3 things this function does on the click of the button. I would like to add a mask to the west panel when the button is clicked and unmask after all 3 t...

ajax framework should I go for extjs or raxan?

jquery- Definitely a great choice for DOM manipulation, and have lot of libraries. extjs 3.0- http://www.extjs.com they mentioned many big companies also using it. I seen their interface all great! raxan framework- http://raxanpdi.com Guys, any idea on this? Sounds good too. YUI? I heard that YUI is less troublesome than extjs, more s...

CheckboxSelectionModel : How to check rows by default ?

Hello, I have an EditorGridPanel with a CheckboxSelectionModel. In the Ext.data.Source binded to this grid, I have a boolean value saying if the Checkbox of the rows should be checked by default or now. How can I have a list that appears by default with the default Checkbox values correctly set, this based on the data value ? Thank...

tinyMCE with ExtJs, not defined error

I'm trying to implement a tinyMCE editor into an ExtJs environment. But it's not going well. First things first: Include the necessary scripts. <script src="js/jquery-1.2.1.min.js" type="text/javascript"></script> <script src="ext-2.3.0/adapter/jquery/ext-jquery-adapter.js" type="text/javascript"></script> <script src="ext-2.3.0/ext-...

How to get a value from a combobox in a form after the field is populated by the database

I have a formPanel with two of the form items as comboboxes with their stores populated by the database. The value from comboBoxA needs to be used to get the value for comboBoxB however comboBoxA.getValue() (as well as getRawValue()) are returning undefined. storeA.load(); var comboBoxA = Ext.getCmp(comboBoxAID); storeB.baseParams.Use...

Large data accociation javascript widget

I am looking for a searchable multiple select javascript widget that can handle filtering large amounts of server-side data for a 1-n relationship. For instance I have a category and I want to be able to filter through an unassociated list of products and attach them to the category in a user friendly way. I don't want the unassociated...

ExtJS CheckboxSelectionModel creates two checkboxes??

Hi I've just noticed that my extJS grid,which uses a CheckboxSelectionModel, actually shows two checkboxes in the left most column. If I make the column wider, I can see it. The extra checkbox becomes checked when I tick a row. This also happens in the built in demos and everywhere an extjs grid uses a checkboxselection model. I'm not ...

I need ideas on displaying categories for a listing

I need ideas on assigning categories to a listing. The categories will be something similar to what Ebay does. Amazon and the other sites have similar categories for listings. I have a lot of categories and Sub-Categories upto 4 levels deep, like Home & Garden > Kitchen > Small Appliances > Coffee Machines Computing > Networking > Ser...

Programmatically set an Ext.TextField to be valid

I have made my own custon vtype which performs an ajax request to check if a username is available in the database: Ext.apply(Ext.form.VTypes, { username: function(val, field) { var conn = new Ext.data.Connection(); conn.request({ url: '/account/CheckUsernameAvailability', params: { "username...

Ext is not defined

I'm trying to implement a TinyMCE plugin with ExtJs, with a demo as example, found here: link. This fails because I receive an "Ext is not defined" error in Firebug. I basically copied the example, I only used a newer version of Ext. First of all the css and scripts are included: <link href="scripts/extjs/resources/css/ext-all.css" rel...