Results 1 to 4 of 4

Thread: Colspan for grid, it's possible ?

  1. #1
    Sencha User
    Join Date
    Apr 2009
    Posts
    3
    Vote Rating
    0
      0  

    Question Colspan for grid, it's possible ?

    Hi, I need help for make a grid with colspan feature, I search everywhere how to do but not found...


    Can any body help me out in getting the colspan feature for grid cells ?

  2. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,022
    Answers
    3976
    Vote Rating
    1364
      0  

    Default

    This is not supported. Although there is a PreviewPlugin and an example of it is the paging grid example. http://docs.sencha.com/ext-js/4-0/#!...id/paging.html
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Apr 2009
    Posts
    3
    Vote Rating
    0
      0  

    Default

    thank you for the quick answer but I need play with different colspan (colspan=2, 3, 4,...)

    I have a start of (bad) solution with renderer and data manipulation :

    PHP side, I join number of colspan with my data : data2
    JS side, I make renderer for row :

    Code:
    function renderCell(value, metaData, record, rowIndex, colIndex, store, view) {
    if (value){
    SplitData=value.split(''); metaData.tdAttr = ' colspan='+SplitData[1]; NewValue=SplitData[0];
    } return NewValue;
    }
    With this solution, I have Extjs grid with colspan, but in source I have an overflow of TD.

    Now my problem is to clean DOM (for TD), with afterrender how can I clean overflow TD ( tried with query.select but failed ) ?

    (sorry for my bad english)

  4. #4

    Join Date
    Jan 2012
    Posts
    13
    Vote Rating
    0
      0  

    Default Any Solution?

    You got Any solution?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •