Hi,
I want to show Employee data on telerik grid.in EMP Table. One column is EMP Status.
EMPStatus is a dropdown which contains temp n perm values..if EMP status is Temp then i want to show that particular record in Editable mode without using Edit Button like bydefault i want show dat record data in grid various controls like name in textbox.job in dropdown,...etc.the default value of particular control is database value.when the grid loads i want to show Temp status record in editable mode by deafult.there is no edit button here...presently i am using client template...like
columns.bound(b=>b.EMPNAME).ClientTemplate(
"<# if(EMPSTATUS =='TEMP'){#>" + (Html.Telerik().AutoComplete().Name("xx").BindTo((IEnumerable<string>)ViewData["xxx"]).Value("yyyy")) + " <#} else { #>" +"<div><#= name#></div>" + " <# }#>").Title("xxx").Width(120);
Here the problem is i am using client template to each column.my question is this is the Correct way.if not which is the best way.
and one more problem is am not getting the hiredate value in datepicker text box even i am using ".Value("<#= HireDate#>") " for that particular record date colmn.when i am giving like this .value("03/04/2012") working.i tried with typecasting the date also i didnt get it.please help me with sample code.thanks in advance..