Grid problem in Edit Mode.dialog with sfuploader

Good evening. 

Sorry for my poor English

We assume I'm new to Blazor, and so I'm definitely getting lost in a glass of water, banging my head on this issue.

I have a grid and in the gridsettings I set the mode dialog, because I have to insert a sfuploader to load multimedia files. I have a problem like this. If the grid is in add, the image I have in the edit is updated with the chosen one, while if it is in edit no, as if the refresh event is not triggered.

I attach video with problem tomorrow if needed I will send you the part in question

Marco Cordini


Attachment: stream_00_40_27_f8a152dd.zip

1 Reply

JP Jeevakanth Palaniappan Syncfusion Team September 2, 2021 03:47 PM UTC

Hi Marco, 

Greetings from Syncfusion support. 

We have checked your query and the provided video demo but we are quite unclear about your exact problem you are facing. We suspect that you are able to change the image in add dialog but you are unable to change the image in edit dialog. Is that the issue you are reporting? If so, we have prevent the unnecessary rendering of the grid to improved the performance so to resolve your problem we suggest you to set the PreventRender as false in the OnActionComplete event of the grid. Please find the below code snippet and the documentation for your reference. 


    <GridEvents OnActionComplete="OnActionComplete" OnActionBegin="OnActionBegin" TValue="SysArea"></GridEvents> 
 
.. 
 
    public void OnActionComplete(ActionEventArgs<SysArea> args) 
    { 
        if (args.RequestType.Equals(Action.Add) || args.RequestType.Equals(Action.BeginEdit)) 
        { 
            //based on Add or Edit action disable the PreventRender 
            args.PreventRender = false; 
        } 
    } 


Incase this is not your scenario/if you still face any issue then kindly share us the below details, 

  1. Share us more information on your query.
  2. Share us the complete code snippet with your model class and datasource.
  3. Share us the issue reproducing sample.

The above requested details will be helpful for us to validate your query and to provide you with a better solution as early as possible. 

Regards, 
Jeevakanth SP. 



Loader.
Up arrow icon