Input and Binding

Hello,

I want to create an input Datagrid, like a buy list, "Product", "Quantity", "Price", "Total"
When the program runs at first time, the ObservableCollection<ClassName> inside of the ViewModel does not have any elements, since at the beginning of the program nothing is loaded.

I can't add new data to the datagrid, maybe by a concept mistake. If it is the case please let me know, if not, I have the following doubts:

The first one, is:

In documentation the Binding is:  Binding="{Binding ViewModel.ClassName}" If I use it the "Click here to add new row" message doesn't appear, I need to use Binding="{x:Bind ViewModel.ClassName}" to the message appears. What I need to use?

Maybe the next question have a relation with the previous one. 
When i edit any of values of the rows, the cells turns again in empty values I don't configured any validation. Do I need to configure some kind of validation?


1 Reply 1 reply marked as answer

MA Mohanram Anbukkarasu Syncfusion Team September 10, 2020 10:16 AM UTC

Hi Sergio, 

Thanks for contacting Syncfusion support.  

We have prepared a sample by binding an empty collection and tried to add record using AddNewRow as per your scenario. But unfortunately we are unable to reproduce the reported issue in it. The sample we have used to check this is available in the following link for your reference.  


Please have a look at this sample and let us know if we have missed any customization you have done in your application or try to reproduce the reported issue in this sample and revert to us with the modified sample. It will be more helpful for us to find the exact cause for the issue and to provide a prompt solution at earlier. 

Regards, 
Mohanram A. 


Marked as answer
Loader.
Up arrow icon