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

[Solved] Develop a new control

2 Answers 108 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Guenter
Top achievements
Rank 1
Guenter asked on 06 Jul 2009, 08:16 AM
Hello,
I need to develop a new control which I need to place in a column of a Grid.
The control should look like a measuring container which shows me in a graphical way the liquid level of a tank. I would like to bind two values to the control, one value for the actual liquid level and one value which represents the maximum liquid level. According to the first value the control should show me how much liquid is my measuring container.

Any idea how I could start to develop such a control or does this control in a way already exists?

Cheers
Guenter

2 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 06 Jul 2009, 01:30 PM
Hi Guenter,

In order to achieve your goal, you can use GridTemplateColumn. In its ItemTemplate you can put 2 nested DIVs. The outer one can have width/height and background color which corresponds to the maximum liquid level. And the inner would have width/height and background color which shows the
liquid level of a tank.

You can find attached a sample illustrating similar scenario. Check it out and let me know how it goes.

All the best,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Guenter
Top achievements
Rank 1
answered on 07 Jul 2009, 09:47 AM
Thanks it works really good.

Guenter
Tags
General Discussions
Asked by
Guenter
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Guenter
Top achievements
Rank 1
Share this question
or