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

Saving the dock results into a db

1 Answer 34 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 15 Sep 2008, 03:19 PM
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
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?

1 Answer, 1 is accepted

Sort by
0
Rick
Top achievements
Rank 1
answered on 19 Sep 2008, 01:58 PM
Tags
Dock
Asked by
Rick
Top achievements
Rank 1
Answers by
Rick
Top achievements
Rank 1
Share this question
or