This is a migrated thread and some comments may be shown as answers.

[Solved] Teleric mvc grid

0 Answers 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Amarendra
Top achievements
Rank 1
Amarendra asked on 05 Apr 2012, 02:17 PM
Hi,
 I am using Telerik mvc grid in my applcation.
I am biding in my view as below:.
 @(Html.Telerik().Grid(Model.First().RoomSettings)
                                             .Name("SomeName")
                                             .DataBinding(dataBinding => dataBinding.Ajax()
                                                 .Select("_AjaxBinding""ControllerName"))
                                             .DataKeys(datakeys => datakeys.Add("Name"))
                                             .Columns(columns =>
                                             {
                                                 columns.Bound(m => m.Name);                                               
                                             })) I have written methods in my controller:
   [HttpPost]
  public ActionResult MasterRoomSettings(FormCollection formCollection)
        {//Settings some session value here
}
 [HttpPost]
        [GridAction]
        public ActionResult _AjaxBinding()
        { } When I run the application, MasterRoomSettings() method gets executed but
_AjaxBinding() is not getting executed. Can someone suggest what is missing here

Tags
General Discussions
Asked by
Amarendra
Top achievements
Rank 1
Share this question
or