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,
});
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
Hi Maya,
Thanks for a quick response. Thats exactly what I was looking for. I have a follow up question, how do can I control the size of each textbox in the popup as I have a notes column that will be 3 rows long.
Thanks,
Mir