Page 21 of 31 FirstFirst ... 111920212223 ... LastLast
Results 201 to 210 of 304

Thread: [2.0] grid with locking column [NEW: Update 5]

  1. #201
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    Quote Originally Posted by mystix View Post
    translation: @hzwei would like to use the "Grid With Locking Column" ux with the GroupHeaderGrid plugin, but is unsure of how to proceed.
    The GroupHeaderGrid plugin doesn't work with locking columns. That is why I wrote a LockedGroupHeaderGrid plugin (it's based on an older version of the GroupHeaderGrid plugin, so it doesn't have all the features).

  2. #202
    Ext User
    Join Date
    Mar 2009
    Posts
    14
    Vote Rating
    0
      0  

    Default Thanks very much!Another Question?

    ??????????????
    ??????????????????????
    ???????
    ???EXT gridpanel??excel???????????????????????
    Code:
    var vExportContent = grid.getExcelXml();
        if (Ext.isIE6 || Ext.isIE7 || Ext.isSafari || Ext.isSafari2
          || Ext.isSafari3) {
         var fd = Ext.get('frmDummy');
         if (!fd) {
          fd = Ext.DomHelper.append(Ext.getBody(), {
           tag : 'form',
           method : 'post',
           id : 'frmDummy',
           action : 'exportexcel.jsp',
           target : '_blank',
           name : 'frmDummy',
           cls : 'x-hidden',
           cn : [{
            tag : 'input',
            name : 'exportContent',
            id : 'exportContent',
            type : 'hidden'
           }]
          }, true);
         }
         fd.child('#exportContent').set({
          value : vExportContent
         });
         fd.dom.submit();
        } else {
         document.location = 'data:application/vnd.ms-excel;base64,'
           + Base64.encode(vExportContent);
        }?
    ?????????????????????????gridpanel???????gridpanel????????????????????????
    ?????????
    Code:
    window.clipboardData.setData("Text", tableHTML);
      try {
       var ExApp = new ActiveXObject("Excel.Application");
       var ExWBk = ExApp.workbooks.add();
       var ExWSh = ExWBk.worksheets(1);
       ExApp.DisplayAlerts = false;
       ExApp.visible = true;
      } catch (e) {
       if (e.number != -2146827859)
        alert("????????Microsoft Excel???");
       return false;
      }
      ExWBk.worksheets(1).Paste;
    ???????????????????????????????????????????????????????????
    ????????????ext gridpanel????????????????????????????gridpanel???
    Last edited by mystix; 18 Mar 2009 at 6:12 PM. Reason: POST CODE IN [CODE][/CODE] TAGS. see http://extjs.com/forum/misc.php?do=bbcode#code

  3. #203
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
      0  

    Default

    Quote Originally Posted by hzwei View Post
    ??????????????
    ??????????????????????
    ???????
    ???EXT gridpanel??excel???????????????????????
    Code:
    // ... SNIP ...
    ?????????????????????????gridpanel???????gridpanel????????????????????????
    ?????????
    Code:
    // ... SNIP ...
    ???????????????????????????????????????????????????????????
    translation:
    thanks for taking the time to answer. i've managed to solve the problem.
    pardon me for typing only in chinese, as i'm not too good at english.

    i've got 2 more questions i hope you could help me with:
    Question 1) is there any recommended way to export a gridpanel to Excel? i've used 2 methods previously, the first being [ see 1st block of code ] which exports the gridpanel successfully, but doesn't export grouped headers (it only exports the group header at the lowest level). the other method i've tried is [ see 2nd block of code ] which manages to export the grouped headers, but doesn't work reliably across systems (browser??) -- on some the export is successful, on some nothing gets output. is there a reliable cross-system (browser??) way to export grids with multiple headers to excel?

    Quote Originally Posted by hzwei View Post
    ????????????ext gridpanel????????????????????????????gridpanel??
    Question 2) Could you post an example of a gridpanel which can be printed (i.e. one with grouped headers?)

  4. #204
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
      0  

    Default

    @hzwei,
    please run your posts through google translate in future: http://translate.google.com/translate_t#
    i can't be translating everyone's posts.

  5. #205
    Ext User
    Join Date
    Mar 2009
    Posts
    14
    Vote Rating
    0
      0  

    Default I am so sorry!But I hope you can give me the answers

    [ see post #203 -- i've already translated it for you ]

  6. #206
    Ext User
    Join Date
    Mar 2009
    Posts
    2
    Vote Rating
    0
      0  

    Default I found 2 bugs

    hi,I use lockingGridPanel with Ext2.0.2,and I found 2 bugs.

    No.1ee the first image.
    when I resize the column to smaller (first scroll it to right),the header is not synch with the body.
    I have to use grid.on('columnresize',function(){grid.getView().syncScroll();}) to fix it.
    it's ok on Ext2.2.

    No2: see the second and the third image.
    I open the example in IE7 with Ext2.0.2,but there is nothing show in the grid body util I click the header sort it.
    I have to call grid.getView().refresh() after the grid rendered.
    it's ok on Ext2.2.

    Is any one else has the same problem?
    Attached Images Attached Images

  7. #207
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    Quote Originally Posted by yingwuhahaha View Post
    hi,I use lockingGridPanel with Ext2.0.2,and I found 2 bugs.
    There was a major change in the GridPanel/GridView code between Ext 2.1 and 2.2. That is why I needed to create version 5 of the LockingGridPanel.
    As mentioned in the first post version 5 ONLY works for Ext 2.2 and not for previous versions and version 4 only works for Ext 2.1 and below.
    Unfortunately for you version 4 doesn't contain the extra bugfixes I also added to version 5 (so if you want those you have a little code comparing to do).

    ps. For Ext 2.3 (or 2.2.2) and Ext 3.0 I will need to create a version 6, because the GridView code has changed significantly again.

  8. #208
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    Quote Originally Posted by hzwei View Post
    ---chinese text---
    getExcelXml() doesn't know about grouped headers, so you'll have to modify the code yourself so it includes them.

  9. #209
    Ext User
    Join Date
    Mar 2009
    Posts
    14
    Vote Rating
    0
      0  

    Default I don not know how to modify it!

    I don not know how to modify the source code of getGridExcel(),so can you help me?

  10. #210
    Ext User
    Join Date
    Mar 2009
    Posts
    14
    Vote Rating
    0
      0  

    Default Question

    Can you give an example of upload video with ext?
    and can you give me an example of directly print of ext gridpanel?

Page 21 of 31 FirstFirst ... 111920212223 ... LastLast

Posting Permissions

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