Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds


  Asked By: Jill    Date: Aug 08    Category: Sharepoint    Views: 641

Has anyone of you guys used the CategoryPicker control. If so can you guys pass me some tips on using it.
i tried using it and was not successful. could not find anything on the net for it not even some hints.
Found one guy who seems to have used it with a rich text control that allows him to make posts to multiple areas from one place.
but he had just posted a screen shot and nothing else. no expln on how he did it.



2 Answers Found

Answer #1    Answered By: Patricia Richardson     Answered On: Aug 08

Hope you are looking something like this.

public class CatPick : BaseAreaWebPart

protected CategoryPicker cp;

protected override void RenderWebPart(HtmlTextWriter output)
cp.Enabled = true;
cp.Visible = true;
output.WriteLine("You have selected : ");
for (int i=0; i < cp.SelectedCategoryPathes.Length ; i++)
output.WriteLine(" " + cp.SelectedCategoryPathes[i].ToString()+"</br>");

protected override void CreateChildControls()

cp = new CategoryPicker();
cp.AutoPostBack = true;
cp.MultiSelect = true;

Answer #2    Answered By: Damon Garner     Answered On: Aug 08

The only difference is that my webpart class needs to be derived from the baseareawebart class.

Didn't find what you were looking for? Find more on CategoryPicker Or get search suggestion and latest updates.

Related Topics:



Related Post