bhogavalli
Top achievements
Rank 1
bhogavalli
asked on 05 Jan 2011, 07:32 AM
hi team,
I have 4 documents spitted to 4 corners.
How can i get their events in splitting and count of it.
Thank
suresh.
I have 4 documents spitted to 4 corners.
How can i get their events in splitting and count of it.
Thank
suresh.
7 Answers, 1 is accepted
0
Emanuel Varga
Top achievements
Rank 1
answered on 05 Jan 2011, 08:57 AM
Hello bhogavalli,
Sorry, i don't think i understand the question, can you please offer some more details on what you are trying to achieve and what are your requirements?
Best Regards,
Emanuel Varga
Telerik WinForms MVP
Sorry, i don't think i understand the question, can you please offer some more details on what you are trying to achieve and what are your requirements?
Best Regards,
Emanuel Varga
Telerik WinForms MVP
0
bhogavalli
Top achievements
Rank 1
answered on 05 Jan 2011, 09:05 AM
hi team,
i have 4 tabbed Documents opened.Using Drag and Drop i have spitted the documents.
so in side i have 3 tabbed Documents and right hand side 1 document.
I would like to know the foremost tabbed documents opened.
I need to get the FrontDocumentWindows
Thanks
Suresh
i have 4 tabbed Documents opened.Using Drag and Drop i have spitted the documents.
so in side i have 3 tabbed Documents and right hand side 1 document.
I would like to know the foremost tabbed documents opened.
I need to get the FrontDocumentWindows
Thanks
Suresh
0
Richard Slade
Top achievements
Rank 2
answered on 05 Jan 2011, 10:43 AM
Hello Suresh,
You can get the active document by using the following
Hope that helps
Richard
You can get the active document by using the following
Private
Sub
RadDock1_ActiveWindowChanged(
ByVal
sender
As
System.
Object
,
ByVal
e
As
Telerik.WinControls.UI.Docking.DockWindowEventArgs)
Handles
RadDock1.ActiveWindowChanged
MessageBox.Show(e.DockWindow.Name)
End
Sub
' or
MessageBox.Show(
Me
.RadDock1.ActiveWindow.Name.ToString())
Hope that helps
Richard
0
bhogavalli
Top achievements
Rank 1
answered on 05 Jan 2011, 11:23 AM
Hi ,
Its not the Active Document Question.
I am coming again from the beginning.
I have 5 Tabbed Documents .
Using Drag and Drop Service i can split the Document in Different format ,Example: Right ,Left Top and Bottom.
Now i splitted Document1 to top.
Document2 to Bottom.
Document3 to Right.
How to get the Visible Tabbed Documents to user no the hidden Documents. I mean thru code i should get the Documnet1 2 and 3.
Please let me know in C#.
I am sorru i cannot attach afile.
here is the link and what i need.
http://www.telerik.com/help/winforms/dock-architecture-and-features-document-manager.html
click the above link.
i have 2 documents documentwindow2 and documentwindow3. i need that 2 documents thru code.
Thanks
Suresh.
Its not the Active Document Question.
I am coming again from the beginning.
I have 5 Tabbed Documents .
Using Drag and Drop Service i can split the Document in Different format ,Example: Right ,Left Top and Bottom.
Now i splitted Document1 to top.
Document2 to Bottom.
Document3 to Right.
How to get the Visible Tabbed Documents to user no the hidden Documents. I mean thru code i should get the Documnet1 2 and 3.
Please let me know in C#.
I am sorru i cannot attach afile.
here is the link and what i need.
http://www.telerik.com/help/winforms/dock-architecture-and-features-document-manager.html
click the above link.
i have 2 documents documentwindow2 and documentwindow3. i need that 2 documents thru code.
Thanks
Suresh.
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 05 Jan 2011, 12:54 PM
Hello,
This should get you the visible (to the user) documents.
Hope that helps
Richard
This should get you the visible (to the user) documents.
foreach
(DockWindow win
in
this
.RadDock1.DockWindows) {
if
(win
is
DocumentWindow) {
if
(((Control)win.TabStripItem.TabPanel).Visible) {
// win is visible
MessageBox.Show(win.Name);
}
}
}
Hope that helps
Richard
0
bhogavalli
Top achievements
Rank 1
answered on 05 Jan 2011, 01:15 PM
hi team,
Thanks a lot .
finally i got the tabs.
DockWindowCollection i_dockcontent = radDock.DockWindows;
DockWindow[] i_dockwindows = i_dockcontent.DocumentWindows;
for (int i = 0; i < i_dockwindows.Length; i++)
{
if (i_dockwindows[i].DockType == DockType.Document)
{
if (((Control)i_dockwindows[i].TabStripItem.TabPanel).Visible)
{
string str= ((Control)i_dockwindows[i]).Text;
}
}
}
Thanks
suresh.
Thanks a lot .
finally i got the tabs.
DockWindowCollection i_dockcontent = radDock.DockWindows;
DockWindow[] i_dockwindows = i_dockcontent.DocumentWindows;
for (int i = 0; i < i_dockwindows.Length; i++)
{
if (i_dockwindows[i].DockType == DockType.Document)
{
if (((Control)i_dockwindows[i].TabStripItem.TabPanel).Visible)
{
string str= ((Control)i_dockwindows[i]).Text;
}
}
}
Thanks
suresh.
0
Richard Slade
Top achievements
Rank 2
answered on 05 Jan 2011, 01:22 PM
glad that helped
All the best
Richard
All the best
Richard