Using InPlace EditMode causes drop down lists to put DataTextField into DataValueField

2 posts, 0 answers
  1. Ken
    Ken avatar
    10 posts
    Member since:
    Nov 2012

    Posted 07 Jul 2013 Link to this post

    I have a grid that works great.

    When I edit it I fill a combo box with data.  Everything works great until I change EditMode to InPlace.  When I do that the combo box has the DataTextField in its SelectedValue field.

    Here is how I load the data into the RadComboBox.

    ddlSecurityRole.DataSource = ocRoles
    ddlSecurityRole.DataTextField = "Description"
    ddlSecurityRole.DataValueField = "ID"
    ddlSecurityRole.DataBind()

    When I read the data I do this.
    O.ID_SecurityRole = CLng(DirectCast(objEI("SecurityRole").Controls(0), RadComboBox).SelectedValue)

    If I have EditMode="InPlace" in my MasterTableView tag then the .SelectedValue equals the Description instead of the ID.

    If I remove EditMode="InPlace" then .SelectedValue equals the ID.
  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 08 Jul 2013 Link to this post

    Hello,

    Please check below link, In this link i have provided sample code.

    http://www.telerik.com/community/forums/aspnet-ajax/grid/griddropdowncolumn-first-row-does-not-show-value.aspx#2665600

    Let me know if any concern.

    Thanks,
    Jayesh Goyani
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top