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

Start in Insert Mode

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sean Sparkman
Top achievements
Rank 2
Sean Sparkman asked on 15 Jun 2010, 03:55 PM
I want to be able to have an action to put a grid in insert mode.

.Action("Create", "Move", new { Moves-mode = "Insert" } );

This obviously doesn't work, because Moves-mode is not a valid field name.  Is there another way to set the grid into insert mode?

1 Answer, 1 is accepted

Sort by
0
Sean Sparkman
Top achievements
Rank 2
answered on 15 Jun 2010, 04:41 PM
Nevermind.  I figured out the answer to my own question.
        <
            RouteValueDictionary route = new RouteValueDictionary(); 
            route.Add("Moves-mode", "Insert"); 
        %> 
        <%= Html.Telerik().Menu() 
                .Name("MainMenu") 
                .Items(menu => 
                { 
                    menu.Add() 
                        .Text("Seating") 
                        .ImageUrl("~/Content/Images/building.png") 
                        .Action("Index", "Home"); 
                     
                    menu.Add() 
                        .Text("Create Move") 
                        .ImageUrl("~/Content/Images/building_go.png") 
                        .Action("Index", "Move", route); 
                })  
        %> 
Tags
Grid
Asked by
Sean Sparkman
Top achievements
Rank 2
Answers by
Sean Sparkman
Top achievements
Rank 2
Share this question
or