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

Grid - Popup Editor

3 Answers 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 14 Jul 2014, 07:44 PM
Trying to implement the popup editor as per http://demos.telerik.com/aspnet-mvc/grid/editing-popup

I already have grid displaying data (index.cshtml) but now not sure how to incorporate the .cshtml and .cs "files" displayed on this page.

First question is, why is there only one .cshtml page but multiple controllers on the .cs page?  Is there supposed to be just one .cshtml page and I should place everything in it (in this case index.cshtml)?

Thanks,

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 16 Jul 2014, 07:32 AM
Hello Bruce,


I answered the question in the support thread on the same topic. Let me know if the answer was helpful or I could provide further assistance?

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Bruce
Top achievements
Rank 1
answered on 18 Jul 2014, 03:04 PM
Hi Dimiter,

I'm looking at the example code in the example project (C:\Program Files\Telerik\UI for ASP.NET MVC Q2 2014\wrappers\aspnetmvc\Examples\VS2012\Kendo.Mvc.Examples.sln)

1. Is "Editing_PopupController.cs" the controller for http://localhost:56541/razor/grid/editing-popup?  When I click on the <Add new record> and <Edit> buttons the pop-up appears but the code execution is not stopping at the breakpoints I have set in the methods on that page.

2. Also, when I select 'Go To View' I get the message "Unable to find matching view"

3. In the controller I see the method EditingPopup_Read() which returns "Json(productService.Read().ToDataSourceResult(request));"  How do I set up my _Read() method?  Here is my Index() method:

     public ActionResult Index()
     {
         SpreadMasterEntities contextDM = new SpreadMasterEntities();
         var phonebook = contextDM.tbl_spm_phonebook;

         return View(phonebook.ToList());
     }

Thanks again!

-Bruce
0
Dimiter Madjarov
Telerik team
answered on 21 Jul 2014, 12:19 PM
Hello Bruce,


I will go straight to the questions:
  1. Yes, this is the correct controller for the PopUp editing demo. If the project is started in debug mode, the break points in the Action methods should be hit.
  2. The corresponding Views are placed in the Areas/razor (or aspx)/Views/grid/
  3. I would suggest to run through the following getting started pages - Ajax Binding and Ajax Editing. They will demonstrate in a step-by-step manner how to configure an editable Ajax Grid. The same tutorial could be found for a server bound Grid - Server Binding and Server Editing.

I hope this information helps.

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Bruce
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Bruce
Top achievements
Rank 1
Share this question
or