extjs

dynamic url inside a extjs table dont work

怎甘沉沦 提交于 2020-01-06 08:49:39
问题 I have a gridpanel with a subtable inside every row. Im trying to include a double click functionality (if you click 2 times in a row, obtain the id_amenaza and redirent with an url). The code works but if i make double click collapses the row. How can i add this functionality? (or insert an image that acts as a link?) //GRIDPANEL Ext.create('Ext.grid.Panel', { renderTo: 'example-grid', store: amenazaStore, width: 748, height: 598, title: '<bean:write name="informesAGRForm" property=

Getting the form to submit when clicking the submit button

不打扰是莪最后的温柔 提交于 2020-01-06 08:29:10
问题 I'm trying to submit the form when the button is clicked, however it wasn't as simple as i thought, i always end up getting a fp.getForm is not a function, although the submit handler is taken directly from the ExtJs doc, any clue? Players.panel.Subscription = function(config) { config = config || {}; Ext.apply(config,{ border: false ,baseCls: 'modx-formpanel' ,process: 'mgr/player/getSubscribers' ,standardSubmit: true ,url: Players.config.connectorUrl ,baseParams: { action: 'mgr/player

ExtJS 4 treepanel with checkbox issue

时间秒杀一切 提交于 2020-01-06 08:24:08
问题 We are using treepanel with check box in our application.It seems like: var treepanel = { id : 'tree', xtype : 'treepanel', store : layerStore, rootVisible : false, listeners : { checkchange : function(node,check){ if(node.get('id') == 'teacher'){ alert('you have selected teacher node'); }else if(node.get('id') == 'student'){ alert('you have selected student node'); } } } }; LayerStore code: var layerStore = Ext.create('Ext.data.TreeStore',{ root : { children : [ { text : 'teacher layer', id

How to form the folder structured tree in EXTJS?

我们两清 提交于 2020-01-06 05:23:33
问题 Can anyone give the coding for the formation of folder structured tree in EXTJS ? how can i make it ? can anyone help for the coding of the same ? 回答1: http://dev.sencha.com/deploy/dev/examples/tree/reorder.html Ext.onReady(function(){ // shorthand var Tree = Ext.tree; var tree = new Tree.TreePanel({ useArrows: true, autoScroll: true, animate: true, enableDD: true, containerScroll: true, border: false, // auto create TreeLoader dataUrl: 'get-nodes.php', root: { nodeType: 'async', text: 'Ext

How can I convert frm php to c# or json? [closed]

心已入冬 提交于 2020-01-06 04:57:12
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 months ago . I am using the browser-layout example for my application I'm trying to add a two trees to it. I'm trying to define the twotrees in a separate file, my main file is the layout-browser.js and i need to add this (and others) in the tabs I have in it. The problem is that I'm using

Spring and ExtJS “400 Bad Request” with PUT but not with POST

蹲街弑〆低调 提交于 2020-01-06 04:30:32
问题 I'm trying to send parameters with PUT from JavaScript to a Spring application. Here is the @RequestMapping in a Spring Controller: @RequestMapping(value = "toggle-paid-action", method = RequestMethod.PUT) @ResponseBody public final String togglePaid(@RequestParam final int year, @RequestParam final String docType, @RequestParam final int number) { And here the JavaScript snippet that is supposed to send those parameters. Ext.Ajax.request({ params: {year: year, docType: docType, number:

Modal ExtJS Window not masking everything behind it in Safari and Chrome

岁酱吖の 提交于 2020-01-06 02:58:27
问题 I was wondering if somebody could help me with this problem. Everytime I show an Ext.Window with its modal config set to true, in FF and IE, it works fine, i mean everything behind the popup window is masked, whereas in Safari and Chrome, it doesn't. When i try to scroll down the page, I can see the mask is limited, which is not what i wanted to happen because one can easily do some stuff on the parent page even when the window is not yet closed. Can somebody help me? Thanx in advance. :D 回答1

How to change cursor image in ExtJS 4.1

混江龙づ霸主 提交于 2020-01-06 02:35:08
问题 In ExtJS 4.0.2a I could change the cursor image over a grid using: body.setStyle('cursor','move'); This doesn't seem to work in 4.0.7 or 4.1. I don't get any css error but it does give an unnatural lag at the point where the change should occur. Maybe it gets overridden? UPDATE: I am trying to run this from a grid onitemmousedown event. I found that the GridView gets a class ".x-unselectable" to make grid text unselectable (which I want). However in ExtJS 4.0.7 and 4.1 this ".x-unselectable"

Non-store value ExtJs

…衆ロ難τιáo~ 提交于 2020-01-05 23:47:12
问题 So I'm trying to create an 'abnormal' combobox using ExtJs 4 and I'm running into a slight issue which I can't figure out how to resolve. I got the basics down with the code that follows. As of right now I am able to get the dropdown to show all the addresses in a proper format and when I click on the proper address it properly shows the 'Street1' value in the input. Here is what I'm stuck on: I'm trying to add an initial item to the combobox that basically says something like 'Add New

Changing scroll-bars in ExtJs

[亡魂溺海] 提交于 2020-01-05 21:01:09
问题 I'm using ExtJs and trying to change look of the default scroll-bars (for Grid Panel). I tried using jScrollPane, but it's not working at all with ExtJs. Is there any way to change look of default look of scroll-bars in ExtJS. I wont to achieve look similar to jScrollPane Thanks! 回答1: I stumbled across this post while looking to implement jScrollPane on the extjs 4.0.7 grid I couldn't find anything else suitable, and I now have this terrible hacky way of doing it: Apply this to your grid