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

Dropdown in Kendo().Grid

1 Answer 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
LMG
Top achievements
Rank 1
LMG asked on 24 Apr 2014, 05:44 PM
Hello
my requirement is to put three controls in one column of Kendo grid()
1st two Controls are a dropdown list and 3rd control is numeric field with will have value like '0000.0000345'
here is my column code looks like

columns.Bound(o => o.MicGreaterLess).Title("MIC").Width(175).Encoded(false).ClientTemplate(
@Html.Kendo().DropDownList()
.Name("MICGreaterLess")
.DataTextField("Text")
.DataValueField("Value")
.Value("1")
.BindTo(
new List<SelectListItem>(){  new SelectListItem() { Text = "=", Value = "1" },
new SelectListItem() { Text = "&lt;", Value = "2" },
new SelectListItem() { Text = "&gt;", Value = "3" }
})
.HtmlAttributes(new { Style = "width:20px;" })
.ToClientTemplate()
.ToHtmlString()
+ " " +
@Html.TextBox("UOM", "uom", new { Style = "width:50px;" }).ToHtmlString()
+ " " +
@Html.TextBox("Value", "value", new { Style = "width:50px;" }).ToHtmlString()
).HtmlAttributes(new { Style = "vertical-align:top" });

after this all I see in the grid is three text boxs with the value 1, 'UOM', 'Value' (I need to see the drop down for 1st two controls)
and when the user selects I should be able to save these values in db.

please help - thanks in adv.

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 28 Apr 2014, 10:36 AM
Hello Vikas,

I already replied to this query in ticket #813392. Please keep in mind that it is highly recommended that you keep related questions in one support ticket or a forum post, so we can easily keep track of your support history and provide you with more exhaustive answers.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
LMG
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or