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

[Solved] Load on Demand tabstrip - autogenerated radgrid problem

2 Answers 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kachy
Top achievements
Rank 1
kachy asked on 27 Aug 2009, 07:20 PM
I am using the load on demand tabstrip example with 5 tabs. Each tab has autogenerated grid with column_created event for the column formatting. When the page loads, it loads the grid in first tab properly. When I click on the second tab, the autogenerated grid loads fine. There is a dropdown in the second tab, when the dropdown value changes, radgrid is again generated automatically depending on dropdown selected value. As I understand, whenever any server side event (like Dropdown selected index changed) is executed in second tab or any other tab, all the already loaded tabs will reload. This destroys the radgrid formatting in the first tab or any other loaded tab other than the clicked one. I noticed, during the second tab dropdown selectedindexchanged event, pageload of first tab is fired and also the radgrid_column created event in the first tab, as all the column is ExpandColumn, the formatting of the grid in first page is lost.
Everything works fine for the page except this formatting issue, can u please suggest how that problem can be solved.

Thanks.

2 Answers, 1 is accepted

Sort by
0
kachy
Top achievements
Rank 1
answered on 31 Aug 2009, 06:02 PM
I investigated the problem further. First I thought may be formatting of the grid is gone because of ColumnCreated event firing when the postback/ajax reload occurs in different tab, but that does not seem to be the problem as I tried to remove that columncreated event programatically and attaching the event once again when that particular tab is loaded. Even in this scenario when the columncreated event for the radgrid is not fired when postback occurs in second tab, the formatting of the radgrid in first tab is gone. Do you think this might be the problem with the autogenerated grid, I need to set some particular property or something, please help.

Thanks.
0
Sebastian
Telerik team
answered on 01 Sep 2009, 11:57 AM
Hello kachy,

I suppose that by lost formatting you mean some kind of disturbed rendering for the grid instance - is my assumption correc? If so, in case the tabs are switched on the client without postback, can you check whether invoking explicitly the repaint client method of the grid alleviates the discrepancy?

Alternatively, test whether setting AutoPostBack = true for the tabstrip and ajaxifying the tabstrip and multipage through RadAjaxManager instance as shown here produces different result.

If the problem persists, I suggest you post the markup and the code-behind of the page in question using the 'Format code block' dialog from the upper right corner of the forum editor. I will examine your complete code implementation in detail and will get around to you with my findings.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
kachy
Top achievements
Rank 1
Answers by
kachy
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or