adding autocomplete to grid column

2 posts, 0 answers
  1. Hetal
    Hetal avatar
    28 posts
    Member since:
    Jun 2012

    Posted 15 Jun 2012 Link to this post

    Hello
    I have a grid razor as follows. How can I add auto complete to grid column and not to single text box.
    @(Html.Kendo().Grid(Model)   
        .Name("Grid")
        .Columns(columns =>
        {
            columns.Bound(model => model.MEMBER_ID);
            columns.Bound(model => model.R_MONTH);
            columns.Bound(model => model.PRINT_YN);
            columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
        })
        .ToolBar(toolbar =>
        {
            toolbar.Create();
        })
        .Editable(editable => editable.Mode(GridEditMode.InLine))
        .Pageable()
        .Sortable()
        .Scrollable()
        .DataSource(dataSource => dataSource
            .Ajax()
            .ServerOperation(false)
            .Events(events => events.Error("error_handler"))
            .Model(p => p.Id(model => model.SR_NO))
            .Create(update => update.Action("Editing_Create", "Repost"))
            .Read(read => read.Action("Editing_Read", "Repost"))
            .Update(update => update.Action("Editing_Update", "Repost"))
            .Destroy(update => update.Action("Editing_Destroy", "Repost"))
        )
    )
  2. AspenSquare
    AspenSquare avatar
    60 posts
    Member since:
    Jan 2012

    Posted 19 Nov 2012 Link to this post

    I ended up creating a custom Edit button that launched my edit screen in a modal popup window where I could specify @Html.Kendo().AutoComplete().

    If there is another way to do this I wouldn't mind hearing about it myself.
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top