mvc3 and dataTables basic Instillation
mvc3 and dataTables basic Instillation
im very new to mvc3 an jquery
i tired your basic tutorial and it worked well
but on the mvc3 something went wrong
this is the table
[code]
ServiceId
ServiceInstanceId
MessageRole
Datetime
Message
Status
ESBErrorCode
ESBTecnicalErrorCode
ErrorDescription
PortName
MachineName
ConsumerId
ExternalId
ConsumerMachineName
ServiceBehavior
RouterConsumerId
@foreach (var item in Model)
{
@Html.DisplayFor(modelItem => item.ServiceId)
@Html.DisplayFor(modelItem => item.ServiceInstanceId)
@Html.DisplayFor(modelItem => item.MessageRole)
@Html.DisplayFor(modelItem => item.Datetime)
@Html.DisplayFor(modelItem => item.Message.Context)
@Html.DisplayFor(modelItem => item.Status)
@Html.DisplayFor(modelItem => item.ESBErrorCode)
@Html.DisplayFor(modelItem => item.ESBTecnicalErrorCode)
@Html.DisplayFor(modelItem => item.ErrorDescription)
@Html.DisplayFor(modelItem => item.PortName)
@Html.DisplayFor(modelItem => item.MachineName)
@Html.DisplayFor(modelItem => item.ConsumerId)
@Html.DisplayFor(modelItem => item.ExternalId)
@Html.DisplayFor(modelItem => item.ConsumerMachineName)
@Html.DisplayFor(modelItem => item.ServiceBehavior)
@Html.DisplayFor(modelItem => item.RouterConsumerId)
}
[/code]
and this is the JS file
[code]
$(document).ready(function () {
$('#MainTable').dataTable({
});
[/code]
script list
[code]
[/code]
when i start the app i don't receive any of the dataTables options like search ,sorting and so....
just a plain table....
thanks
miki
i tired your basic tutorial and it worked well
but on the mvc3 something went wrong
this is the table
[code]
ServiceId
ServiceInstanceId
MessageRole
Datetime
Message
Status
ESBErrorCode
ESBTecnicalErrorCode
ErrorDescription
PortName
MachineName
ConsumerId
ExternalId
ConsumerMachineName
ServiceBehavior
RouterConsumerId
@foreach (var item in Model)
{
@Html.DisplayFor(modelItem => item.ServiceId)
@Html.DisplayFor(modelItem => item.ServiceInstanceId)
@Html.DisplayFor(modelItem => item.MessageRole)
@Html.DisplayFor(modelItem => item.Datetime)
@Html.DisplayFor(modelItem => item.Message.Context)
@Html.DisplayFor(modelItem => item.Status)
@Html.DisplayFor(modelItem => item.ESBErrorCode)
@Html.DisplayFor(modelItem => item.ESBTecnicalErrorCode)
@Html.DisplayFor(modelItem => item.ErrorDescription)
@Html.DisplayFor(modelItem => item.PortName)
@Html.DisplayFor(modelItem => item.MachineName)
@Html.DisplayFor(modelItem => item.ConsumerId)
@Html.DisplayFor(modelItem => item.ExternalId)
@Html.DisplayFor(modelItem => item.ConsumerMachineName)
@Html.DisplayFor(modelItem => item.ServiceBehavior)
@Html.DisplayFor(modelItem => item.RouterConsumerId)
}
[/code]
and this is the JS file
[code]
$(document).ready(function () {
$('#MainTable').dataTable({
});
[/code]
script list
[code]
[/code]
when i start the app i don't receive any of the dataTables options like search ,sorting and so....
just a plain table....
thanks
miki
This discussion has been closed.