Hi all,
I need to put a message when my Datagrid don't have any records, how I can do this?
I Have iggrid that is loaded with dataSourceUrl
I works with MVC 4
thanks for advance
Hello Ruben,
Information on how a custom message may be displayed in the igGrid when there are no records can be found at:
http://es.infragistics.com/community/forums/p/68274/346033.aspx
Please do not hesitate to contact me if you have any questions.
Hi Petar
thanks for advance, this code i have to put in <script> code?
This is my grid code
<div style="width: 100%; float: left; height: 510px; padding-bottom: 20px;"> @( Html.Infragistics().Grid<DocumentosMetodos.DocumentsModels.DOCUMENTOSNOTGRID>() .ID("igGrid1") .PrimaryKey("uniCODOBJ") .Columns(column => { column.For(x => x.uniCODSER).DataType("string").HeaderText(@Resources.Resource1.DocumentosIndexGridSerie).Width("15%"); column.For(x => x.strTITOL).DataType("string").HeaderText(@Resources.Resource1.DocumentosIndexGridTitulo).Width("20%"); column.For(x => x.strFECINI).DataType("date").HeaderText(@Resources.Resource1.DocumentosIndexGridFecIni).Width("21%").Format("dd/MM/yyyy"); column.For(x => x.strFECFIN).DataType("date").HeaderText(@Resources.Resource1.DocumentosIndexGridFecFin).Width("21%").Format("dd/MM/yyyy"); column.For(x => x.strFIRTOP).DataType("string").HeaderText(@Resources.Resource1.DocumentosIndexGridFirma).Width("16%"); column.For(x => x.strCODREF).DataType("string").HeaderText(@Resources.Resource1.DocumentosIndexGridId).Width("12%"); }) .Features(features => { features.Paging().PageSize(15).PrevPageLabelText(@Resources.Resource1.DocumentosIndexGridAnterior).NextPageLabelText(@Resources.Resource1.DocumentosIndexGridSiguiente); features.Sorting().Mode(SortingMode.Single).ColumnSettings(settings => { settings.ColumnSetting().ColumnKey("strCODREF").AllowSorting(true);
}); features.Selection().MouseDragSelect(true).MultipleSelection(true).Mode(SelectionMode.Row); features.Filtering().ColumnSettings(settings => { //settings.ColumnSetting().ColumnKey("strFECINI").AllowFiltering(true).FilterCondition("equals"); });
})
.ClientDataSourceType(ClientDataSourceType.JSON) .DataSourceUrl(Url.Action("GetDocumentosNotarioList")) .Width("100%") .Height("100%") .LocalSchemaTransform(true) .DataBind() .Render() } )</div>