Hello everybody,
I cannot find a way to define the height of a row for an igGrid.
I would like to be able to set auto height for all row since some cells contain large text.
Is there a solution for this ?
thank's !
Hards
Hi Hards,
Auto height is the default behaviour in igGrid (which renders HTML table row elements). If you want fixed row height then look at this forum post:
http://es.infragistics.com/community/forums/t/69830.aspx
Hope this helps,Martin PavlovInfragistics, Inc.
Hello,
I don't have Auto height by default in my view , i don't understand, there is perhaps an error ...
Could you see after and say me what is the error in my developpement ?
Thanks
Best regards
<%= Html.Infragistics().Grid(Model.ListeDetailSuiviDossier).ID("list").AutoCommit(false).PrimaryKey("NUM_ETAPE").UpdateUrl(Url.Action("UpdatingSaveChanges")).AutoGenerateColumns(false).EnableHoverStyles(false)
.Columns(column =>
{ column.For(x => x.NUM_ETAPE).HeaderText("N°").Width("40");
column.For(x => x.NUM_DOSSIER).HeaderText("N°").Width("1");
column.For(x => x.DESCRIPTION).HeaderText("Description").Width("450"); //i have 500 characters for this field
column.For(x => x.REF_DOC).HeaderText("Ref_doc").Width("150");
column.For(x => x.DDEBUT).HeaderText("Date début").Width("100").Format("dd/MM/yyyy");
column.For(x => x.DFIN).HeaderText("Date fin").Width("100").Format("dd/MM/yyyy");
column.For(x => x.HORS_INDIC).HeaderText("Hors indicateur").Width("80");
})
.Features(features => {
features.Paging().Type(OpType.Local);
features.Sorting().Mode(SortingMode.Single).Type(OpType.Local);
features.Updating().EditMode(GridEditMode.Cell);
features.Updating().EnableAddRow(false).EnableDeleteRow(true).ColumnSettings(settings =>
{ settings.ColumnSetting().ColumnKey("HORS_INDIC")
.EditorType(ColumnEditorType.Combo)
.ComboEditorOptions(options => { options.DataSource(Model.ListHorsIndic); });
settings.ColumnSetting().ColumnKey("DDEBUT").EditorType(ColumnEditorType.DatePicker).EditorOptions("dateInputFormat : 'dateTime', DateDisplayFormat : 'dateTime', dateInputFormat : 'dd/MM/yyyy HH:mm'");
settings.ColumnSetting().ColumnKey("DFIN").EditorType(ColumnEditorType.DatePicker).EditorOptions("dateInputFormat : 'dateTime', DateDisplayFormat : 'dateTime', dateInputFormat : 'dd/MM/yyyy HH:mm'");
settings.ColumnSetting().ColumnKey("NUM_ETAPE").ReadOnly(true);
settings.ColumnSetting().ColumnKey("NUM_DOSSIER").ReadOnly(true);
});
.DataBind().Render()%>
and my view :
Hi Hardis,
Could you please provide the following information to help us better look into this issue?
1. Which version and build of NetAdvantage you are using?
2. Which version of the .NET Framework are you targeting?
3. What type of MVC are you using?
4. What kind of styling/theming are you using for the grid?
5. Any other information that could help us reproduce the issue.
Please let me know if you have any further questions or concerns with this and I'll be glad to help.
See you below my response:
1) Net Advantage 2012.1
2) Version 4.0.30319 SP1
3) MVC3
4) CSS theming by default
Hardis
Thank you for the information. I will create a sample with your information and try to reproduce an instance where the rows are not automatically changing their height.
Please let me know if you have any questions or concerns with this and I'll be glad to help.
I need a little extra time to get my sample set up. I've come across a strange issue with my project's setup and I have my team lead assisting me to get it worked out.
I can give you an update on my progress again tomorrow.
Hi Michael,
Can you give me your progress about my problem, i wait always your response....
Thank you