This is a migrated thread and some comments may be shown as answers.

RadSpreadsheet get cell value when cell in edit mode.

1 Answer 258 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Vitalii
Top achievements
Rank 1
Vitalii asked on 01 Aug 2015, 08:07 AM

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.

1 Answer, 1 is accepted

Sort by
0
Anna
Telerik team
answered on 05 Aug 2015, 08:16 AM
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
Tags
Spreadsheet
Asked by
Vitalii
Top achievements
Rank 1
Answers by
Anna
Telerik team
Share this question
or