+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / List selector not returning Ids

List selector not returning Ids

3 posts, 1 answered
  1. Richa
    Richa avatar
    69 posts
    Registered:
    04 Jun 2009
    15 Dec 2010
    Link to this post
    Hello
    here is the code in a usercontrol:
    01.public partial class WeeklySpecials : System.Web.UI.UserControl, Telerik.Lists.IListDisplay
    02.{
    03.    #region Properties
    04.    [TypeConverter("Telerik.Lists.WebControls.SelectedListsConverter, Telerik.Lists")]
    05.    [WebEditor("Telerik.Lists.WebControls.ListSelector, Telerik.Lists")]
    06.    [DisplayName("Please select a list")]
    07.    public Guid[] ListsIds
    08.    {
    09.        get
    10.        {
    11.            return this.selectedLists;
    12.        }
    13.        set
    14.        {
    15.            this.selectedLists = value;
    16.        }
    17.    }
    18. 
    19.    private Guid[] selectedLists;
    20. 
    21.     
    22.    public string ProviderName
    23.    {
    24.        get
    25.        {
    26.            if (String.IsNullOrEmpty(this.providerName))
    27.                this.providerName = ListManager.DefaultProviderName; ;
    28.            return this.providerName;
    29.        }
    30.        set
    31.        {
    32.            this.providerName = value;
    33.        }
    34.    }
    35.    private string providerName;
    36.    #endregion


    please view this video, which shows that the list selector is not returning the ids.

    please advise.
    thanks
    richa
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Dec 2010
    Link to this post
    Hi Richa,

    The TypeConverter you use is not correct. Please use the code provided in this post

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Richa
    Richa avatar
    69 posts
    Registered:
    04 Jun 2009
    15 Dec 2010
    Link to this post
    Thanks a bunch.
Register for webinar
3 posts, 1 answered