How to Refresh the ViewData

Posted by Manorama under ASP.NET MVC on 10/28/2013 | Points: 10 | Views : 4262 | Status : [Member] | Replies : 2
I am using Mvc4 ,I develop the application.But I am using MVCJqgrid. In MVCJqgrid i am passing ViewData From Page Load.Like This
var resultMeniItems = seEntity.GetAll_BranchMenuItems(hotelId, locationId).ToList();
ViewData["C"] = resultMeniItems.Select(r => r.CuisineDesc).Distinct().ToArray();
ViewData["C Type"] = resultMeniItems.Select(r => r.CuisineTypeDesc).Distinct().ToArray();

In MVCJqgrid I have Radio button ,If I am Selected that radio button ,I want to refresh the above ViewData(i.e ViewData["C"],ViewData["C Type"]).By using Json I am calling the method.
Please help me anyone.I have Urgent Requirement.
Thanks & Regards
Manorama

ManoRama


Responses

Posted by: Bandi on: 10/28/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer
http://stackoverflow.com/questions/2839721/how-to-reload-jqgrid-in-asp-net-mvc-when-i-change-dropdownlist
http://www.trirand.net/aspnetmvc/grid/editrowinlineactionicons

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Manorama, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 10/28/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer
http://www.codeproject.com/Articles/609442/Using-JqGrid-in-ASP-NET
http://www.codeproject.com/Articles/610359/JqGrid-Inline-Editing

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Manorama, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response