Problem with editing and aggregate

Hi!

I uploaded a video to show you the issue:


The first column in the Grid isn't editable and I also need the columns to stay in the same order.

Another problem is that the aggregated value doesn't seem to update.

I'm not saving the updated value to the database at the moment. Would saving it to db fix this?

When clicking the button I'm running the refresh() method of the Grid. I also tried it with refreshColumns() but it still 
pulls the edited row to the top.

Any ideas?



7 Replies

HJ Hariharan J V Syncfusion Team August 24, 2018 01:19 PM UTC

Hi Paul, 

Thanks for contacting Syncfusion support. 

Query 1 : The first column in the Grid isn't editable and I also need the columns to stay in the same order. 

We have analyzed your query and we have tried to reproduce the reported issue with given details, but its unsuccessful. So please share the below details, it will help us provide better solution as soon as possible.  

  1. Please check the `isPrimaryKey` is enabled for unique value column.
  2. Please provide full grid code sample.
  3. Please reproduce the reported issue in the provided sample if possible.


Query 2: Another problem is that the aggregated value doesn't seem to update. 

We have already considered this as improvement feature and it will available Essential studio vol 3 release.  
 
Regards, 
Hariharan 



PK Paul Kocher August 27, 2018 06:25 AM UTC

Hi Hariharan,

thanks for your answer!

I added isPrimaryKey now which fixed everything:

  • The Grid now stays in the right order when refreshing
  • The aggregated value updates now
Thanks a lot! :)

Regards
Paul



LO lorryl August 27, 2018 06:55 AM UTC

Excuse me ? How do you set the grid numerictextbox's icon visible to false ?


PK Paul Kocher August 27, 2018 07:51 AM UTC

Hey lorryl,

are you talking about the spin buttons?

if yes, you can do the following:


<e-column field='februar' headerText='FEB' [format]='formatOptions' editType='numericedit' [edit]='editParams'>e-column>


then in you .ts file:

editParams: IEditCell;
ngOnInit() {
    this.editParams = { params: { showSpinButton: false } };
}


LO lorryl replied to Paul Kocher August 27, 2018 08:04 AM UTC

Hey lorryl,

are you talking about the spin buttons?

if yes, you can do the following:


<e-column field='februar' headerText='FEB' [format]='formatOptions' editType='numericedit' [edit]='editParams'>e-column>


then in you .ts file:

editParams: IEditCell;
ngOnInit() {
    this.editParams = { params: { showSpinButton: false } };
}

Yes. I've been puzzled with the grid for a long time before.
Thank you very much!


PK Paul Kocher August 27, 2018 08:16 AM UTC

Glad that it worked for you.

Yeah, I'm still struggling with lots of things which aren't really documented (well) 


HJ Hariharan J V Syncfusion Team August 28, 2018 07:07 AM UTC

Hi Paul ,  
  
Thanks for your update.  
  
Can you please let us know the scenarios/missing topics/complexities which are not documented, Please share the details/scenarios, then we will validate its available or not on the Grid documentation, if not, we will consider this as documentation tasks and publish this. 
  
Regards,  
Hariharan  


Loader.
Up arrow icon