ComboBoxColumn conundrum

3 posts, 0 answers
  1. George
    George avatar
    62 posts
    Member since:
    Sep 2008

    Posted 05 May 2015 Link to this post

    Hi, I have
    an ID hidden column in my grid and a separate comboboxcolumn linked to the ID
    in order to display a text linked to this ID property. This works as expected, the
    user being able to indirectly change the ID by selecting the appropriate entry
    in the combobox column,


    My scenario
    is that after this ID is selected by the user and saved to the database then it
    should not be allowed t be edited going forward. For example when loading past
    data the combobox column property should be read only in order to prevent the
    user from changing this value.

    The problem
    is that if I set the comboboxcolumn property to read only I cannot select a
    value when I try to insert a new row, the combobox column is locked and
    displays no value at all.

    Can you
    please suggest a way to implement this need?



  2. Dess
    Dess avatar
    2102 posts

    Posted 08 May 2015 Link to this post

    Hello George,

    Thank you for writing.

    It is suitable to use the RadGridView.CellBeginEdit event. You can cancel it when the edit operation is not allowed.

    I hope this information helps. Should you have further questions, I would be glad to help.

    See What's Next in App Development. Register for TelerikNEXT.

  3. George
    George avatar
    62 posts
    Member since:
    Sep 2008

    Posted 08 May 2015 in reply to Dess Link to this post

    Thank you, that worked fine.





Back to Top