how to perform edit in mvc contrb grid - model-view-controller

hi,
please tell me how can i perform editing in mvc contrib grid itself without opening a seperate view for that
thanks in advance

You will need to right the javascript to handle that. Right now the MVC contrib doesn't support in-line editing. I have been using Telerik's MVC grid which has in-line editing and it works pretty good. You might want to check that control to see if it will meet you needs.

Related

JqGrid navigation button function

How can I implement this?
How can I add a textbox and label and save it to the database? I'm using MVC3.
As your question is pretty general I can only offer some links to large sample projects:
jqGrid in ASP.NET MVC 3 and Razor
jqGrid in ASP.NET MVC - Strongly typed helper
The "Form Editing" functionality is covered in both, so you should find what you are looking for. If not please provide some more details to your question.

Using a Telerik control inside a repeater

I am using the asp.net Repeater control. (My company is heavily invested in that, so I can't change it.)
I need a way to create a poup edit window, specific to the row the user clicked on in the repeater, so the user can edit the data in that record.
We have the Telerik controls to use, but I don't know which one. I saw the radwindow, but can find no examples of using it in a repeater. Frankly, Telerik documentation is confusing.
I prefer to use client-side code, ajax and web-services. I'd like to prevent post-backs.
1) Please give me a reference to a specific example of using the Telerik radwindow inside a repeater for this purpose.
OR
2) Clue me in to a better idea.
Thank you.
I don't think there are explicit examples with an asp Repeater, but I found this one with a GridView. The approach should be the same, as it is just another databound control - it shows an easy way to open a RadWindow on the client by passing some parameters (it is actually not possible to open it on the server, it is a client-side object).
Some more complex examples I found on their site here and here. They both update a grid, yet they show a nice way to use AJAX to prevent a full postback.

MVC 3 WebGrid - is inline editing possible?

Has anyone implemented inline editing using the MVC 3 WebGrid helper? I've done a lot of searching on the topic, but haven't found much in the way of suggestions. Also, I'm not in the position of using other 3rd party or open source grids.
Thanks in advance!
There doesn't seem to be a solution for inline editing with the WebGrid, but given that it's open source and you seem to have a specific requirement I suggest you write some inline editing functionality. You could then contribute this back to the community and end up helping other developers with this requirement.
Mike Brind has an article on creating a popup edit from WebGrid
If you don't have the time or inclination then I strongly suggest either;
jqGrid
Telerik MVC Grid
You can add inline editing capability to the WebGrid quite easily. I have written an article about it here: http://www.mikesdotnetting.com/Article/202/Inline-Editing-With-The-WebGrid

in telerk mvc grid, editing and inserting scenarioes with AJAX binding of complex objects

In Telerik documentation we must use server binding when binding complex objects.
How can we activating Insertion and Editing mode in Telerik mvc grid with ajax binding of complex objects?
how we can customize the whole of insert form and edit form
ie. drawing drop down lists for properties of reference types
thanks in advance
How about using server edit template for that, is it applicable? I crawled the online MVC demos on their site and hit upon this one.
I found a solution.
I am using Client Edit Templates for this scenario but there is a problem in the ScriptRegisterar I think, the problem related to registering Telerik DropDown javascript files.
I made initial solution which is to add a line of code to the ScriptRegisterar to explicit register the javascript file "telerik.list.js"
OR add a dummy Telerik DropDown list in the same page where you want it to appear in the grid, and you have to hide it using css.
This is a bug in the final version of telerik 2010.3.1110
Telerik has released the hotfix for this bug in the version 2010.3.1111
check the link and download the hotfix:
http://www.telerik.com/community/forums/aspnet-mvc/grid/script-registrar-not-loading-scripts-for-controls-used-in-client-templates.aspx

How to AJAXify ASP:Wizard Control

Happy Friday All,
I have an ASP.net 2.0 website that I'm updating to .Net 3.5. The site uses a master page and I've placed asp:UpdatePanel in it.
One of the pages has a 3-step wizard control that I'd like to "Ajaxify" in some way. Are there better controls in the AJAX control toolkit that provide an improved user experience over the asp:Wizard control?
Please share with me your efforts to improve upon the asp:Wizard control. Did you move to a different control? Stay with asp:Wizard and add effects to it?
Thanks,
Sid
Kind of late, but I'll answer. I used the Telerik RadAjaxManager control to ajaxify my Wizard control, and I regretted it because of performance issues.
If I were you, I'd pursue setting up divs and use JQuery to selectively show/hide them to emulate a wizard.

Resources