Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Asp.net MVC Ignite UI Grid RowEditDialog in service side logic
posted

I want to use ColumnSettings and RowEditDialogOptions with dialog and editor templates in server side logic and I don't know how to do it. Can you please provide me a sample where it is done in asp.net mvc server side logic? I am using infragistics ultimate ver 2015.1 

This is what I currently have:

  gridModel.Features.Add(new GridUpdating()

            {      

                AddRowLabel = "New Customer",

                EditMode = GridEditMode.RowEditTemplate,

                RowEditDialogContainment = "window",

                RowEditDialogHeight = "400px",

                EnableDeleteRow = false,

                RowEditDialogWidth = "600px",

                StartEditTriggers = GridStartEditTriggers.DblClick,

            });

  • 29417
    Offline posted

    Hello Mir, 

    Thank you for posting in our forum. 

    Here’s an example on how to set the updating features’ ColumnSettings and  RowEditDialogRowTemplate:

                                        GridModel gridModel = new GridModel(); 

                                        GridUpdating updating = new GridUpdating()

                                        {

                                                    //your options

                                        };

     

                                        List<ColumnUpdatingSetting> columnSettings = new List<ColumnUpdatingSetting>();

                                        ColumnUpdatingSetting setting = new ColumnUpdatingSetting();

                                        setting.ColumnKey = "Name";

                                        setting.Required = true;

                                        columnSettings.Add(setting); 

                                        updating.RowEditDialogRowTemplate = "<tr><td style='color:green;'>${headerText}</td><td data-key='${dataKey}'><input /></td></tr>";                

                                        updating.ColumnSettings = columnSettings;

                                        gridModel.Features.Add(updating); 

    I’ve attached a sample for your reference.Let me know if you have any questions. 

     

    Best Regards,

    Maya Kirova

    Infragistics, Inc.

    http://es.infragistics.com/support

     

     

    RET_igGrid.zip