[CLOSED] MultiLevel Gridpanel online example not showing all levels - level data gets cut off

  1. #1

    [CLOSED] MultiLevel Gridpanel online example not showing all levels - level data gets cut off

    Hi,
    The MultiLevel Gridpanel example at https://examples2.ext.net/#/GridPane...vel_GridPanel/ is not showing all the rows.
    For example, if you click on Level1:Row5 then click on Level2:Row5, you
    will see that Level3:Row6 and up dispeared and if you click on Level3:Level5, you will NOT see any of the sublevels.
    I attached a screen shot of the problem. Can you provide a fix for it?
    Click image for larger version. 

Name:	multilevelGridMissingLevels.jpeg 
Views:	112 
Size:	25.2 KB 
ID:	4706
    Attached Thumbnails Click image for larger version. 

Name:	multilevelGridMissingLevels.jpeg 
Views:	72 
Size:	24.6 KB 
ID:	4705  
    Last edited by Daniil; Sep 03, 2012 at 7:21 AM. Reason: [CLOSED]
  2. #2
    HI, i have the same problem, but i have insert the grid.height in this part of code and now work...
    I use the V2.1 and the property AutoHeight of GridPanel not exist

    if (level == 1)
            {
                grid.Title = "MultiLevel grid";
                grid.Width = 600;
                grid.Height = 600;           
                grid.ResizableConfig = new Resizer { Handles = ResizeHandle.South };
                            
                this.Form.Controls.Add(grid);            
            }
            else
            {
              //Insert this and the gridpanel work ok
                grid.Height = 100;    
                var renderEl = "row_" + recId;
                X.Get(renderEl).SwallowEvent(new string[] { "click", "mousedown", "mouseup", "dblclick" }, true);
    
                this.RemoveFromCache(newGridId, gridId);
                grid.Render(renderEl, RenderMode.RenderTo);
                this.AddToCache(newGridId, gridId);
            }
    Waiting for a response from the team this can work in V2.1.

    Thanks
    Aurelio
  3. #3
    Hi,

    Thanks for the report.

    Regarding AutoHeight. Yes, it has been removed. For now, please use:
    BodyStyle="height: auto;"
    or
    Style="height: auto;"
    depending on a type of container.

    But it doesn't work with sub-levels.

    I think it needs to set up explicit Height for sub-level grids. Though, we will investigate a possibility to get it auto height, but not sure it is possible.
  4. #4
    Hi Aurelio,
    Thanks for the suggestion but setting grid.height = 100 did not work for me. It was throwing error messages "tableContent" is null lor not an object.
    Below is the screen shot.
    Click image for larger version. 

Name:	tableContentIsNull.jpeg 
Views:	91 
Size:	14.4 KB 
ID:	4712


    Quote Originally Posted by Aurelio View Post
    HI, i have the same problem, but i have insert the grid.height in this part of code and now work...
    I use the V2.1 and the property AutoHeight of GridPanel not exist

    if (level == 1)
            {
                grid.Title = "MultiLevel grid";
                grid.Width = 600;
                grid.Height = 600;           
                grid.ResizableConfig = new Resizer { Handles = ResizeHandle.South };
                            
                this.Form.Controls.Add(grid);            
            }
            else
            {
              //Insert this and the gridpanel work ok
                grid.Height = 100;    
                var renderEl = "row_" + recId;
                X.Get(renderEl).SwallowEvent(new string[] { "click", "mousedown", "mouseup", "dblclick" }, true);
    
                this.RemoveFromCache(newGridId, gridId);
                grid.Render(renderEl, RenderMode.RenderTo);
                this.AddToCache(newGridId, gridId);
            }
    Waiting for a response from the team this can work in V2.1.

    Thanks
    Aurelio
  5. #5
    Hi,
    The issue is with the sub levels. I need a solution for the sub levels so my users can see the entire listing including the ones that got cut-off.
    Can you show me how to add a Div to the sub levels? This way, I can make it scrollable for my users.

    Also, I noticed there is a scroll bar to the right side when the sub levels are very long.
    However, when I try to click on the scroll bar it dispears thus I was not able to click on it and that is another bug. Is there a fix for that one?
    Below is a screenshot to show you what I am referring to:
    Click image for larger version. 

Name:	cut-off-sublevel.jpeg 
Views:	84 
Size:	45.2 KB 
ID:	4713

    Many thanks in advance.


    Quote Originally Posted by Daniil View Post
    Hi,

    Thanks for the report.

    Regarding AutoHeight. Yes, it has been removed. For now, please use:
    BodyStyle="height: auto;"
    or
    Style="height: auto;"
    depending on a type of container.

    But it doesn't work with sub-levels.

    I think it needs to set up explicit Height for sub-level grids. Though, we will investigate a possibility to get it auto height, but not sure it is possible.
  6. #6
    Quote Originally Posted by Fahd View Post
    Hi Aurelio,
    Thanks for the suggestion but setting grid.height = 100 did not work for me. It was throwing error messages "tableContent" is null lor not an object.
    Below is the screen shot.
    It works well for me. I guess you need to update from the 2.1 branch to get it working.

    I think it will also resolve another issue that you are facing with scrolling.
  7. #7
    Yes. You are right. I just upgraded to 2.1 and it is now working. Thanks you!


    Quote Originally Posted by Daniil View Post
    It works well for me. I guess you need to update from the 2.1 branch to get it working.

    I think it will also resolve another issue that you are facing with scrolling.
  8. #8
    Quote Originally Posted by Daniil View Post
    Though, we will investigate a possibility to get it auto height, but not sure it is possible.
    Please set explicit Height.

    But, I think, the "auto height" effect is possible to implement manually - setting height for a row body on client according a count of loaded records.

Similar Threads

  1. GridPanel showing data return Store.Count value 0
    By abhi_sheklohiya in forum 1.x Help
    Replies: 3
    Last Post: Mar 26, 2012, 7:06 PM
  2. GridPanel showing only one column of data
    By HexElffilter in forum 1.x Help
    Replies: 2
    Last Post: Jan 27, 2011, 3:42 PM
  3. Multilevel GridPanel Example not working
    By rajputamit in forum 1.x Help
    Replies: 2
    Last Post: Oct 21, 2010, 9:54 AM
  4. GridPanel not showing all data
    By iltwams in forum 1.x Help
    Replies: 1
    Last Post: Oct 01, 2010, 6:09 PM
  5. GridPanel not showing data with ajaxMethod
    By fabiomarcos in forum 1.x Help
    Replies: 3
    Last Post: Aug 12, 2009, 7:50 PM

Posting Permissions