We just recently upgraded to the latest version of Infragistics (we were using a version from 2004 I think). I would add that I didn't write the original code so am not familiar with the Dock Manager so please excuse me. Previously, when a user chose to add notes to a product, the grid listing the products "hid" and the notes dialog took its place. Now, the notes dialog takes over both the grid area, plus the area below it and then some. You can't actually view all of the control because some of it goes off screen. Here is the code where this occurs:
ultraDockManager1.ControlPanes["gridView"].Closed = true;ultraDockManager1.ControlPanes["notesView"].Closed = false;
System.Drawing.Size s = new System.Drawing.Size(300,400);
ultraDockManager1.ControlPanes["notesView"].FlyoutSize = s;ultraDockManager1.ControlPanes["notesView"].Size = s;ultraDockManager1.ControlPanes["notesView"].Settings.AllowClose = Infragistics.Win.DefaultableBoolean.False;
ultraDockManager1.ControlPanes["notesView"].Pin();ultraDockManager1.ControlPanes["notesView"].Dock(DockSide.Top);
Any help would be greatly appreciated.
Thank you,
Susan
Make sure when you right-click the tab control, you right click on the tab area and not the tab page area. If you right-click on the tab page area, only the selected tab page control will be selected and you will not be able to dock the control. You will know if you have right-clicked in the correct area if the entire tab control is outlined. If the tabs are not included in the outlined area, the tab page area has been right-clicked.
I thinkI have figured out the problem, but am now having trouble solving it. Basically, what seems to be happening is that, of the four objects in the form, only three of them are in a DockableControlPane. So, when I hide one of them, the object that is not in a Control Pane, seems to be taking over the space. I am thinking that my problem will be resolved once I put the errant object into a control pane. The problem is that it does not seem to want to go. I think I am following the directions correctly in that I just right click on the object and select "Dock Controls", but I do not seem to get that option. I do for the controls that are already in Dockable Control Panes. It is a Windows Tab Control in case that matters. Could this be the problem or am I doing something wrong? Can I just add the code for this manually and it work instead of going through the menu option? Sorry, I'mnew to Infragistics and am just trying to meet a deadline.
It's tough to say what the problem is from the snippet you have posted. You can try to decrease the size's height before setting it on the Size property of the control pane. I would recommend submitting a sample to the support group where it can be more closely examined to determine the problem: http://ko.infragistics.com/gethelp.