[CLOSED] [1.0] Locking Grid View JavaScript Error

  1. #1

    [CLOSED] [1.0] Locking Grid View JavaScript Error



    I?m receiving a JavaScript error when attempting to lock a column that is not directly beside a column that is already locked. Here is the JavaScript that is causing the issue:



    updateColumnHeadings : function () {
    var view = this.grid.getView(),
    i, len, filter;
    if (view.mainHd) {
    for (i = 0, len = view.cm.config.length; i < len; i++) {
    filter = this.getFilter(view.cm.config[i].dataIndex);
    Ext.fly(view.getHeaderCell(i))[filter &amp;&amp; filter.active ? 'addClass' : 'removeClass'](this.filterCls);
    }
    }
    },


    The getHeaderCell() function is being passed the wrong index (always one greater than the number of headers actually in the grid).


    Please fix when you get a chance. Please let me know if you need a more detailed example. Thanks!
  2. #2

    RE: [CLOSED] [1.0] Locking Grid View JavaScript Error

    Hi,

    Can you reproduce it with the example from Examples Explorer (Ext.Net.Examples\Examples\GridPanel\Miscellaneous \LockingGridView\)?

    If yes then can you provide detailed steps to reproduce the error?
  3. #3

    RE: [CLOSED] [1.0] Locking Grid View JavaScript Error

    Hi vladimir,

    Yes I can. Just add the following to the Ext.Net.Examples\Examples\GridPanel\Miscellaneous\ LockingGridView\ example:


    <Plugins>
    <ext:GridFilters runat="server" Local="true">
    <Filters>
    <ext:StringFilter DataIndex="company" />
    <ext:NumericFilter DataIndex="price" />
    <ext:NumericFilter DataIndex="change" />
    <ext:NumericFilter DataIndex="pctChange" />
    <ext:DateFilter DataIndex="lastChange">
    <DatePickerOptions runat="server" TodayText="Now" />
    </ext:DateFilter>
    </Filters>
    </ext:GridFilters>
    </Plugins>



    Then run the example and try to lock one of the "Change" columns. You will then see the JavaScript error reproduced.


    Thanks.


  4. #4

    RE: [CLOSED] [1.0] Locking Grid View JavaScript Error

    Hi,

    Fixed. Please update from SVN
  5. #5

    RE: [CLOSED] [1.0] Locking Grid View JavaScript Error



    Works great now. Thanks!

Similar Threads

  1. Replies: 7
    Last Post: Mar 27, 2013, 6:07 AM
  2. Replies: 4
    Last Post: Mar 07, 2012, 3:52 PM
  3. Locking Multi Grouping Grid View
    By leon_tang in forum Feature Requests
    Replies: 7
    Last Post: Feb 14, 2012, 10:00 AM
  4. [CLOSED] locking grid view in right side?
    By Suntico in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 19, 2011, 11:38 AM
  5. Replies: 2
    Last Post: Oct 29, 2010, 10:04 AM

Posting Permissions