Web Custom Control
-
2 апреля 2012 г. 9:17
Hi
I've deployed web custom control type drop-down list, but when I run WI's with this control in web browser, it looks different than other fields. This is "Actual Release" field in the picture below. How can I achieve the same design for this field as default microsoft's fields. I tried change "css" for pages and controls, but I didn't find solution.
- Изменено enzodev 2 апреля 2012 г. 9:23
Все ответы
-
2 апреля 2012 г. 14:43
Hi enzodev,
The control we use for the dropdowns is different than the native dropdown control where it's a custom control and custom styling is applied to it. You cannot apply styles on native dropdown control unfortunately.
What kind of functionality do you have in your control? How is it different than the existing list control?
Thanks
Serkan
- Помечено в качестве ответа Lily_WuMicrosoft Contingent Staff, Moderator 9 апреля 2012 г. 1:18
-
2 апреля 2012 г. 15:28
Yes, the functionality is different. In this drop-down list, I'm getting list of release values from database.
Release is a new Work Item type that I created, it is same as Bug, User Story, Issues etc.
Is there other solution for this?
-
2 апреля 2012 г. 17:22
I see what you are trying to do. I was going to suggest to inherit your custom control from FieldControl but it has a specialized logic to get its data source which is highly dependent on Work Item Tracking. It doesn't seem like the correct route.
The other thing you can do is to change the existing custom control sample MultiValueControl to fit your needs. It has the necessarey client code to deal with dropdowns. Please note that, you'll need to populate your data on the server side.
Please let me know if you have more questions.
Serkan
-
3 апреля 2012 г. 0:02
Serkan, thank you for your post.
These controls work well for TFS Server Custom Controls. Should I customize code for them for the server's part or only for the Web Custom Control?
Is there any example or link for solutions that you mentioned in the previous post.
Thank you a lot for your help
Ensar
-
5 апреля 2012 г. 7:58Модератор
Hi Ensar,
Thank you for your post.
The control you write yourself and the other control are different things. The control you write is an ASP.Net DropdownList control, so this control is a real drop down list in web access. For other control, it seems like a "drop down list", but it is field control, in client it just a taxtbox and a image, not a drop down list.
In a word, DropDwonList control and FieldControl are different things.
Thanks,
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
- Помечено в качестве ответа Lily_WuMicrosoft Contingent Staff, Moderator 9 апреля 2012 г. 1:18
-
5 апреля 2012 г. 12:22
OK
Conclusion in the end..
I couldn't make control that looks as your default control, is't true?
Thanks,
-
6 апреля 2012 г. 1:34Модератор
Hi Ensar,
I am afraid, yes, they are different things.
Thanks,
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
-
6 апреля 2012 г. 12:12
Hi Lily_Wu
Thank you for your reply.

