So I am creating rad dock zones dynamically and the rad docks dynamically as well.
I want to store in a db the dockzone that the dock is stored in
each dock represents an employee and each zone represents a schedule.
I build each dockzone with this code
I build each doc with this code
So I want to store the UserID and the sched_rec in the database however can't seem to find them or there relationship.
Anyhelp?
I want to store in a db the dockzone that the dock is stored in
each dock represents an employee and each zone represents a schedule.
I build each dockzone with this code
| RadDockZone buildDocs(DataRow dr) |
| { |
| RadDockZone thisDoc = new RadDockZone(); |
| thisDoc.ID = dr["schedule_rec"].ToString(); |
| thisDoc.Height = 50; |
| thisDoc.Width = 280; |
| return thisDoc; |
| } |
I build each doc with this code
| DataView dv = (DataView)SqlDataSource2.Select(DataSourceSelectArguments.Empty); |
| DataTable dt = dv.ToTable(); |
| foreach (DataRow dr in dt.Rows) |
| { |
| RadDock thisDoc = new RadDock(); |
| thisDoc.ID = dr["UserID"].ToString(); |
| thisDoc.Height = 50; |
| thisDoc.DockMode = DockMode.Docked; |
| thisDoc.Collapsed = true; |
| thisDoc.Title = dr["firstName"].ToString() + " " + dr["lastName"].ToString(); |
| thisDoc.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.None; |
| radZoneEmployees.Controls.Add(thisDoc); |
| } |
So I want to store the UserID and the sched_rec in the database however can't seem to find them or there relationship.
Anyhelp?