Combobox data bindng using SharePoint web service

2 posts, 0 answers
  1. Kaustubh Wadi
    Kaustubh Wadi avatar
    26 posts
    Member since:
    Apr 2010

    Posted 16 May 2011 Link to this post

    Hello Telerik Team,

    I am using Silverlight Radcombobox in one of my SharePoint application. I am able to bind sharepoiint list items to combo box using following approach.
    XNamespace ns = "#RowsetSchema";
                var query = from x in e.Result.Descendants()
                            where x.Name == ns + "row"
                            select x.Attribute("ows_Title").Value.Split(',')[0];
                combobox.ItemsSource = query;

    Now what i want is, the display text for combo box should be from Title column of sharePoint list,
    But i want the ID of selected Title in code behind file.
    I am getting 'title' from combobox.selectedvalue statement. How can i get ID using combobox.selectedvalue statement?
    Can I set selectedvaluePath property to sharepoint list's ID column in code behind file.?

    Please guide me.

    Many Thanks,
    Kaustubh Wadi
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 16 May 2011 Link to this post

    Hello Kaustubh Wadi,

    If the ID you are looking for is a part of the object filling up the GridViewComboBoxColumn, you may get it through the SelectedItem property of the RadComboBox.

    All the best,
    Maya
    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
Back to Top