Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to add Drop Down List in kendo grid with own Data Base without using the partial view or Edit template ..


please give me some solution friend
Posted
Updated 29-Oct-19 23:52pm
v3
Comments
kashyapa78 12-Jan-15 1:29am    
sorry but your question is not clear at all ... what is the scenario you are trying to code .. what have you tried so far ... have you looked at the kendo ui demos ?

please elaborate your question and make it clear so that others can understand it...

Kendo Telerik Grid View Drop Down Box, Tried and Tested code.... for grid view Drop Down box

SQL
column =>
            {
                column.Bound(e => e.CountryID).ClientTemplate(

                    @Html.DropDownListFor(model => model.CountryID, new SelectList(ViewBag.Country,"text","value"), "---  Select ---", new { @class = "form-control dropdownErp", @id = "inputSelect" }).ToString()).Title("Country Name");


             }
 
Share this answer
 
Comments
Er. Pradeep Kumar Rai 4-Feb-15 1:23am    
Thank you Ms. Raj
wdomains 27-Feb-22 19:30pm    
Great answer but I'm having trouble getting it to work.

It errors on this line
@Html.DropDownListFor(model => model.CountryID

with this error below - any idea what I am doing wrong? I do have a property definition for CountryID

CS1061: 'IEnumerable<documentlistmodel>' does not contain a definition for 'CountryID' and no accessible extension method 'CountryID' accepting a first argument of type 'IEnumerable<documentlistmodel>' could be found
Kendo Grid Editable Column with DropDown[^]

Kendo MVC grid DDL[^]

Follow the above links, you will get the information and also code snippet example for your query.

Thanks
 
Share this answer
 
hi how to add the @Html.DropDownListFor inside rowclientemplate of kendo grid.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900