[CLOSED] Nested Gridpanel's with RowExpander Plugin - prevent rowrefresh after edit

  1. #1

    [CLOSED] Nested Gridpanel's with RowExpander Plugin - prevent rowrefresh after edit

    Referring to this thread: http://forums.ext.net/showthread.php...checkbox-click

    so we have parent Gridpanel wiht CheckBox column and child gridpanel's loaded dynamically.


    Vladimir:

    "Editing row raises row refereshing, it means that row will be rerendered, all previous content which you added to row expander will be lost Therefore you have to rerender the grid inside expander (for example, expand row again)"

    Is there any way to avoid row refeshing???

    Why do we need a roundtrip to the server in order to rerender content that should not be changed at all?


    I've noticed that nested Gridpanel's are not supported but what do you suggest in situations like this?

    Should we use standard HTML input type="checkbox" in a column's renderer to prevent this?


    Thanks
    Last edited by Daniil; Feb 02, 2011 at 10:43 AM. Reason: [CLOSED]
  2. #2
    Quote Originally Posted by deejayns View Post
    Vladimir:

    "Editing row raises row refereshing, it means that row will be rerendered, all previous content which you added to row expander will be lost Therefore you have to rerender the grid inside expander (for example, expand row again)"

    Is there any way to avoid row refeshing???
    Hi,

    In context of GridPanel it's impossible to prevent row refreshing - it's in core of GridPanel.
  3. #3
    Quote Originally Posted by deejayns View Post
    Why do we need a roundtrip to the server in order to rerender content that should not be changed at all?
    I've noticed that nested Gridpanel's are not supported but what do you suggest in situations like this?
    Should we use standard HTML input type="checkbox" in a column's renderer to prevent this?
    Well, you could try something like this:

    Example
    <ext:TemplateColumn Header="Test" DataIndex="Selected">
        <Template ID="Template1" runat="server">
            <Html>
            <input type="checkbox"></input>
            </Html>
        </Template>
    </ext:TemplateColumn>
    But there can be another issues.
  4. #4
    Even I would suggest you to try common Column with custom renderer.

    Example
    var myRenderer = function (value, record) {
        var html = [];
        html.push('<input type="checkbox"');
        if (value) {
            html.push(' checked="true"');
        }
        
        html.push('</input>');
        return html.join("");
    }
    *************************************
    
    <ext:Column Header="Test" DataIndex="Selected">
        <Renderer Fn="myRenderer" />
    </ext:Column>
  5. #5
    Hi,

    Why do we need a roundtrip to the server in order to rerender content that should not be changed at all?
    Grid destroys row markup because renderers must be called to apply new (changed) values. Renderers return new markup therefore old markup is destroyed and new is applied

Similar Threads

  1. Replies: 3
    Last Post: Apr 06, 2011, 6:27 PM
  2. Replies: 3
    Last Post: Dec 15, 2010, 12:55 PM
  3. Replies: 2
    Last Post: May 31, 2010, 5:27 AM
  4. Replies: 1
    Last Post: Mar 09, 2010, 2:57 PM
  5. [CLOSED] GridPanel RowExpander Plugin
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 12, 2008, 7:10 PM

Tags for this Thread

Posting Permissions