Search Type: Posts; User: crysfel

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. If you want to use icons inside of a XTemplate you should use inline-icon mixing instead:



    .my-custom-class-with-icon{
    @include inline-icon('minus');
    }
    .my-custom-class-with-icon:before{...
  2. Replies
    1
    Views
    121
    What I usually do in these situations is to create the panel/chart or any other component that I need in the onRender method of the class, this way I can render the component anywhere I want using...
  3. Inside of the html property you can add any HTML code that you want but if you want the text to be dynamic you should use the tpl and data properties instead.
  4. You can try the references:



    Ext.define('YourApp.controller.Main',{
    extend : 'Ext.app.Controller',

    refs : [
    {ref:'grid',selector:'acontainer anotherpanel...
  5. The red triangle appears because the node is marked as dirty every time you change the original value of the field, in order to remove that triangle (or in other words make it clean) you need to...
  6. You need to add a writer to your store, this way every time you add/update/remove a record, the store will synchronize your store with your server.

    Regards
  7. In order to create a new theme and add support for legacy browsers (IE), you need to use images for gradients, rounded corners and so on.

    There's a tool that you can use to generate the images...
  8. The class looks fine, how are you creating the instance?
  9. Instead of harcoding the columns you should create the array of columns dynamically, something like this:



    var columns = [];

    if (attrData.length > 0) {
    for (var prop in...
  10. Yes, it's possible to extend any class in the framework. I do it all the time :D
  11. Replies
    2
    Views
    946
    Sure, there is! Take a look a the Ext.util.Animation class: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.util.Animate



    var p1 = Ext.get('myElementId'); //Getting a dom element by ID
    ...
  12. Will be deprecated also in the request method of the connection class?
  13. Do you have any error on the javascript console?
  14. Use the jsonData parameter instead of the extraParams :D

    Regards
  15. The easiest way to do it is to just make a regular ajax request, create the correct object structure and then load the store.



    Ext.Ajax.request({
    url : 'data.json',
    success :...
  16. You can use the mapping property of the fields to specify the path from the value will be extracted.



    Ext.define('MyApp.model.MyModel',{
    extend : 'Ext.data.Model',

    fields : [
    ...
  17. That's because in IE the components are rendered in different way than on modern web browsers such as firefox or chrome.

    In the case of the buttons, they are rendered (on IE) using a <table> and...
  18. Replies
    6
    Views
    544
    It's very important to have a good knowledge of Object Oriented Programing before start using Ext, that will help you a lot!! ;)
  19. Replies
    10
    Views
    1,256
    You should listen for the cellclick event of the grid and then evaluate if the link was clicked, something like this.



    var grid = new Ext.grid.GridPanel({
    //...
    ...
  20. Replies
    10
    Views
    1,256
    You can use the renderer property on the column configuration:



    {
    text : 'Testing',
    dataIndex: 'something',
    renderer : function(value){
    return '<a href="'+value+'">This is a...
  21. Replies
    8
    Views
    1,457
    You need to create a class for the grid that you want, after that you have to create two instances of that class and render those grids whatever you want. You can share the same store on both grids...
  22. Replies
    3
    Views
    504
    The easiest way to do that is to set some HTML code into the text property on the column configuration, than listen the header click event and take some actions when the user click on each icon. You...
  23. Well... there are many errors on that code (:|

    First of all I recommend you to define the window, grid, store and models in a separate files, not in one single file ;)

    You should use the same...
  24. Once you have your store of authors loaded and configured with the hasMany relationship, you will have for each record a store called books.

    Now, in your grid you need to listen for the...
  25. Try to use the 'vbox' layout instead of the 'fit' layout for the main container. The 'fit' layout only allows you to show one child at the time.

    Regards
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4