# 20.01.2011 23:36:26 -08:00

Hi!

I developed my own MultiValueControl for Team Webaccess and ran into a problem. As I wanted the same experience as the VS version of this control (a dropdown with checkboxes) I used some jQuery plugin.

Now everything works fine except that I cannot get the plugin to work within WebAccess. I inject the jQuery library but I get the error that it does not exist.

I already postet this issue on stackoverflow.com.

Please take a look at it, as I would love to send you my full code to integrate the control into this open source library if you like!! I just want that wonderful control to work.

The url to the thread is: http://stackoverflow.com/questions/4704639/customcontrol-for-team-webaccess-jquery-doesnt-work

If you'd like the code please contact me per email and I send you everything I have :)

PLEASE HELP!!

# 08.02.2011 5:13:22 -08:00

Hi!

I managed to finish my custom control. On stackoverflow I posted the solution to my problem. I do not know whether it is the best one, but it works.

If anyone is interested in this control being integrated into this open source library please contact me and I will give you the code and setup files.

There is only one little "bug" left which is that the css styles do not look perfect on web access. It would be nice if a css specialist could check that out or someone may give me a link or the name of a good tool which enables "html gui debugging" concerning css styles?

# 14.08.2011 13:13:59 -07:00

Very interested. Could you send me a way to download your control?

# 16.08.2011 11:42:50 -07:00

Hey allenfeinberg!

You can download the full code from my skydrive:

"https://skydrive.live.com/?cid=7f3cbb45213a5b15&id=7F3CBB45213A5B15%21187#"

It's the "WitCustomControls.Web.zip" file! (please note the trailing # in the link above!)

Sorry about the delay - I was on holiday. :)

Hope it's not too late!

# 16.08.2011 21:35:05 -07:00
Many Thanks! I'll take a look.


From: [email removed]
To: [email removed]
Date: Tue, 16 Aug 2011 11:42:54 -0700
Subject: Re: MultiValueControl for Team WebAccess [WitCustomControls:242702]

From: gentledepp
Hey allenfeinberg!
You can download the full code from my skydrive:
"https://skydrive.live.com/?cid=7f3cbb45213a5b15&id=7F3CBB45213A5B15%21187#"
It's the "WitCustomControls.Web.zip" file! (please note the trailing # in the link above!)
Sorry about the delay - I was on holiday. :)
Hope it's not too late!
Read the full discussion online.
To add a post to this discussion, reply to this email (WitCustomControls@discussions.codeplex.com)
To start a new discussion for this project, email WitCustomControls@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com
# 14.11.2011 8:05:31 -08:00

Hi gentledepp,

I am trying to use the multivaluecontrol in TSWA 2010. I downloaded your control and tried to use it. The control is not saving the values in TSWA 2010 and also the size is not perfect. Could you please help me with this.......

Thanks,

ginjala.

# 14.11.2011 10:47:19 -08:00

Hi gentledepp,

I am trying to use the multivaluecontrol in TSWA 2010. I downloaded your control and tried to use it. The control is not saving the values in TSWA 2010 and also the size is not perfect. Could you please help me with this.......

Thanks,

ginjala.

# 16.11.2011 0:43:37 -08:00

Hi ginjala.

I must admit that I've not been working with this for a while so I might not remember everything.

My first advice: Follow THE VERY SAME installstion steps of the offline MultivalueControl of this codeplex project:

http://witcustomcontrols.codeplex.com/wikipage?title=Multivalue%20control&referringTitle=Home

I guess that the values you provide for choice are not enclosed in "[" "]", right? ;-)

 

# 16.11.2011 6:14:11 -08:00

Hi gentledepp,

Thank you much for your reply.

Actually I am enclosing the choices in "[" "]". Also am able to see the choices in TSWA-2010.

If I use Visual Studio 2010 to create a work item with multi-value custom control, it works fine. I can select more than one value from the list-items combo box. And when I open this work item in TSWA-2010, I can see all the selected list-items in that control. This works fine.

Problem1:

But if I use TSWA-2010 to create a work item with multi-value custom control, I can select more than one list-items from that combo-box, and when I save the work item and re-open it, it shows that only one of the selected list-items is saved.

 

Problem2:

I am unable to resize the control in TSWA-2010.

 

Could you plz help me with this.

Thanks & Regards,

ginjala.

# 18.11.2011 1:37:16 -08:00
Hi!

