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

How to get RadGrid in Expended mode after back from another page ?

6 Answers 156 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manish
Top achievements
Rank 2
Manish asked on 07 Jul 2011, 06:03 AM
Hi,

I have a grid on page1 and it contain the record that can expend. After expend we can redirect on the page2 and on page2 we have a link button "Back to list". I want to ask that is it possible that can i get it back in expended mode when i came to from page2 ?
Please help in this matter as soon as possible.


Thanks
Manish

6 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 07 Jul 2011, 06:58 AM
Hi,

U can use Persisting Grid Settings.
or
u can also expand row with conditionally
protected void RadGrid1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
    if(e.Item is GridDataItem)
    {
        GridDataitem item = (GridDataItem)e.item;
        // check your condition if needed
        item.Expanded = true;
    }
}


Thanks,
Jayesh Goyani
0
Manish
Top achievements
Rank 2
answered on 08 Jul 2011, 08:21 AM
Hi,

I have already used this code in my code but i did't got any result. So i am sending you some screen shots that can be easy for you to understand my problem.

Screenshot1 of page1
Screenshot2 of page2
Screenshot3 of page1 (After come back from page2).



Thanks
Manish.
0
Shinu
Top achievements
Rank 2
answered on 08 Jul 2011, 08:28 AM
Hello Manish,

Try the same approach in this following help documentation to persist grid settings after paging.
Persisting the selected rows client-side on sorting/paging/filtering/grouping.

Thanks,
Shinu.
0
Manish
Top achievements
Rank 2
answered on 08 Jul 2011, 10:33 AM
Hi Princy,

Thanks for your link but I am doing it with the server side coding. So i need some server side solution please help me.




Thanks
Manish.
0
Shinu
Top achievements
Rank 2
answered on 08 Jul 2011, 10:39 AM
Hi Manish,

If you are using server side approach, you can try the same in the following help documentation.
Persisting the selected rows server-side on sorting/paging/filtering/grouping.

Thanks,
Shinu.
0
Manish
Top achievements
Rank 2
answered on 11 Jul 2011, 01:44 PM
Hi Shinu,

Thanks for the help and it works with some changes.
Perfect code....


Thanks
Manish.
Tags
Grid
Asked by
Manish
Top achievements
Rank 2
Answers by
Jayesh Goyani
Top achievements
Rank 2
Manish
Top achievements
Rank 2
Shinu
Top achievements
Rank 2
Share this question
or