jQWidgets Forums

jQuery UI Widgets Forums Grid N-Nested Grid Problem -initrowdetails

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • bradsymons
    Member

    Hi

    I am pretty new to jqwidgets and am actually just evaluating it to see if it will work as a replacement for an old site I am redoing.

    When it comes to N-nested grid’s i’ve come across a possible problem.

    I may be missing something so please bear with me.

    Lets say we have a 3 tier grid. parentgrid, grid and subgrid.

    The data in each nested grid is dependent on a key in the row if its parent.
    So up front we load ParentGrid, lets say it has 5 rows.
    Then when we expand a row, lets choose row 3. the initrowdetails function is called and we know that we can get the record since we know we are working with the parentgrid, we know its name and initrowdetails gives us the index for row 3.

    So the first nestedgrid is called grid2, lets say this has 3 rows.

    Now.. when we  expand a row on grid2 (lets make it row 1) it renders subgrid0
    BUT, I am unable to know which grid actually called the initrowdetails function, so there is no way to find out  what the key in the record is so no way to tell web method for subgrid1 what data to pull.

    what am I missing? is there some way to say this.jqxGrid(‘getrowdata’, index) for example. where this is the grid that called initrowdetails?

     

     

     

     

     


    Peter Stoev
    Keymaster

    Hi bradsymons,

    The initrowdetails knows only the row’s index. It does not know about the Grid’s instance that called it. I agree that it would be convenient if the initrowdetails knows about the Grid’s instance and we’ll add that functionality in the next version(scheduled for the second half of this month). Thank you for the valuable feedback!

    Best Wishes,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.