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

adding autocomplete to grid column

1 Answer 183 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Hetal
Top achievements
Rank 1
Hetal asked on 15 Jun 2012, 10:43 AM
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"))
    )
)

1 Answer, 1 is accepted

Sort by
0
AspenSquare
Top achievements
Rank 1
answered on 19 Nov 2012, 09:01 PM
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.
Tags
AutoComplete
Asked by
Hetal
Top achievements
Rank 1
Answers by
AspenSquare
Top achievements
Rank 1
Share this question
or