Community & Support
Skip Navigation LinksHome / Announcements / Forums / TFS Work Item Manager and Project Dashboard: TFS Work Item Manager > Custom Work Item Control and Task Board

Not answered Custom Work Item Control and Task Board

Feed from this thread
  • Michael Paterson avatar

    Posted on Feb 21, 2011 (permalink)

    I created a custom work item control which does some relatively simple validation.  Everything works fine when I'm in the regular query view but the validation isn't getting triggered when I'm in the Task Board view.  Is there anything special that I need to do to get this to work?

    Reply

  • Joel Joel admin's avatar

    Posted on Feb 23, 2011 (permalink)

    Hi Michael,

    Can you explain what kind of validation this control is doing?  Is it something that you are expecting to fire as you drag cards around on the task board, or are you opening up the work item in the work item form pop-up window?  If you're opening the work item in the pop-up window, there should be no reason why it wouldn't work there if it's working in the regular query view because it's essentially the same code used for both forms, but one just happens to be hosted in a window.

    Regards,
    Joel
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

    Reply

  • Michael Paterson avatar

    Posted on Feb 23, 2011 (permalink)

    Hi Joel,

    The control enables state restrictions based on configurable numbers.  Kind of like Kanban where you can set limits on how many work items are in a particular state.  For example, a TFS admin can say that no more than 5 tasks are allowed in In Progress at a time.

    When a user changes the state value the control will run a query and if notify the user if they would like to continue or not via a MessageBox.  

    This seems to work fine when I'm looking at the details of a work item.  However, the task board drag-and-drop doesn't seem to trigger this functionality.

    Thanks,
    Mike

    Reply

  • Joel Joel admin's avatar

    Posted on Feb 25, 2011 (permalink)

    Hi Michael,

    Validation performed by a work item form control will not happen when dragging and dropping in the task board because when you're using the cards, the work item form is not used.  This is just a limitation of doing validation through a work form control.  For instance, you'd see the same behavior if you edited work items using Team System web access and changing the state. 

    The task board performs validation using only the rules and workflow defined in the work item type definitinos and as I'm sure you're aware, doing the kind of validation you're doing isn't possible using the set of rules available to a work item.  At least I can't think of a way, which is probably what led you to use a custom control in the first place.

    Regards,
    Joel
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

    Reply

  • sen avatar

    Posted on May 23, 2011 (permalink)

    Hi micheal,

    I am new to TFS and need to implement some custom controls for my client.
    can u please help me with some samples on how to use custom controls for work items.

    Thanks

    regards,
    sen

    Reply

  • Michael Paterson avatar

    Posted on May 23, 2011 (permalink)

    This should get you started: http://witcustomcontrols.codeplex.com/

    Reply

Back to Top

Skip Navigation LinksHome / Announcements / Forums / TFS Work Item Manager and Project Dashboard: TFS Work Item Manager > Custom Work Item Control and Task Board