Hello to all ..
I have three rad dock which i am generating dynamically.In first dock there is image( at position-I) in IInd there is a text box(at position-II) and in third there is a label(at position-III)..
string sql = "select ControlName,ControlDescription,ControlPath from Control where ControlId in(select ControlId from ControlZoneRelation where ZoneId=" + zone + ")"+"and ControlPath!='Null'";
DataTable dt = new DataTable();
dt = c1.SelectDT(sql, "dsf");
if (dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
path = dt.Rows[i]["ControlPath"].ToString();
RadDock rad = new RadDock();
rad.DockMode = DockMode.Docked;
rad.UniqueName = path;
rad.Height = 50;
rad.Title = dt.Rows[i]["ControlDescription"].ToString();
rad.Width = Unit.Percentage(50);
DockCommand dd = new DockCommand();
dd.AutoPostBack = true;
dd.Text = "Preview";
dd.Name = dt.Rows[i]["ControlName"].ToString();
rad.Commands.Add(dd);
rad.Commands.Add(new DockCloseCommand());
Label ll = new Label();
ll.Text = dt.Rows[i]["ControlName"].ToString();
rad.ContentContainer.Controls.Add(ll);
RadDockZone1.Controls.Add(rad);
rad.Command += new DockCommandEventHandler(rad_Command);
}
}
}
void rad_Command(object sender, DockCommandEventArgs e)
{
RadDock rad1 = new RadDock();
rad1.UniqueName = ((RadDock)sender).UniqueName;
RadWindow newWindow = new RadWindow();
newWindow.NavigateUrl = "raddockwind.aspx?Zoneid=" + rad1.UniqueName;
newWindow.VisibleOnPageLoad = true;
newWindow.Animation = WindowAnimation.FlyIn;
newWindow.Width = 400;
newWindow.Height = 300;
RadWindowManager1.Windows.Add(newWindow);
}
Now suppose I change position of all the dock at run time means like image at II label at I and so on.....
Now how i determine the position of dock so that when user made some changes and i can save their changed position..and i will save
it in database..
so that when user login again the position should come according to their last set position...
plz help me
Thanks