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

Grid and relative positioning

5 Answers 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Grzegorz Żydek
Top achievements
Rank 1
Grzegorz Żydek asked on 29 Mar 2010, 04:01 PM
Hi,

I have radgrid wrapepd by div with relative positioning css attribute.

The problem is: page size listbox or filter listbox showup in wired places.
When i remove relative positioning everything looks fine (but I need this positioning to my page layout look good)

Any help?


Cheers, Grzesiek

5 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 30 Mar 2010, 07:29 AM
Hello Grzegorz,

I can't seem to reproduce this. Here is my test page:

<%@ Page Language="C#" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
<head runat="server">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>RadControls</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
 
<div style="position:relative;top:200px;left:200px">
 
<telerik:RadGrid
    ID="RadGrid1"
    runat="server"
    Width="800px"
    Skin="Office2007"
    AllowPaging="true"
    PageSize="2"
    AllowFilteringByColumn="true"
    DataSourceID="XmlDataSource1" />
 
</div>
 
<asp:XmlDataSource ID="XmlDataSource1" runat="server">
    <Data>
        <nodes>
            <node Column1="value 1 1" Column2="value 1 2" />
            <node Column1="value 2 1" Column2="value 2 2" />
            <node Column1="value 3 1" Column2="value 3 2" />
            <node Column1="value 4 1" Column2="value 4 2" />
        </nodes>
    </Data>
</asp:XmlDataSource>
 
</form>
</body>
</html>


Greetings,
Dimo
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
Grzegorz Żydek
Top achievements
Rank 1
answered on 30 Mar 2010, 09:58 AM
Hi,

Thanks for quick response.

Please check this code (I put form with radgrid into relative positioned div):

<%@ Page Language="C#" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  
<html xmlns="http://www.w3.org/1999/xhtml"
<head id="Head1" runat="server"
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> 
<title>RadControls</title> 
</head> 
<body> 
 
<!-- I PUT FORM WITH RADGRID INTO THIS RELATIVE POSITIONED DIV --> 
<div style="position:relative;top:20px;left:20px;"
 
<form id="form1" runat="server"
<asp:ScriptManager ID="ScriptManager1" runat="server" /> 
  
<div style="position:relative;top:200px;left:200px"
  
<telerik:RadGrid 
    ID="RadGrid1" 
    runat="server" 
    Width="800px" 
    Skin="Office2007" 
    AllowPaging="true" 
    PageSize="2" 
    AllowFilteringByColumn="true" 
    DataSourceID="XmlDataSource1" /> 
  
</div> 
  
<asp:XmlDataSource ID="XmlDataSource1" runat="server"
    <Data> 
        <nodes> 
            <node Column1="value 1 1" Column2="value 1 2" /> 
            <node Column1="value 2 1" Column2="value 2 2" /> 
            <node Column1="value 3 1" Column2="value 3 2" /> 
            <node Column1="value 4 1" Column2="value 4 2" /> 
        </nodes> 
    </Data> 
</asp:XmlDataSource> 
  
</form> 
 
</div> 
 
</body> 
</html> 

Is there a solution for this problem?

Thanks in advance, Grzesiek
0
Dimo
Telerik team
answered on 30 Mar 2010, 01:54 PM
Hello Grzegorz,

Why do you need to place the relative div outside the form, can't it be inside it?


Dimo
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
Grzegorz Żydek
Top achievements
Rank 1
answered on 30 Mar 2010, 02:11 PM
Hi,

I'am developing application in asp.net mvc, but I only have Telerik ASP.NET Ajax components.

I use "form runat=server" tag only if I really have to, so I don't want to place it in my master page view, but if thers is no solution to that problem, I will warp all body content with this tag.

Thanks for your help, any other suggestions about that problem will be appreciated.

Grzesiek
0
Dimo
Telerik team
answered on 31 Mar 2010, 08:20 AM
Hi Grzegorz,

I am afraid I cannot provide an alternative workaround at the moment. We will need some time to research why the calculated location of the popups is incorrect. Sorry about any inconvenience caused.

Greetings,
Dimo
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
Grid
Asked by
Grzegorz Żydek
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Grzegorz Żydek
Top achievements
Rank 1
Share this question
or