@Problem 2: I know about the "resizing problem". this has to do with the jQuery dropdown control I use. For some reason, it does not expand to the width it is given and you can only set it statically (e.g.: style="width:100px"). However I did not have the time and knowledge to solve this. You can do it by using firebug and looking at the css properties of the control. (I guess you can dev. a bit, othewise you wouldn't know about codeplex, right? :))

@Problem 1: I never had that problem and cannot reproduce it. But you've the code right?
You can debug it if you:
  • Compile the code
  • copy the assembly to the team system web access folder (you can find the path in the setup project, which does nothing else but copying the *.dll to that folder)
  • then do an iisreset
  • afterwards open your site in the browser
  • and once it opens (which means that iis is back again), attach visual studio to all "w3p" processes (ctrl+alt+P is the attach command)
  • then set a breakpoint in the controls code where it loads and where it saves its value.

In essence, the bug can only lie in saving or loading the field value, as the value itself is only a string which is parsed by the control when it is loaded.

Can you do that?
If you have that set up, maybe we could even make a team viewer session.

Wish you good luck
# 18.11.2011 9:52:28 -08:00

Hi gentledepp,

Thanks a lot for your response.

I tried every thing that I can. Still having the same issue. Could you please share your code, if it is any different from the one I have.

Thanks,

ginjala.

# 29.11.2011 9:58:23 -08:00

Would love to have the code shared as well.

Thanks,

Allen.

# 18.05.2012 11:28:39 -07:00

I'm seeing the same issue (#1) as ginjala.  I pulled the relevant code out of MultiValueControl.cs into another asp.net web site, and it worked without issue.  I haven't figured out what's causing the problem with TFS Web Access, but I have found out some info using fiddler.  When posting from a regular asp.net web site, the control shows multiple entries in fiddler with the correct values.  When posting from TFS Web Access, the select control has the correct number of selections, but they all have the value of the first selected item.  For instance, if I had selected 5 items, fiddler is showing the five inputs being posted, but they all have the value assigned to the first selection.

# 18.05.2012 15:46:21 -07:00

Hi pisanic.  I am too experiencing the same issue with the control in TSWA.   I'm debugging as well.  I will post if I find a resolution.  Please do the same.

# 30.07.2012 8:55:34 -07:00

I found a solution. It seems that ListBox does not support more than one item being set to true, even though SelectionMode being set to Multiple. So CheckboxList.Items has only set .Selected of the first selected Item set to true. So checkedItems.Count will always be 1. Maybe it would work by adding property "MultiColumn = true;" in line 125.

I fixed it by changing to CheckBoxList by decommenting line 124 and commenting line 125.

# 16.01.2013 11:21:31 -08:00

I am trying to use the MultiValue Control in a TFS 2010 environment, however, we will upgrade to TFS 2012 in 8 - 10 weeks. It looks like it is pretty easy to deploy this in Team Web Access 2012. I am trying to find an EASY way to deploy the MultiValue Control to Team Web Access 2010. Is that possible? I do not have time to deal with everything outlined here: http://social.msdn.microsoft.com/Forums/en-US/tfsworkitemtracking/thread/3e515ba9-6837-4740-861b-2279416ed729?prof=required.

Is there an easier way to deploy this to Team Web Access 2010 or do I need to wait until our envieonment has been upgraded to TFS 2012?

Thanks!

Dave

# 23.01.2013 11:24:30 -08:00

Dave,

The whole model used for webcontrols has changed in TFS 2012.

Thus in TFS 2010 there is no way to use the exact same controls, or the same way of deploying as in TFS 2012.

If you want do have the control available on TFS 2010 you will need to grab the correct control and follow all of the steps as described in the article you mentioned.

If you can wait for TFS 2012 it is indeed much easier. Just uploading the zip-file in the web interface and enabling it is sufficient.

Hope this helps…

Rgds,

Pierrick

From: DBurnison [email removed]
Sent: woensdag 16 januari 2013 20:22
To: pierrick@telenet.be
Subject: Re: MultiValueControl for Team WebAccess [WitCustomControls:242702]

From: DBurnison

I am trying to use the MultiValue Control in a TFS 2010 environment, however, we will upgrade to TFS 2012 in 8 - 10 weeks. It looks like it is pretty easy to deploy this in Team Web Access 2012. I am trying to find an EASY way to deploy the MultiValue Control to Team Web Access 2010. Is that possible? I do not have time to deal with everything outlined here: http://social.msdn.microsoft.com/Forums/en-US/tfsworkitemtracking/thread/3e515ba9-6837-4740-861b-2279416ed729?prof=required.

Is there an easier way to deploy this to Team Web Access 2010 or do I need to wait until our envieonment has been upgraded to TFS 2012?

Thanks!

Dave