Coder Social home page Coder Social logo

superroma / mvc-datagrid-how-to-use-dropdownbox-as-a-column-editor-in-edit-mode-t576412 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 5.0 5.66 MB

DevExtreme, DevExtreme (ASP.NET MVC), Data Grid

Home Page: https://codecentral.devexpress.com/t576412

License: Other

C# 0.25% ASP 0.01% JavaScript 99.75%

mvc-datagrid-how-to-use-dropdownbox-as-a-column-editor-in-edit-mode-t576412's Introduction

MVC DataGrid - How to use DropDownBox as a column editor in edit mode

This example illustrates how to define dxDropDownBox with an embedded dxDataGrid for editing data in MVC via an EditCellTemplate. Run the example and check the State column to see this approach in action.

For a client-side solution, please refer to the dxDataGrid - How to use dxDropDownBox as a column editor in edit mode example.

Click the "Show Implementation Details" link to see step-by-step instructions.

Description

Perform the following steps to complete this task: 

1. Use EditCellTemplate to define MVC DropDownBox for a required column.
2.  Implement the Template function to define MVC DataGrid and handle its selectionChanged event to pass selected keys to DropDownBox. In addition, handle the dxDropDownBox.valueChanged event to adjust the DataGrid selection
3. Use CellTemplate to covert an array of selected keys to a human-readable text.

For more information about MVC templates, please review the Implementing Templates help topic.


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.