RadSpreadsheet get cell value when cell in edit mode.

2 posts, 0 answers
  1. Vitalii
    Vitalii avatar
    6 posts
    Member since:
    Feb 2012

    Posted 01 Aug 2015 Link to this post

    Hello dear Telerik support. ​I have question regarding RadSpreadsheet. My problem is next.

    When cell in edit mode I can't get it value. When I try get value, it is empty. How I can manage it? Could you help me?

    Thanks.

  2. Anna
    Admin
    Anna avatar
    99 posts

    Posted 05 Aug 2015 Link to this post

    Hello Vitalii,

    Thank you for your question.

    If you get the value of the cell using the code below, you will get only the value which is already confirmed, that is, you have entered it in the cell editor and then exited edit mode by pressing enter for example. If you start editing an empty value and try to get the value of the cell before exiting edit mode, you will get an EmptyCellValue as a result.

    ICellValue value = worksheet.Cells[0, 0, 0, 0].GetValue().Value;

    That being said, please, let me know if I was not correct in my assumption about the steps you are taking. Also, can you give a little more detail about precisely what value you are trying to get and how, so that we can try to help you further.

    Regards,
    Anna
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top