Search:

Type: Posts; User: jdkhamba

Page 1 of 10 1 2 3 4

Search: Search took 0.04 seconds.

  1. I don't see a need to set the controller on the...

    I don't see a need to set the controller on the button. Controller needs to have a knowledge of the button not the other way round. Take a look at this working example:
    ...
  2. Yes you are exactly right. View has no knowledge...

    Yes you are exactly right. View has no knowledge of this button. There is a workaround for this. You can add the following in your controller:


    listen: {
    component: {
    ...
  3. You can use flex:1 for that column , that will...

    You can use flex:1 for that column , that will take the available space.



    { text: 'Name01234567890123456789', dataIndex: 'name', flex: 1 }
  4. forecasts needs to be an array since it is a...

    forecasts needs to be an array since it is a nested. So you need to convert that to an array:


    var forecastArr =[];for(var prop in forecasts){forecastArr.push(forecasts[prop])}

    It would be...
  5. Replies
    1
    Views
    351

    A little hacky but doable: ...

    A little hacky but doable:

    https://fiddle.sencha.com/#fiddle/1fcq
  6. It is not advisable to use id for Ext components....

    It is not advisable to use id for Ext components.

    id: 'fromDate', etc is probably causing the problem. Get rid of them and it should work.Use itemId instead and ComponentQuery instead of...
  7. Replies
    2
    Views
    156

    The printstore function needs to be called inside...

    The printstore function needs to be called inside the callback.


    store.load(function(records, operation, success) {
    console.log('loaded records');
    printStore(store);
    ...
  8. Replies
    1
    Views
    390

    You probably need to trim the value to check for...

    You probably need to trim the value to check for empty space.


    Ext.application({
    name: 'Fiddle',


    launch: function() {
    Ext.widget('viewport', {
    items: [{
  9. It is really hard to follow what you are doing in...

    It is really hard to follow what you are doing in the jsfiddle you have provided. Also if you are using ExtJS, it is better to use Ext Components for any kind of input. Using "onmouseover" etc...
  10. There is no need to change the index.html file....

    There is no need to change the index.html file. Simply add your css files as resources just like you would add the js files and the fiddle will parse them and stick it in <head>:
    ...
  11. In the example you have provided , the...

    In the example you have provided , the columnWidths add up to more than 1. So it is breaking to a new line. If they add up to 1 , they will be in the same line. Try making each of them as...
  12. You can use findByType provided you have a...

    You can use findByType provided you have a container hierarchy. It is not exactly same as componentquery but close. So you need to make sure that component you are trying to access is part of the...
  13. This is never going to work. There are just too...

    This is never going to work. There are just too many things that are wrong. Take a look at the docs:

    http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.form.field.Trigger

    There is no such thing as...
  14. xtype: 'superdate-search-field' What is this...

    xtype: 'superdate-search-field'

    What is this exactly? Which ExtJS component does it extend from ?
  15. I don't understand your question.

    I don't understand your question.
  16. No you don't. It is instantiated only once during...

    No you don't. It is instantiated only once during definition.You need to create the bbar every time you call Ext.create(your_form_panel), in the same way shown in the fiddle I provided.
  17. I think bbar should not be a part of the...

    I think bbar should not be a part of the Ext.define of the form panel. It should be created on the fly everytime you create an object of the formpanel type. Take a look at this example:
    ...
  18. Please post some code or a working fiddle to...

    Please post some code or a working fiddle to demonstrate your issue as from the description you have provided it is very hard to understand what you are asking for.
  19. Aer you talking about grid column filters? If so,...

    Aer you talking about grid column filters? If so, these are the only events available:

    http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.ux.grid.filter.DateFilter-cfg-listeners

    I am not sure why...
  20. You can use Ext.query instead: ...

    You can use Ext.query instead:


    Ext.query('.x-grid')[0]
  21. That is even easier. Simply put the listener on...

    That is even easier. Simply put the listener on the viewport instead of the item. I have modified my fiddle:

    https://fiddle.sencha.com/#fiddle/1c9p
  22. this.on('render') itself is adding a listener....

    this.on('render') itself is adding a listener. You need to place your "Super dateField" inside the viewport.
    Why dont you start with this basic guide:
    ...
  23. You can simply have a common attribute for all...

    You can simply have a common attribute for all the menu items you want to remove and use componentquery along with remove() to remove them Take a look at this fiddle:
    ...
  24. I am not quite clear what your question is. What...

    I am not quite clear what your question is. What exactly does a date picker have to do with a menu check item?

    Assuming these items are added to an Ext menu, you can simply call remove() method...
  25. Seems to work fine: ...

    Seems to work fine:

    https://fiddle.sencha.com/#fiddle/1c2o

    Can you post a working fiddle to demonstrate your issue?
Results 1 to 25 of 237
Page 1 of 10 1 2 3 4