This is a migrated thread and some comments may be shown as answers.

RadPanel with GridViewData Control Groupiing Expanding

3 Answers 37 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Anand
Top achievements
Rank 1
Anand asked on 06 May 2011, 08:01 AM

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. 


3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 11 May 2011, 02:31 PM
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
0
Anand
Top achievements
Rank 1
answered on 12 May 2011, 05:09 AM
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
0
Tina Stancheva
Telerik team
answered on 17 May 2011, 05:26 PM
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
Tags
PanelBar
Asked by
Anand
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Anand
Top achievements
Rank 1
Share this question
or