This question is locked. New answers and comments are not allowed.
Frank Michael
Top achievements
Rank 1
Frank Michael
asked on 20 May 2010, 02:12 PM
When I go to edit mode, the row values are empty.
I am using Ajax binding.
I am using Ajax binding.
| Html.Telerik().Grid<WorkitemGridRow>() |
| //.BindTo(Model.gridRows) |
| .Name("WorkitemGrid") |
| .Localizable("de-DE") //ToDo Culture allgemein ersetzen |
| .ToolBar(tb => |
| { |
| tb.Insert() |
| .HtmlAttributes(new { id = "toolbar-action-insert" }); |
| }) |
| .DataBinding(b => b.Ajax() |
| .Select<WorkitemController>(Model.ajaxSelectAction) |
| .Delete<WorkitemController>(sc => sc.AjaxGridDelete(String.Empty)) // Parameter is added by Grid engine |
| .Insert<WorkitemController>(sc => sc.AjaxGridInsert(Model.fatherKey ?? String.Empty)) |
| .Update<WorkitemController>(sc => sc.AjaxGridUpdate(String.Empty, String.Empty)) // Parameter is added by Grid engine |
| ) |
| .DataKeys(k => k.Add(r => r.RowKey).RouteKey("id")) |
| .Columns(c => |
| { |
| c.Command(s => |
| { |
| s.Select(); |
| s.Edit(); |
| if(Model.viewActionDelete) s.Delete(); |
| }).Width(250); |
| c.Bound(r => r.Title).Width(250); |
| if (Model.viewSprints) c.Bound(s => s.SprintModel) |
| .ClientTemplate("<# if (SprintModel) { #><#= SprintModel.Title#> <#} else { #> none <# } #>") |
| .ReadOnly(false).Width(250).Title("Sprint"); |
| c.Bound(r => r.RemainingDays).Format("{0}").Width(80).Title("Days").Filterable(false); |
| c.Bound(r => r.RemainingHours).Format("{0}").Width(80).Title("Hours").Filterable(false); |
| c.Bound(r => r.FreeRemainingDays).Format("{0}").ReadOnly(true).Width(80).Title("Free D.").Filterable(false); |
| c.Bound(r => r.FreeRemainingHours).Format("{0}").ReadOnly(true).Width(80).Title("Free H.").Filterable(false); |
| c.Bound(r => r.chartlet).Filterable(false).Width(85) |
| .ClientTemplate("<img src='<#= chartlet #>' alt=''>") |
| .Title("Chart").ReadOnly(true); |
| c.Bound(r => r.Urgent).ReadOnly(false).Width(95) |
| .ClientTemplate("<input type='checkbox' disabled='disabled' name='Urgent' <#= Urgent? checked='checked' : '' #> />"); |
| c.Bound(r => r.Important).ReadOnly(false).Width(95) |
| .ClientTemplate("<input type='checkbox' disabled='disabled' name='Important' <#= Important? checked='checked' : '' #> />"); |
| c.Bound(r => r.Status).ReadOnly(false).Width(150); |
| }) |
| .Sortable() |
| .Pageable() |
| .Groupable() |
| .Filterable() |
| .Render(); |
9 Answers, 1 is accepted
0
Frank Michael
Top achievements
Rank 1
answered on 25 May 2010, 09:51 AM
Im must add, that the strange thing is this.
1. If I have one Grid on the page, it works.
2. If I have more grids on the page it does not work.
I found out that if I want to bind the data in the controller I have to add a prefix.
This makes sense, because many grids have a column "Title" and the documentation does tell, that if more than one grid is on one page, the post will get a prefix.
But I don not understand inasmuch this is related to the row editing. The Editor Templates are just the same as in the cases where it works.
But even if I do not think of the Editor Templates, then I can only think for example about the plain text fields. Even those do not work, but they should work. So it has nothing to do with the editor templates.
So is there an error with this?
But - it works if one grid is on the page.
1. If I have one Grid on the page, it works.
2. If I have more grids on the page it does not work.
I found out that if I want to bind the data in the controller I have to add a prefix.
| if (TryUpdateModel<Note>(note, "noteGrid")) |
| { |
| //note.Title = Request.Form["noteGrid.Title"]; |
| note.ChangedAt = DateTime.UtcNow; |
| note.ChangedBy = System.Web.HttpContext.Current.User.Identity.Name; |
| wiBo.noteNode.Update(note); |
| trans.Save(); |
| } |
This makes sense, because many grids have a column "Title" and the documentation does tell, that if more than one grid is on one page, the post will get a prefix.
But I don not understand inasmuch this is related to the row editing. The Editor Templates are just the same as in the cases where it works.
But even if I do not think of the Editor Templates, then I can only think for example about the plain text fields. Even those do not work, but they should work. So it has nothing to do with the editor templates.
So is there an error with this?
| .DataKeys(k => k.Add(r => r.RowKey).RouteKey("id")) |
But - it works if one grid is on the page.
0
Frank Michael
Top achievements
Rank 1
answered on 25 May 2010, 10:01 AM
This is the code of the Ajax Action where it works:
This is the code of the Ajax Action, where it does not work:
| [Authorize] |
| [GridAction] |
| public ActionResult AjaxGridRootSelect() |
| { |
| var vd = SelectGridModel(String.Empty); |
| return View(new GridModel(vd.gridRows)); |
| } |
This is the code of the Ajax Action, where it does not work:
| [Authorize] |
| [GridAction] |
| public ActionResult AjaxGridSelectForSuper(string fatherId) |
| { |
| MyDebug.Assert(!String.IsNullOrEmpty(fatherId)); |
| var vd = SelectGridModel(fatherId); |
| // Return Json Result |
| return View(new GridModel(vd.gridRows)); |
| } |
0
Hello Frank Michael ,
Unfortunately the submitted code does not indicate what the problem is. We cannot help unless we reproduce the depicted problem somehow. I suggest you prepare a sample project and host it somewhere with public access (rapidshare.com, mediafire.com etc.).
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Unfortunately the submitted code does not indicate what the problem is. We cannot help unless we reproduce the depicted problem somehow. I suggest you prepare a sample project and host it somewhere with public access (rapidshare.com, mediafire.com etc.).
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Frank Michael
Top achievements
Rank 1
answered on 25 May 2010, 10:23 AM
This is the JSON Result, in the case where it works:
This is the Json Result in the case where it does not work:
| {"data":[{"statusSelection":null,"sprintSelection":null,"SprintModel":{"Title":"Funktionales und Optimierungsrelease","Description":null,"Date":"\/Date(1281830400000)\/","RemainingDays":36,"RemainingHours":4.75,"CreatedBy":"Frank","CreatedAt":"\/Date(1272441855389)\/","ChangedBy":"Frank","ChangedAt":"\/Date(1274706811504)\/","Timestamp":"\/Date(1274708125340)\/","PartitionKey":"Frank","RowKey":"7e1a2ed0-230d-4145-9382-80c1ba2c3227"},"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Programmoptimierungen und Performance","SuperWorkitem":null,"Description":null,"Urgent":true,"Important":false,"TopLevel":true,"Status":"Open","Category":null,"Sprint":null,"RemainingDays":4,"RemainingHours":6,"FreeRemainingDays":4,"FreeRemainingHours":6,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":false,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"0041f446-d835-40f1-b757-a086b6f59251"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Google Waves 4","SuperWorkitem":null,"Description":null,"Urgent":false,"Important":true,"TopLevel":true,"Status":"Finished","Category":null,"Sprint":null,"RemainingDays":12,"RemainingHours":2,"FreeRemainingDays":0,"FreeRemainingHours":0,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"037c96df-4e54-4065-b925-6e205800aca5"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Joels Bankleitzahl suchen","SuperWorkitem":null,"Description":null,"Urgent":false,"Important":true,"TopLevel":true,"Status":"Finished","Category":null,"Sprint":null,"RemainingDays":0,"RemainingHours":1,"FreeRemainingDays":0,"FreeRemainingHours":1,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"05077224-a26d-4a28-9227-4d64b6debcda"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Backlog","SuperWorkitem":null,"Description":null,"Urgent":true,"Important":true,"TopLevel":true,"Status":"Finished","Category":null,"Sprint":null,"RemainingDays":6,"RemainingHours":1,"FreeRemainingDays":1,"FreeRemainingHours":0,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"069fa8de-5ae8-470b-989f-cfab2de42365"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Workstream Portal","SuperWorkitem":null,"Description":null,"Urgent":true,"Important":true,"TopLevel":true,"Status":"Finished","Category":null,"Sprint":null,"RemainingDays":35,"RemainingHours":1.5,"FreeRemainingDays":38,"FreeRemainingHours":7.5,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"08e48039-e8f8-471a-b5d9-2dfef8d6b278"},{"statusSelection":null,"sprintSelection":null,"SprintModel":{"Title":"Erste Schulung halten","Description":"Schulung: Improving Knowledge Work\r\nMDA und ERP?\r\n\r\n==> Loosely coupled and tightly coupled processes\r\n==> What is the difference between Tightly coupled processes and Loosely coupled processes?\r\n==> Mastering Tightly coupled Processes\r\n==> Mastering Loosely coupled Processes\r\n==> Deciding when to use which. \r\n","Date":"\/Date(1284508800000)\/","RemainingDays":25,"RemainingHours":0.5,"CreatedBy":"Frank","CreatedAt":"\/Date(1260821702517)\/","ChangedBy":"Frank","ChangedAt":"\/Date(1270822672773)\/","Timestamp":"\/Date(1274708125345)\/","PartitionKey":"Frank","RowKey":"6b59435f-588c-48bd-9e27-47ec5e05b42f"},"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Schulung vorbereiten","SuperWorkitem":null,"Description":null,"Urgent":false,"Important":false,"TopLevel":true,"Status":"Open","Category":null,"Sprint":null,"RemainingDays":18,"RemainingHours":4.5,"FreeRemainingDays":13,"FreeRemainingHours":1,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":false,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"09375b22-e598-40ea-aa66-50a567d43d92"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Private Arbeit","SuperWorkitem":null,"Description":null,"Urgent":false,"Important":false,"TopLevel":true,"Status":"Open","Category":null,"Sprint":null,"RemainingDays":3,"RemainingHours":6,"FreeRemainingDays":2,"FreeRemainingHours":1,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":false,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"397a5f96-b878-44d8-889c-d7071701cf13"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Backlog Emails abarbeiten","SuperWorkitem":null,"Description":null,"Urgent":false,"Important":false,"TopLevel":true,"Status":"Finished","Category":null,"Sprint":null,"RemainingDays":0,"RemainingHours":1.5,"FreeRemainingDays":0,"FreeRemainingHours":1.5,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"552cc0b1-aa84-43e1-8a4b-9e13957e2bbb"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Mit Werten in Fuehrung gehen - Kontakte","SuperWorkitem":null,"Description":null,"Urgent":false,"Important":false,"TopLevel":true,"Status":"In Approval","Category":null,"Sprint":null,"RemainingDays":0,"RemainingHours":1,"FreeRemainingDays":0,"FreeRemainingHours":0,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":false,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"71875d7b-4c5d-4d39-866e-99e36f7f55e5"},{"statusSelection":null,"sprintSelection":null,"SprintModel":{"Title":"Process Driven Workstream Portal auf PinPoint und Asperado veröffenlichen","Description":"i.\tProzess als BPMN Metamodell, aber mit MVC Classic Architektur. \r\nii.\tRückmeldewesen als Grundstock für Portfolio.\r\niii.\tMVC Classic Architektur beschreiben.","Date":"\/Date(1285804800000)\/","RemainingDays":59,"RemainingHours":0.5,"CreatedBy":"Frank","CreatedAt":"\/Date(1261057670698)\/","ChangedBy":"Frank","ChangedAt":"\/Date(1270639444089)\/","Timestamp":"\/Date(1274708125348)\/","PartitionKey":"Frank","RowKey":"34d10875-018a-47fa-8513-4e61446d31f7"},"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Workstream Platform","SuperWorkitem":null,"Description":null,"Urgent":true,"Important":true,"TopLevel":true,"Status":"Started","Category":null,"Sprint":null,"RemainingDays":160,"RemainingHours":0.5,"FreeRemainingDays":57,"FreeRemainingHours":1.5,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":false,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"7af07665-5893-479e-8b51-9ccb1cd3d042"}],"total":113} |
This is the Json Result in the case where it does not work:
| {"data":[{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"SaaS Compliance","SuperWorkitem":null,"Description":null,"Urgent":false,"Important":false,"TopLevel":true,"Status":"Postponed","Category":null,"Sprint":null,"RemainingDays":1,"RemainingHours":0,"FreeRemainingDays":0,"FreeRemainingHours":0,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"04aa4939-9905-4550-9b98-69fc465c50d3"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Group: Important for Business","SuperWorkitem":null,"Description":null,"Urgent":false,"Important":true,"TopLevel":true,"Status":"Finished","Category":null,"Sprint":null,"RemainingDays":2,"RemainingHours":0,"FreeRemainingDays":2,"FreeRemainingHours":0.5,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"17ecea59-b187-4b9c-99bf-9a27aa00d965"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Group: Now for Private","SuperWorkitem":null,"Description":null,"Urgent":true,"Important":true,"TopLevel":true,"Status":"Finished","Category":null,"Sprint":null,"RemainingDays":0,"RemainingHours":7.5,"FreeRemainingDays":1,"FreeRemainingHours":5,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"26356d34-4281-47fd-b3f9-c7d07e4e8ae6"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Reservereifen mit Sommerreifen","SuperWorkitem":null,"Description":null,"Urgent":false,"Important":false,"TopLevel":true,"Status":"Withdrawn","Category":null,"Sprint":null,"RemainingDays":0,"RemainingHours":0.5,"FreeRemainingDays":0,"FreeRemainingHours":0,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"52c9a569-135f-4b7e-af31-b00f1d78cc0b"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Wibkes Cardigan wiederbesorgen","SuperWorkitem":null,"Description":null,"Urgent":true,"Important":false,"TopLevel":true,"Status":"Withdrawn","Category":null,"Sprint":null,"RemainingDays":0,"RemainingHours":1,"FreeRemainingDays":0,"FreeRemainingHours":1,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"5d20dd1a-f3f4-4c1c-83fe-ff5d04666206"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Verschenken und Verleihen Kommunikation","SuperWorkitem":null,"Description":null,"Urgent":false,"Important":false,"TopLevel":true,"Status":"Finished","Category":null,"Sprint":null,"RemainingDays":0,"RemainingHours":1,"FreeRemainingDays":0,"FreeRemainingHours":0,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"93f50857-fd79-4f10-81ad-5bb14459c2fc"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Google AdSense Support","SuperWorkitem":null,"Description":null,"Urgent":true,"Important":false,"TopLevel":true,"Status":"Finished","Category":null,"Sprint":null,"RemainingDays":0,"RemainingHours":0.5,"FreeRemainingDays":0,"FreeRemainingHours":0.5,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"ac6b49f9-a505-4b0b-aa73-95e3dcd51182"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Link of GMF to Robert Shapiro / 20 Conformance Class","SuperWorkitem":null,"Description":null,"Urgent":true,"Important":false,"TopLevel":true,"Status":"Finished","Category":null,"Sprint":null,"RemainingDays":0,"RemainingHours":0.5,"FreeRemainingDays":0,"FreeRemainingHours":0.5,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"aeecc1f1-d3f8-4bc2-a942-8a0ce949472a"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Chatten mit Kindern besprechen","SuperWorkitem":null,"Description":null,"Urgent":false,"Important":false,"TopLevel":true,"Status":"Finished","Category":null,"Sprint":null,"RemainingDays":0,"RemainingHours":1,"FreeRemainingDays":0,"FreeRemainingHours":0,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"afa0cdab-8e02-4e01-a7d5-fcac6601726b"},{"statusSelection":null,"sprintSelection":null,"SprintModel":null,"effort":0,"chartlet":"http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100","Title":"Schriftliche Notizen im obersten Korbfach","SuperWorkitem":null,"Description":null,"Urgent":true,"Important":false,"TopLevel":true,"Status":"Finished","Category":null,"Sprint":null,"RemainingDays":0,"RemainingHours":0.5,"FreeRemainingDays":0,"FreeRemainingHours":0,"CreatedBy":null,"CreatedAt":"\/Date(-62135596800000)\/","ChangedBy":null,"ChangedAt":"\/Date(-62135596800000)\/","isCompleted":true,"Timestamp":"\/Date(-62135596800000)\/","PartitionKey":"Frank","RowKey":"c1b0cefa-14f3-4184-a2aa-3c1d7026b760"}],"total":14} |
0
Hi Frank Michael ,
I still cannot tell what the problem is by inspecting this JSON. Again please send us a running sample if you want us to help.
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
I still cannot tell what the problem is by inspecting this JSON. Again please send us a running sample if you want us to help.
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Frank Michael
Top achievements
Rank 1
answered on 25 May 2010, 10:31 AM
This is the rendered form in the case where it does not work.
This is the form in the case where it works:
| <form id="WorkitemGridform" method="post" action="#" class="t-edit-form"><table cellspacing="0"><col style="width: 213px;"><col style="width: 197px;"><col style="width: 186px;"><col style="width: 74px;"><col style="width: 76px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 87px;"><col style="width: 94px;"><col style="width: 122px;"><tbody><tr><td><a class="t-grid-action t-button t-state-default t-grid-update" href="#">Update</a><a class="t-grid-action t-button t-state-default t-grid-cancel" href="#">Cancel</a></td><td><input type="text" value="" name="subworkitemGrid.Title" id="subworkitemGrid_Title" class="text-box single-line"><span id="subworkitemGrid_Title_validationMessage" class="field-validation-valid"></span></td><td><select name="subworkitemGrid.SprintModel" id="subworkitemGrid_SprintModel"><option value="68d4886b-a86a-4f0b-b713-39219febddf3">Wichtige Private Erledigungen</option> |
| <option value="497f941f-4b32-4b7d-af43-78a7d6c72e9a">Architektur und Usability Release: Heutiger Funktionsumfang mit Ajax</option> |
| <option value="8d6f41b9-1bd0-456c-a39d-803ecb071405">Einzug im TZL B&#252;ro</option> |
| <option value="a0780000003wm0eAAA">Anmeldung der Selbst&#228;ndigkeit</option> |
| <option value="f9221ae3-ac5e-45e8-8f79-5a55bd0215ed">Business Plan und Gr&#252;ndung</option> |
| <option value="7e1a2ed0-230d-4145-9382-80c1ba2c3227">Funktionales und Optimierungsrelease</option> |
| <option value="04db01e7-478c-4c1c-b484-e2eabaed62ca">Beginn der Selbst&#228;ndigkeit</option> |
| <option value="2dfdf30d-bd64-4d63-baf0-cd6ec477e809">Erste Workstream Platform Sales Pr&#228;sentation f&#252;r m&#246;gliche Pilotkunden</option> |
| <option value="6b59435f-588c-48bd-9e27-47ec5e05b42f">Erste Schulung halten</option> |
| <option value="212a7911-7134-4e62-a504-c4d4924756a5">Sp&#228;teste Abgabe Antrag auf Gr&#252;ndungszuschuss (24.9.2010)</option> |
| <option value="34d10875-018a-47fa-8513-4e61446d31f7">Process Driven Workstream Portal auf PinPoint und Asperado ver&#246;ffenlichen</option> |
| <option value="834306c6-59e3-45e0-a22c-880d75a8cc1b">Markterschlie&#223;ung</option> |
| <option value="0ab241d5-3ac3-425a-8415-d9c13456c36f">Provide Coaching Content for Workstream Portal</option> |
| <option value="c4b90fa0-047d-43f9-8a7d-202dd7656994">Umzug nach Stuttgart</option> |
| </select> |
| <span id="subworkitemGrid_SprintModel_validationMessage" class="field-validation-valid"></span></td><td><div id="subworkitemGrid_RemainingDays" class="t-widget t-numerictextbox"><input id="subworkitemGrid_RemainingDays-input-text" name="subworkitemGrid.RemainingDays-text" class="t-input"><a title="Increase value" tabindex="-1" href="#" class="t-link t-icon t-arrow-up">Increment</a><a title="Decrease value" tabindex="-1" href="#" class="t-link t-icon t-arrow-down">Decrement</a><input value="0" name="subworkitemGrid.RemainingDays" id="subworkitemGrid_RemainingDays-input" class="t-input" style="display: none;"></div><span id="subworkitemGrid_RemainingDays_validationMessage" class="field-validation-valid"></span></td><td><div id="subworkitemGrid_RemainingHours" class="t-widget t-numerictextbox"><input id="subworkitemGrid_RemainingHours-input-text" name="subworkitemGrid.RemainingHours-text" class="t-input"><a title="Increase value" tabindex="-1" href="#" class="t-link t-icon t-arrow-up">Increment</a><a title="Decrease value" tabindex="-1" href="#" class="t-link t-icon t-arrow-down">Decrement</a><input value="0" name="subworkitemGrid.RemainingHours" id="subworkitemGrid_RemainingHours-input" class="t-input" style="display: none;"></div><span id="subworkitemGrid_RemainingHours_validationMessage" class="field-validation-valid"></span></td><td>0</td><td>0</td><td><img alt="" src="http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100"></td><td><input type="checkbox" value="true" name="subworkitemGrid.Urgent" id="subworkitemGrid_Urgent" class="check-box"><input type="hidden" value="false" name="subworkitemGrid.Urgent"><span id="subworkitemGrid_Urgent_validationMessage" class="field-validation-valid"></span></td><td><input type="checkbox" value="true" name="subworkitemGrid.Important" id="subworkitemGrid_Important" class="check-box"><input type="hidden" value="false" name="subworkitemGrid.Important"><span id="subworkitemGrid_Important_validationMessage" class="field-validation-valid"></span></td><td class="t-last"><select name="subworkitemGrid.Status" id="subworkitemGrid_Status"><option value="Approved">Approved</option> |
| <option value="Finished">Finished</option> |
| <option value="InApproval">In Approval</option> |
| <option value="Open">Open</option> |
| <option value="Planned">Planned</option> |
| <option value="Postponed">Postponed</option> |
| <option value="Rejected">Rejected</option> |
| <option value="Started">Started</option> |
| <option value="Withdrawn">Withdrawn</option> |
| </select><span id="subworkitemGrid_Status_validationMessage" class="field-validation-valid"></span></td></tr></tbody></table></form> |
This is the form in the case where it works:
| <form id="WorkitemGridform" method="post" action="#" class="t-edit-form"><table cellspacing="0"><col style="width: 214px;"><col style="width: 216px;"><col style="width: 207px;"><col style="width: 74px;"><col style="width: 76px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 88px;"><col style="width: 94px;"><col style="width: 123px;"><tbody><tr><td><a class="t-grid-action t-button t-state-default t-grid-update" href="#">Update</a><a class="t-grid-action t-button t-state-default t-grid-cancel" href="#">Cancel</a></td><td><input type="text" value="" name="Title" id="Title" class="text-box single-line"><span id="Title_validationMessage" class="field-validation-valid"></span></td><td><select name="SprintModel" id="SprintModel"><option value=""><none></option><option value="68d4886b-a86a-4f0b-b713-39219febddf3">Wichtige Private Erledigungen</option> |
| <option value="497f941f-4b32-4b7d-af43-78a7d6c72e9a">Architektur und Usability Release: Heutiger Funktionsumfang mit Ajax</option> |
| <option value="8d6f41b9-1bd0-456c-a39d-803ecb071405">Einzug im TZL B&#252;ro</option> |
| <option value="a0780000003wm0eAAA">Anmeldung der Selbst&#228;ndigkeit</option> |
| <option value="f9221ae3-ac5e-45e8-8f79-5a55bd0215ed">Business Plan und Gr&#252;ndung</option> |
| <option value="7e1a2ed0-230d-4145-9382-80c1ba2c3227">Funktionales und Optimierungsrelease</option> |
| <option value="04db01e7-478c-4c1c-b484-e2eabaed62ca">Beginn der Selbst&#228;ndigkeit</option> |
| <option value="2dfdf30d-bd64-4d63-baf0-cd6ec477e809">Erste Workstream Platform Sales Pr&#228;sentation f&#252;r m&#246;gliche Pilotkunden</option> |
| <option value="6b59435f-588c-48bd-9e27-47ec5e05b42f">Erste Schulung halten</option> |
| <option value="212a7911-7134-4e62-a504-c4d4924756a5">Sp&#228;teste Abgabe Antrag auf Gr&#252;ndungszuschuss (24.9.2010)</option> |
| <option value="34d10875-018a-47fa-8513-4e61446d31f7">Process Driven Workstream Portal auf PinPoint und Asperado ver&#246;ffenlichen</option> |
| <option value="834306c6-59e3-45e0-a22c-880d75a8cc1b">Markterschlie&#223;ung</option> |
| <option value="0ab241d5-3ac3-425a-8415-d9c13456c36f">Provide Coaching Content for Workstream Portal</option> |
| <option value="c4b90fa0-047d-43f9-8a7d-202dd7656994">Umzug nach Stuttgart</option> |
| </select> |
| <span id="SprintModel_validationMessage" class="field-validation-valid"></span></td><td><div id="RemainingDays" class="t-widget t-numerictextbox"><input id="RemainingDays-input-text" name="RemainingDays-text" class="t-input"><a title="Increase value" tabindex="-1" href="#" class="t-link t-icon t-arrow-up">Increment</a><a title="Decrease value" tabindex="-1" href="#" class="t-link t-icon t-arrow-down">Decrement</a><input value="0" name="RemainingDays" id="RemainingDays-input" class="t-input" style="display: none;"></div><span id="RemainingDays_validationMessage" class="field-validation-valid"></span></td><td><div id="RemainingHours" class="t-widget t-numerictextbox"><input id="RemainingHours-input-text" name="RemainingHours-text" class="t-input"><a title="Increase value" tabindex="-1" href="#" class="t-link t-icon t-arrow-up">Increment</a><a title="Decrease value" tabindex="-1" href="#" class="t-link t-icon t-arrow-down">Decrement</a><input value="0" name="RemainingHours" id="RemainingHours-input" class="t-input" style="display: none;"></div><span id="RemainingHours_validationMessage" class="field-validation-valid"></span></td><td>4</td><td>6</td><td><img alt="" src="http://chart.apis.google.com/chart?chs=50x50&cht=p&chd=t:0,100"></td><td><input type="checkbox" value="true" name="Urgent" id="Urgent" class="check-box"><input type="hidden" value="true" name="Urgent"><span id="Urgent_validationMessage" class="field-validation-valid"></span></td><td><input type="checkbox" value="false" name="Important" id="Important" class="check-box"><input type="hidden" value="false" name="Important"><span id="Important_validationMessage" class="field-validation-valid"></span></td><td class="t-last"><select name="Status" id="Status"><option value="Approved">Approved</option> |
| <option value="Finished">Finished</option> |
| <option value="InApproval">In Approval</option> |
| <option value="Open">Open</option> |
| <option value="Planned">Planned</option> |
| <option value="Postponed">Postponed</option> |
| <option value="Rejected">Rejected</option> |
| <option value="Started">Started</option> |
| <option value="Withdrawn">Withdrawn</option> |
| </select><span id="Status_validationMessage" class="field-validation-valid"></span></td></tr></tbody></table></form> |
0
Frank Michael
Top achievements
Rank 1
answered on 26 May 2010, 11:17 AM
Here I have a sample project that shows the problem:
http://cid-a7d5afee7d992a7a.skydrive.live.com/self.aspx/Telerik/GridEditRowProblem.zip
http://cid-a7d5afee7d992a7a.skydrive.live.com/self.aspx/Telerik/GridEditRowProblem.zip
0
Accepted
Hi Frank Michael ,
Thank you for providing a sample project. It really helped me understand the case and find what the problem was.
The edit row remains empty as the current implementation of the grid does not work well when used along DisplayFor:
<%= Html.DisplayFor(m=>m.subworkitemGrid,"WorkitemGrid") %>
The reason is that in this case the editor controls (textboxes, selects etc) are prefixed with "subworkitemGrid". The grid didn't understand those prefixes and failed to populate the edit controls. As a side effect the code I'd sent you earlier for populating a dropdown didn't work too.
I have now implemented support for prefixes in the edit controls. You can find attached an updated version of your project. It contains the patched grid (assemblies, JavaScript and CSS files) as well as updated SprintSelection.ascx.
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Thank you for providing a sample project. It really helped me understand the case and find what the problem was.
The edit row remains empty as the current implementation of the grid does not work well when used along DisplayFor:
<%= Html.DisplayFor(m=>m.subworkitemGrid,"WorkitemGrid") %>
The reason is that in this case the editor controls (textboxes, selects etc) are prefixed with "subworkitemGrid". The grid didn't understand those prefixes and failed to populate the edit controls. As a side effect the code I'd sent you earlier for populating a dropdown didn't work too.
I have now implemented support for prefixes in the edit controls. You can find attached an updated version of your project. It contains the patched grid (assemblies, JavaScript and CSS files) as well as updated SprintSelection.ascx.
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Frank Michael
Top achievements
Rank 1
answered on 26 May 2010, 07:45 PM
Fantastic. Thank you. !!