Hi,
I create dynamically a webDialogWindow with a ultraWebGrid in his contentPane. But the ultraWebGrid width is longer than the webDialogWindow width. Then a scrollBars appears, BUT when I scroll it nothings happen.
Why?
thank you
Gabriel Deschênes
HI,
I could not reproduce your issue. I created a website and dynamically added a WDW and a databound WebGrid - I was able to scroll the grid inside the WDW. I am using the Nwind database.
Here is my aspx page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!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 runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> </div> </form></body></html>
Code_Behind
using System;using System.Collections;using System.Configuration;using System.Data;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using Infragistics.WebUI.UltraWebGrid;using Infragistics.WebUI.WebControls;using Infragistics.Web.UI.LayoutControls;
public partial class Default2 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { WebDialogWindow wdw = new WebDialogWindow(); wdw.ID = "wdw1"; UltraWebGrid uwg = new UltraWebGrid(); uwg.ID = "uwg1";
wdw.ContentPane.Controls.Add(uwg); this.form1.Controls.Add(wdw); DataSet1 dset = new DataSet1(); DataSet1TableAdapters.EmployeesTableAdapter adp = new DataSet1TableAdapters.EmployeesTableAdapter(); adp.Fill(dset.Employees); uwg.DataSource = dset; uwg.DataMember = dset.Employees.TableName; uwg.DataBind();
}}
The scroll will not work in this situation:
...
<ContentPane> <Template> <div id="id1" style="position: relative;"> content </div>
Make sure you did not put relative position to the style of the content element inside the Template tag.
Amir