Server-Side Processing not refreshing data.
Server-Side Processing not refreshing data.
XstreamINsanity
Posts: 23Questions: 0Answers: 0
Good Morning Allan,
Got something simple I hope. I have my fiew set up as such:
View:
[code]
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
$(document).ready(function() {
$('#adminUnassignedTable').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/Admin/UpdateUnassignedReviewer",
"sPaginationType": "full_numbers"
});
});
Unassigned IPBs
<%
using (Html.BeginForm("Assign","Admin",FormMethod.Post))
{
Html.RenderPartial("AssignmentControls", "Reviewer");
%>
IPB Number
IPB Pub Date
Change Number
Change Date
Total # of Parts
Total # of Report Parts
ALC
Date Loaded
Priority
Update
Loading Data From Server
<%
}
%>
[/code]
When I go to the page for the first time, it works fine. However, this page is meant for assigning something and removing it from the list. When we assign it, it works fine in terms of it showing up in another list (status and location changed). However, if we go back to the Unassigned Page (the one in question) it doesn't seem to refresh the data (go back to the sAjaxSource and requery) because that item will still be in the list. Do you have any idea what I could have missed or is this beyond the scope of the dataTable? Thanks for your help.
Oh yeah, and I should mention, it's not just this page. It's every page I have as server-side that does assignments. Thanks.
Got something simple I hope. I have my fiew set up as such:
View:
[code]
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
$(document).ready(function() {
$('#adminUnassignedTable').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/Admin/UpdateUnassignedReviewer",
"sPaginationType": "full_numbers"
});
});
Unassigned IPBs
<%
using (Html.BeginForm("Assign","Admin",FormMethod.Post))
{
Html.RenderPartial("AssignmentControls", "Reviewer");
%>
IPB Number
IPB Pub Date
Change Number
Change Date
Total # of Parts
Total # of Report Parts
ALC
Date Loaded
Priority
Update
Loading Data From Server
<%
}
%>
[/code]
When I go to the page for the first time, it works fine. However, this page is meant for assigning something and removing it from the list. When we assign it, it works fine in terms of it showing up in another list (status and location changed). However, if we go back to the Unassigned Page (the one in question) it doesn't seem to refresh the data (go back to the sAjaxSource and requery) because that item will still be in the list. Do you have any idea what I could have missed or is this beyond the scope of the dataTable? Thanks for your help.
Oh yeah, and I should mention, it's not just this page. It's every page I have as server-side that does assignments. Thanks.
This discussion has been closed.
Replies