I am trying to create a property for selecting members using Checkboxlist control in a usercontrol wrapper.
the problem is I don't know how to save the user selection and read it later from the DB.
This is a sample I made using a simple text box, now I need to figure out how to achieve this in a checkboxlist.
public object value
{
get
{
return MemberTextBox.Text;
}
set
{
if (value != null)
{
MemberTextBox.Text = value.ToString();
}
}
}
I wonder if the built-in datatype XPath CheckBoxList would be suitable for your purpose ? it can be configured with an XPath expression to select those members that should become selectable options.
using checkboxlist with members
I am trying to create a property for selecting members using Checkboxlist control in a usercontrol wrapper. the problem is I don't know how to save the user selection and read it later from the DB.
This is a sample I made using a simple text box, now I need to figure out how to achieve this in a checkboxlist.
Hi Moran,
I wonder if the built-in datatype XPath CheckBoxList would be suitable for your purpose ? it can be configured with an XPath expression to select those members that should become selectable options.
HTH,
Hendy
Hi I think this can do the trick, but for some reason I can't see the type section in my settings, I am using umbraco version 4.11.8
Arhh, that's a shame, unfortunately I can't remember which version of Umbraco this datatype was updated.
Another option may be to use the uComponents SQL CheckBoxList with something like:
Works like a charm thanks :)
excellent, that's good to hear :)
is working on a reply...