We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Document not being shown in TDI mode

Hi There

I have a project that has a docking manager. I have windows docked on the side which work fine with a treeview inside one of them. My problem is I also have 2 documents and neither of them are being displayed and I don't know why at all, can anyone please help me on that problem and my other problem is in the treeviewitems I want the headers to have a template of icon checkbox and textblock which I can achieve however when I try to ahve the item expanded it doesn't work and I got no Icon to be allowed to expand.

If I can get help on these issues that would be great

Thanks

Ryan

Attachment: CS_79de6969.zip

4 Replies

MS Marimuthu Sivalingam Syncfusion Team March 31, 2016 12:13 PM UTC

Hi Ryan,

Thank you for using Syncfusion Products,

Query#1:My problem is I also have 2 documents and neither of them are being displayed and I don't know why at all.

To have the document children in the DockingManager, we need to set the UseDocumentContainer property as True.


Query#2: I want the headers to have a template of icon checkbox and textblock which I can achieve however when I try to have the item expanded it doesn't work and I got no Icon to be allowed to expand.

We have edited the template of Treeview by adding CheckBox and TextBox in the TreeView Header which is in the Input DockingChild of your sample. Similarly you can edit the header of TreeviewItems. Please download the modified sample from the following location:

Sample: CS_79de6969_Modified

Regards,
Marimuthu S.


RA Ryan Archibald March 31, 2016 12:39 PM UTC

Hi

Thanks very much for your help, however I'm having a problem with the highlighted color it's black just now with the documents but I need it to be my "{DynamicResource selectedHeaderBackground}" when selected and the "headerBackground" when it isn't can you help me out with this please?

Thanks 

Ryan


RA Ryan Archibald March 31, 2016 12:40 PM UTC

Attached is the document contained example I have

Attachment: CS_(2)_1e3e2d5d.zip


RG Rajkumar Ganesamoorthy Syncfusion Team April 1, 2016 01:43 PM UTC

Hi Ryan,

Thank you for your update.

We are unable to run your attached sample that have missed resource reference, so we have removed missed resource reference and we have modified the sample that tries to meet your requirement.  In this sample we have bind the selectedHeaderBackground as DynamicResource to TabItemSelectedBackground and TabItemHoverBackground. And we have bind the headerBackground as DynamicResource for TabItem Background by applying style named MyTabItemExtStyle to attached property DocumentTabItemStyle to DockingManager child. You can find the sample from the attached document.

Please let us know if you need further assistance on this.

Regards, 
Marimuthu S.

Attachment: TabItemBackground_e3b0e2f0.zip

Loader.
Up arrow icon