Search Type: Posts; User: Farish

Page 1 of 5 1 2 3 4

Search: Search took 0.04 seconds.

  1. you might be able to do it by overriding the "reposition" method of Ext.grid.RowEditor. check out the variable "left" and setButtonPosition method inside reposition.
  2. you can access it by index as shown above or you can assign an itemId to your button and use .down('#buttonID'). this way, its independent of the index (in case you add or remove buttons later)....
  3. Replies
    3
    Views
    204
    set a breakpoint and try to debug
  4. you can add a listener 'on' load event and then when the event is fired, you can check if your record has been loaded or not. if not, you can load the next page. when you find the record, remove the...
  5. Replies
    1
    Views
    137
    if you do not destroy the grid in first card, it should still be accessible when you change the active item to grid 2.


    var selectedRecord = grid1.getSelectionModel().getSelection()[0];

    should...
  6. Replies
    3
    Views
    204
    i tried it on FF and it worked. which browser are you using? try to debug using Firebug in FF or press F12 in IE or Chrome. see if you get any error message. one possible reason could be that the...
  7. try not to use ids as much as possible. use itemId instead (which doesnt have to be unique app-wide). i cant say exactly what might be causing the problem in your case.
  8. it might help if you posted some of your code.

    check that you arent using an id in your combobox. duplicate ids cause strange visual effects. another thing you can try is to use a name config. not...
  9. your response is not in the right format. "data" is the root element which you have correctly configured but you dont have any fields defined in it. data in your response should be something like:
    ...
  10. what is the response you send back to the store? once the store is loaded, the data in the store will appear automatically in the grid (because the store is bound to the grid).
  11. i think you are getting closer. try using some debugging tool (e.g. press F12 in Chrome to launch it) or install Firebug plugin in Firefox and then you can set breakpoints and observe what is going...
  12. you have defined your components with Ext.define(). you have to create instances of these to use them. You can assign them to a variables and then use those.


    var storeAccounts =...
  13. your code seems fine. what problem are you having? you just have to put the code i gave you where you have the renderer. The only thing you have to change is to replace storeAccounts with your store.
  14. its quite simple. assuming that the userAccount which refers to number field in the 2nd store is unique. you can add a renderer function to that column in the grid:


    renderer: function(val)
    {...
  15. open your app in Chrome and press F12 to launch debugging tools. there you can see the request to fetch data from json file. if the path is not correct, the file wont be found and data wont be...
  16. you can use the column layout: http://docs.sencha.com/extjs/4.0.7/#!/api/Ext.layout.container.Column

    when the columnWidth sum exceeds 1.0, it will automatically move the next component to next row.
  17. its working fine from JSON file also. I am using the following code:


    Ext.onReady(function () {
    Ext.define('Person', {
    extend: 'Ext.data.Model',
    fields: [
    { name: 'id', type:...
  18. if i use the following as tree data:


    var data = {
    "name":"Test",
    "expanded": true,
    "children": [
    { "id": 1, "name": "Phil", "leaf": true },
    { "id": 2, "name": "Nico", "expanded":...
  19. what are you seeing when you load the app?
  20. its probably because the store is not reloaded when you do the getTotalCount() and select(). these should be called after the store has been loaded. you can do that on the load event of the store.
  21. for your 2nd question, you can use card layout and call setActiveItem() method to change the views. For the 1st one, you can do it with CSS (look up dead center positioning). Dont know how to do it...
  22. Replies
    1
    Views
    150
    whats in the field object you receive as an argument? does it have a value property? do a console.log to investigate or your debugging features of Firebug or Chrome (press F12). see whats the value...
  23. Replies
    1
    Views
    153
    I use something like this:


    var drawComponent = Ext.create('Ext.draw.Component', {
    height: 300,
    widht: 300,
    viewBox: false,
    renderTo: Ext.getBody()
    });
  24. one way could be to keep grid hidden when created (hidden: true) and then on the load event of your store, call grid.show();
  25. Replies
    7
    Views
    815
    hmm. it seems to be version dependent. I tried it with 4.0.7 and its working there. you can change the ExtJS version in the API Docs (top left) and then paste the following code into the code editor....
Results 1 to 25 of 117
Page 1 of 5 1 2 3 4