extjs

how to show/ hide column in a grid panel

I have a grid panel i need to show / hide columns in a gris panel depending on the value of a checkbox.If the checkbox is cheked i ned to diaplay column in the grid and if it is unchecked i need to hide the column in the grid. Here is my code var chkEnableDisplayResponsibilityForAction = '<%=Session["chkEnableDisplayResponsibilityForAc...

Is it a good idea to combine an Ajax/UI JS Framework (ext,jquery-ui) with an MVC PHP framework (zend, symfony)?

I realize this is a very generic question, but I guess I'm not really looking for a definitive answer. Being new to PHP frameworks I'm having a hard time getting my head around it. Javascript frameworks, especially with UI extensions, seem to have their sort-of MVC-like approach by separating your JS code from your design. It just seem...

URL requests adding POST data to querystring

I am using ExtJS to send an Ajax request to a PHP page on a server, wanting to send the parameters as POST variables rather than in the querystring. I have included a random token in the querystring since we were having caching issues on one of our proxy servers. Ext.Ajax.request({ url: 'ajax.php?action=test&randToken=' + generateRando...

Appending data to GridPanel in ExtJS

I'm stuck with a seemingly simple problem: appending data to my ExtJS Gridpanel. I have a gridpanel with some initial data set up. var myData = [['data1','data2']]; var myReader = new Ext.data.ArrayReader({}, [ {name: 'Col1'}, {name: 'Col2'}, ); var datastore = new Ext.data.Store({ data: myData, reader: myReade...

ext.js is undefined

In my aspx page: <script type="text/javascript"> Ext.onReady(function() { Ext.get('mb1').on('click', function(e) { Ext.MessageBox.confirm('Confirm', 'Are you sure you want to do that?', showResult); }); function showResult() { Ext.example.msg('test'); </script> <div> <asp:Button ID="mb1" runat="server" Text="Button" /> ...

ext js - ColumnModel binding to a complex json object

Hi, I am trying to bind a complex json object (with nested properties) to the column model of a GridPanel. IE: I want to map the grids columns to,say, report.customer_name and report.report_data.customer.desc test data: > { > "success": true , > "total": "1", > "result": > { > "report": { > ...

JQuery vs Dojo vs ExtJS

Possible Duplicate: Which Javascript framework (jQuery vs Dojo vs )? I have very short time to learn any JavaScript framework. Considering the all-in-one solution factor, WebDevelopment-market and availability of written-books, Which should I learn JQuery or Dojo or ExtJS? ...

What's the most JSON you can reasonably expect to decode on the client side

This morning I tried to use ExtJS' JSON decoding facilities against 0.75MB of data, and it crashed FF3. I'm wondering what is the most JSON one can reasonably expect to decode on the client side? This could be using ExtJS, jQuery, other Javascript frameworks or any built-in decoding that Javascript itself may offer. ...

Extjs to call a RESTful webservice

Hello, I am trying to make a RESTful webservice call using Extjs. Below is the code i am using: Ext.Ajax.request({ url: incomingURL , method: 'POST', params: {param1:p1, param2:p2}, success: function(responseObject){ var obj = Ext.decode(responseObject.responseText); alert(obj); }, failure: function(responseObj...

Ext JS -DOM Query question

Ok another DOMQuery question. i think the EXT API docs are a little scarce on this. Inside my FormPanel I have mulitple fieldsets, but need to find the one that has a header title of 'Test Results'. Does anyone know if Ext provides a helper function to do something like this or will i need to do soemthing like formPanel.findByType("fie...

ExtJS Change Event Listener failing to fire

I was asked to post this as a question on StackOverflow by http://twitter.com/jonathanjulian which was then retweeted by several other people. I already have an ugly solution, but am posting the original problem as requested. So here's the back story. We have a massive database application that uses ExtJS exclusively for the client side...

how to build a 3statetree in flex

hi all I want build a 3statetree with checkbox,I had got the resource from cookbook,but I don't know how to use it with json, and how can i click one node then send the request to server and expand the subnode after receive the json data from server. thank you,thank you. ...

Can the ExtJS GridPanel support column groups?

I would like to have a gridpanel with columns that are broken into 2 sub-columns, kind of like this: | Monday | Tuesday | Wednesday | Thursday | | In | Out | In | Out | In | Out | In | Out | | 9 | 4 | 10 | 5 | 8:30| 4 | 10 | 5 | Is this possible with ExtJS? ...

Sorting and Paging issues

Hello, I would like to sort the whole dataset instead of page by page sorting.But for some reason it is sorting page by page instead of the whole dataset.Could you please help me in this issue.Iam using a grouping store. var store = new FMP.AspNetJsonStore({ fields: [ { name: 'AssetID' }, ...

Resetting a datagrid in ExtJs

Hi, I have a button with a working listener in an ExtJs Data Grid. I have a toolbar at the bottom with this reset button. I have no forms however. Hence, what is the code that will reset a data grid on click? I can workaround this by refreshing the page when clicking the button but its more smooth to reset it since there is no re-loadin...

Sorting in grid panel

var store = new FMP.AspNetJsonStore({ fields: [ { name: 'AssetID' }, { name: 'AssociationID' }, { name: 'Image' }, { name: 'StatusName' }, { name: 'ModelName' }, { name: 'IPAddress' }, ...

sorting in asp.net

var store = new FMP.AspNetJsonStore({ fields: [ { name: 'AssetID' }, { name: 'AssociationID' }, { name: 'Image' }, { name: 'StatusName' }, { name: 'ModelName' }, { name: 'IPAddress' }, { name: 'InScope', type: 'boolean' }, ...

Lock row in grid in extjs

How to lock a specific row in extjs. ...

Could not able to render simple Piechart using ExtJs 3.0

I was trying to render a simple piechart using ExtJs 3.0 but could not. Below is the snippet: <div id="ext_grid_panel"> <div id="blackout_tab"> <div id="grid_blackout_current"></div> </div> <div id="gls_tab"> <div id="gls_current"></div> </div> </div> var mainGridPanelWidth = (Ext.IsIE)?'':'width: \'...

Selenium Issues

I have been using Selenium a lot lately (testing an ExtJs app) and while in many ways it is wonderful, there are three things that cause me a lot of grief: Inability to directly click on elements other than buttons. This has led me to write a bunch of Robot code to move the mouse around. That works but is a bit fragile, plus if you tou...