I'm creating a document using c#. The document is created and I can view it in the CMS. The problem is that I have a checklist in my usercontrol that I'm trying to save into a Checklist Datatype. Doesn't seem to want to take the values.
Is this possible?
Below is the code that I use to create the currentVideo.WordsToDescribeVideo. Benath that is the code that I use to input it into the document.
foreach (ListItem li in cblWords.Items)
{
if (li.Selected)
{
if (selectedWords.Length > 0)
{
selectedWords += ", ";
}
selectedWords += li.Text;
}
}
You might need to insert the id's of the checklist items instead of the values (the id's are visible in the datatype's list). Not sure if the comma's need the extra space after them either.
Im doing something very similar where I have a user control and I want the user to be able to select options through a check box list control and then i want to update the node (also Check box list data type) with the selected values
Insert a checklist using c#
Umbraco 4.5.2
I'm creating a document using c#. The document is created and I can view it in the CMS. The problem is that I have a checklist in my usercontrol that I'm trying to save into a Checklist Datatype. Doesn't seem to want to take the values.
Is this possible?
Below is the code that I use to create the currentVideo.WordsToDescribeVideo. Benath that is the code that I use to input it into the document.
You might need to insert the id's of the checklist items instead of the values (the id's are visible in the datatype's list). Not sure if the comma's need the extra space after them either.
Hi Chad did you manage to get this working?
Im doing something very similar where I have a user control and I want the user to be able to select options through a check box list control and then i want to update the node (also Check box list data type) with the selected values
any help would be great ;)
Thanks Paul
is working on a reply...