RadPanel with GridViewData Control Groupiing Expanding

4 posts, 0 answers
  1. Anand
    Anand avatar
    13 posts
    Member since:
    Apr 2011

    Posted 06 May 2011 Link to this post

    GridView Data Control inside the RadPanelBarItem .We have data's binded on the GridView Same as on another RadPanelBarItem GridView and grouped.We grouped it.On runtime expanding a group in one gridview other panel with same name also expanding is our original functionality.It works Only second time .


    RadPanelBar controls inside the ItemPanel rendering at the time of first time expanding. So we can retrieve the grid view grouping items after rendering. 


  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 11 May 2011 Link to this post

    Hello Anand,

    Can you please elaborate on your scenario more? I am not sure I understand your issue. Does the following definition illustrates your scenario correctly:
    <telerik:RadPanelBar>
                <telerik:RadPanelBarItem Header="Item 1">
                    <telerik:RadGridView HorizontalAlignment="Left"           
                                               VerticalAlignment
    ="Top"
                                  AutoGenerateColumns="True"
                                  ItemsSource="{Binding}">
                        <telerik:RadGridView.GroupDescriptors>
                            <telerik:GroupDescriptor Member="Name"
                                SortDirection="Ascending" />
                        </telerik:RadGridView.GroupDescriptors>
                    </telerik:RadGridView>
                </telerik:RadPanelBarItem>
                <telerik:RadPanelBarItem Header="Item 2">
                    <telerik:RadGridView HorizontalAlignment="Left" VerticalAlignment="Top"
                            AutoGenerateColumns="True" ItemsSource="{Binding}" />
                </telerik:RadPanelBarItem>
                <telerik:RadPanelBarItem Header="Item 3">
                    <telerik:RadGridView HorizontalAlignment="Left" VerticalAlignment="Top"
                            AutoGenerateColumns="True" ItemsSource="{Binding}" />
                </telerik:RadPanelBarItem>
                <telerik:RadPanelBarItem Header="Item 4">
                    <telerik:RadGridView HorizontalAlignment="Left" VerticalAlignment="Top"
                            AutoGenerateColumns="True" ItemsSource="{Binding}" />
                </telerik:RadPanelBarItem>
            </telerik:RadPanelBar>
    If it does, can you list the steps reproducing the issue? If your scenario is different, can you send us a small sample illustrating it so that we can further investigate the case? Thank you in advance for your cooperation.

    Greetings,
    Tina Stancheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Anand
    Anand avatar
    5 posts
    Member since:
    May 2011

    Posted 12 May 2011 Link to this post

    I have attached the sample application and also the scenario here


    We are trying to Expand the Group header when click on the button "Do Something2" using the Header title.It works only if we expand the PanelBar Item atleast once.

    On load we tried to click the button it will not works as expected.


    Test Scenario 1 (Working)
    1.Run the Application 
    2.Expand Both Panel1 and Panel2 once.
    3.Click the "Do Something2" Button
    4.Its expands both RadGrid Group.

    Test Scenario 2 (NOT Working)
    1.Run the Application
    2.Do not Expand the Panel.
    3.Click the "Do Something2" Button
    4.Now Expand the Panels. (Grid Group not expand)

    http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=423122
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 17 May 2011 Link to this post

    Hello Anand,

    Thank you for the clarification. However in the RadPanelBar the RadPanelBarItems are realized only when they are in the viewport. This is why when a PanelBarItem is collapsed its children aren't realized. In your case before you expand the two PanelBarItems the GridView controls inside cannot be accessed.

    So in most cases what we recommend to our users is to databind all properties that hold the state of the controls inside the PanelBarItems. That way when the controls are realized they will use the data properties to set their own state.

    Unfortunately in your scenario this approach can't be used. Instead you will have to either handle the RadPanelBarItem.Expanded() or the RadGridView.Loaded() event to implement your group expanding logic.

    Regards,
    Tina Stancheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top