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

[Solved] DataGrid "hides" when using master page

2 Answers 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 24 Jun 2008, 11:02 PM
Hello,

I'm currently evaluating telerik RadControls for ASP.NET Ajax.

I'm using a RadGrid inside the <asp:Content /> control along with a master page.

I find that when I use it in this configuration, the top portion of the datagrid control slips "up and behind" the <div>'s (header, menu and submenus at the top of the page)  upon clicking the "edit" or "add" telerik controls in the datagrid. 

The RadGrid control stays  this way even after having saved the edited or new record.

If I then refresh the page the control drops back down and is completely visible again.

I've found that if I remove all reference to the master page and move all of the controls from the master page into the web form (not including the <asp:ContentPlaceHolder /> control) the effect described above does not happen.

Any thoughts?

Thanks,
David

2 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 27 Jun 2008, 09:54 AM
Hello David,

Could you please specify the browser you are experiencing the issue with. Also do you have your Radgrid ajaxified, and if yes, are you using a RadAjaxManager or RadAjaxPanel. They both need to be defined in the master page. Additionally, try setting a certain fixed width in pixels for your Content control and see if the problem persists. If you cannot solve the issue in any way, please consider opening a regular support ticket, where you can provide us a simplified runnable project demonstrating the behavior. Once we can see into the matter, we will be able to advise you further.

Greetings,
Veli
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
David
Top achievements
Rank 1
answered on 28 Jun 2008, 06:50 AM
It happens with both ie7 and firefox.  ie6 is okay....

I opened a ticket and found out this is due to this:

 <!--[if lt IE 7]>
            <link runat="server" rel="stylesheet" href="~/CSS/IE6.css" originalAttribute="href" originalPath="~/CSS/IE6.css" type="text/css" id="IEMenu6CSS" />
        <![endif]-->

which I had tucked away in my master page. 

The solutions are any of the following as quoted from the support reply:

1) In RulesNew.aspx set

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnablePageHeadUpdate="false">

2) Register the CSS for IE6 in some other way, for example by using server-side or Javascript browser detection.

3) Use MS UpdatePanels instead of RadAjaxManager, because the regular UpdatePanels do not update the page <head> anyway.

I opted for the first, and it's working fine!

Thanks,
David
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Veli
Telerik team
David
Top achievements
Rank 1
Share this question
or