Search:

Type: Posts; User: jasewell

Page 1 of 2 1 2

Search: Search took 0.07 seconds.

  1. How to make cellediting tab skip the actioncolumn?

    I'm in 6.0.1 Classic. I have a Grid using the Spreadsheet selection model and the cellediting plugin. And the summary feature, if that matters somehow. The grid has three locked columns and a...
  2. Model associations only come into play if you're...

    Model associations only come into play if you're using data that is structured that way. If you do have data that naturally breaks up into things that "have" and/or "belong to" other things, using...
  3. Replies
    1
    Views
    519

    Ext.addBehaviors onadded event?

    We've got some code that automatically creates a custom toolbar in divs with a particular class. Currently it's inside Ext.onReady() and it's using Ext.select() to get all the relevant divs. The...
  4. (edited for spelling and swapped php tags for...

    (edited for spelling and swapped php tags for code tags)
    This did not produce the desired behavior.
  5. Collapse tool placement on collapsed panel headers with icon

    Sample code:


    Ext.create('Ext.panel.Panel', {
    title: 'Outer',
    width: 600,
    height: 200,
    layout: 'border',
    renderTo: Ext.getBody(),
    items: [{
  6. Replies
    9
    Views
    1,674

    Is there a reason that passing a waitMsg config...

    Is there a reason that passing a waitMsg config option to your form.submit() action wouldn't work?
  7. I was thinking something like this: ...

    I was thinking something like this:


    defaults: {
    listeners: {
    render: function(me) {
    if (me.xtype == 'textfield')
    ...
  8. Nevertheless, friend's point about using all...

    Nevertheless, friend's point about using all xtypes is valid. I think what's happening is an id collision in your menus, since the id property is generated once and only once, when...
  9. Depending on where you start the process, you may...

    Depending on where you start the process, you may not be able to count on having as many levels of inheritance as you expect. In other words, you should check to see if p.parentNode is truthy before...
  10. Replies
    11
    Views
    9,627

    Well, in this case n is a stand in for the...

    Well, in this case n is a stand in for the "index" of the record you want from the store. I'm putting index in quotes because I don't want to get hung up on whether the actual record actually has a...
  11. Well I don't know what your error is, but the...

    Well I don't know what your error is, but the following lines:

    p.parentNode.set('checked', !!pChildCheckedCount);
    p.set('checked', !!pChildCheckedCount);
    have no business being in the...
  12. Yeah. Don't use the shorthand array syntax for...

    Yeah. Don't use the shorthand array syntax for the grid's columns config item, but treat it as a full fledged config for the header container.

    Ext.create('Ext.grid.Panel', {
    title: 'Important...
  13. The function created by dateRendererer expects a...

    The function created by dateRendererer expects a JavaScript Date object as input. That's why your first one is working. The second one looks like it's already in your desired format, so perhaps you...
  14. Replies
    11
    Views
    9,627

    Are you using index to find the next record in...

    Are you using index to find the next record in the store? If so, I'd recommend using store.getAt(n) instead. You can count on that continuing to work as you add and remove records.
  15. Short answer: you know how to get to the parent...

    Short answer: you know how to get to the parent of a node, and you know how to loop across the children of a node. Checking the siblings is as simple as setting a variable to 0 and incrementing it...
  16. Replies
    11
    Views
    9,627

    What do you mean when you say the index property...

    What do you mean when you say the index property has been lost? Does the new record not appear in your grid where you expected?
  17. It sounds like you need to check siblings before...

    It sounds like you need to check siblings before setting your parent node. You could step through p's children and add up how many of them are checked, then:

    p.set('checked', !!pChildCheckedCount);
  18. Ext.grid.View has a 'refresh' event. You'd add a...

    Ext.grid.View has a 'refresh' event. You'd add a listener to your grid config like so.


    ...
    viewConfig: {
    listeners: { refresh: function(gridView, eOpt); }
    },
    ...
  19. Replies
    6
    Views
    1,570

    I hadn't thought of that, thanks!

    I hadn't thought of that, thanks!
  20. Replies
    6
    Views
    1,570

    I think that's an equivalent question, provided...

    I think that's an equivalent question, provided we don't count rows you'd have to scroll down to see as "displayed".
  21. Replies
    6
    Views
    1,570

    I could do something like that, yeah. We make a...

    I could do something like that, yeah. We make a lot of use of the grouping and groupingsummary features, which would complicate things a bit, but it's still a solvable problem. I hate to do something...
  22. Replies
    6
    Views
    1,570

    Number of rows currently visible in grid

    Does Ext.grid.View have an easy way to get an answer to the question "Given the current layout of this grid, how many rows are there room to display?"

    Thanks in advance.
  23. A simple workaround

    The workaround I eventually settled on is simpler (with all the good and bad that implies) than the other solutions I've seen to this problem on the forums. Simply put: the parent model has an unused...
  24. Aha! Now that's I've looked it over more closely,...

    Aha! Now that's I've looked it over more closely, yes, it works great. I was looking at CellEditing, and didn't notice that you'd set selectOnFocus on the editor. Thank you.
  25. Not really, no. Let me restate my issue more...

    Not really, no.
    Let me restate my issue more succinctly: Calling selectText() on the textfield created by CellEditing to edit a grid cell causes the field to vanish. I don't know if this is a bug, a...
Results 1 to 25 of 28
Page 1 of 2 1 2