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

Change SplitterElement.Location

2 Answers 89 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Nikola
Top achievements
Rank 1
Nikola asked on 08 Oct 2014, 05:47 AM
hi,

i have discovered a new issue, its about accessing the position of the ContainerSplitter, which seperates the GraphicalViewElement and the TextViewElement. It seems like the Splitter is set on 50% of the control itself.
What I want to do is to set the Splitter next to the last column of the TextViewElement.

I tried to access the Location property of radGantView.GantViewElement.SplitterElement.Location = new Point (x,y); but that does nothing.
And if I change the position of the splitter on runtime, i get a wierd position.

Also I must say, I first debuged GanttViewElement.SplitterElement.LocationToControl(); to see which values are used. In my case something around 700 for Point.X. I set it down with a new Point(400, 1);. But again, nothing, still on 50% of the Control. If i move it now in runtime, I get a strange bug.

After that code i tried also this.radGantView.Update(); and again...nothing.

Please tell me how to change the Splitter Position/Location

Thanks
& Greets to you

Niko

2 Answers, 1 is accepted

Sort by
0
Nikola
Top achievements
Rank 1
answered on 08 Oct 2014, 05:50 AM
Forgott the pictures.

SplitterLocation.png -> changed the SplitterLocation already (nothing affected)
ChangeSplitterPos.png -> Moving the Splitter after changing the Location
0
Konstantina
Telerik team
answered on 09 Oct 2014, 10:25 AM
Hi Nikola,

From the screenshots it seems like the GanttView is not the one part of the Silverlight suite. I have seen that you have a question in a forum for WinForms, so could you please verify from which suite you are using the control - Silverlight or WinForms? In that way we will be able to provide you with precise answer to your questions.

Looking forward to your reply.

Regards,
Konstantina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GanttView
Asked by
Nikola
Top achievements
Rank 1
Answers by
Nikola
Top achievements
Rank 1
Konstantina
Telerik team
Share this question
or