Hi
I'm trying to update my MVC grid and it will not do it. I have looked are you examples but to no avail and have no hair left. :)
I am using VS2012. Entity Framework, .NET 4 with your Essenital Studio Version 10.4.0.71 components.
Once I double click or select the row and click onto the edit button in the toolbar it will not go into edit mode, but I have captured the request and response Fiddler Information is as follows -
Request:
GridRequestParams
| {"RequestType":9,"gridID":"CAREUserGrid","PrimaryKeys":["User_ID"],"PrimaryKeyValues":["5"],"GridSaveMapper":"/CAREUser/SaveMembership","GridEditMode":"Normal"} |
ClientObject | {"AutoFormat":9,"AllowSorting":true,"AllowPaging":true,"AllowGrouping":false,"HttpRequestType":"post","ShowCaption":true,"ShowRowHeader":false,"VisibleColumns":[{"Name":"User_ID","Member":"User_ID","type":"Int32","HeaderText":"User ID","FormatText":"","JqueryFormat":"","Visible":true,"CssName":null,"Width":-1,"AllowFilter":true,"IsUnbound":false,"cellEditType":0,"numericEditParams":null,"percentEditParams":null,"maskEditParams":null,"TemplateColumn":false,"TemplateName":null,"AllowEditing":true,"ResizeSettings":true,"TextAlign":0,"AllowAutoWrap":true,"AllowSearching":true,"AllowContextMenu":true,"AllowFormatinEditMode":false,"HtmlEncode":false,"GridCommands":""},{"Name":"Account_Name","Member":"Account_Name","type":"String","HeaderText":"Account Name","FormatText":"","JqueryFormat":"","Visible":true,"CssName":null,"Width":-1,"AllowFilter":true,"IsUnbound":false,"cellEditType":0,"numericEditParams":null,"percentEditParams":null,"maskEditParams":null,"TemplateColumn":false,"TemplateName":null,"AllowEditing":true,"ResizeSettings":true,"TextAlign":0,"AllowAutoWrap":true,"AllowSearching":true,"AllowContextMenu":true,"AllowFormatinEditMode":false,"HtmlEncode":false,"GridCommands":""},{"Name":"Name","Member":"Name","type":"String","HeaderText":"Name","FormatText":"","JqueryFormat":"","Visible":true,"CssName":null,"Width":-1,"AllowFilter":true,"IsUnbound":false,"cellEditType":0,"numericEditParams":null,"percentEditParams":null,"maskEditParams":null,"TemplateColumn":false,"TemplateName":null,"AllowEditing":true,"ResizeSettings":true,"TextAlign":0,"AllowAutoWrap":true,"AllowSearching":true,"AllowContextMenu":true,"AllowFormatinEditMode":false,"HtmlEncode":false,"GridCommands":""},{"Name":"Mail_Address","Member":"Mail_Address","type":"String","HeaderText":"Mail Address","FormatText":"","JqueryFormat":"","Visible":true,"CssName":null,"Width":-1,"AllowFilter":true,"IsUnbound":false,"cellEditType":0,"numericEditParams":null,"percentEditParams":null,"maskEditParams":null,"TemplateColumn":false,"TemplateName":null,"AllowEditing":true,"ResizeSettings":true,"TextAlign":0,"AllowAutoWrap":true,"AllowSearching":true,"AllowContextMenu":true,"AllowFormatinEditMode":false,"HtmlEncode":false,"GridCommands":""},{"Name":"Description","Member":"Description","type":"String","HeaderText":"Description","FormatText":"","JqueryFormat":"","Visible":true,"CssName":null,"Width":-1,"AllowFilter":true,"IsUnbound":false,"cellEditType":0,"numericEditParams":null,"percentEditParams":null,"maskEditParams":null,"TemplateColumn":false,"TemplateName":null,"AllowEditing":true,"ResizeSettings":true,"TextAlign":0,"AllowAutoWrap":true,"AllowSearching":true,"AllowContextMenu":true,"AllowFormatinEditMode":false,"HtmlEncode":false,"GridCommands":""},{"Name":"Department","Member":"Department","type":"String","HeaderText":"Department","FormatText":"","JqueryFormat":"","Visible":true,"CssName":null,"Width":-1,"AllowFilter":true,"IsUnbound":false,"cellEditType":0,"numericEditParams":null,"percentEditParams":null,"maskEditParams":null,"TemplateColumn":false,"TemplateName":null,"AllowEditing":true,"ResizeSettings":true,"TextAlign":0,"AllowAutoWrap":true,"AllowSearching":true,"AllowContextMenu":true,"AllowFormatinEditMode":false,"HtmlEncode":false,"GridCommands":""},{"Name":"Location","Member":"Location","type":"String","HeaderText":"Location","FormatText":"","JqueryFormat":"","Visible":true,"CssName":null,"Width":-1,"AllowFilter":true,"IsUnbound":false,"cellEditType":0,"numericEditParams":null,"percentEditParams":null,"maskEditParams":null,"TemplateColumn":false,"TemplateName":null,"AllowEditing":true,"ResizeSettings":true,"TextAlign":0,"AllowAutoWrap":true,"AllowSearching":true,"AllowContextMenu":true,"AllowFormatinEditMode":false,"HtmlEncode":false,"GridCommands":""}],"PageSize":30,"CurrentIndex":0,"AllowDeleting":false,"GroupedColumns":[],"CaptionText":"{Caption} : {TotalRecordsCount} Items","Caption":"CARE Users","TotalRecordsCount":352,"EnableOnDemand":false,"AllowSummaries":false,"CurrentPageNo":1,"AllowFiltering":true,"AllowFormatFiltering":false,"AllowFormatGrouping":false,"SortColumn":[],"SortDirection":[],"FilterConditions":[],"AllowEditing":true,"ResizeSettings":{"ResizeToFit":true,"ClipContent":true},"AllowAutoWrap":false,"ShowStackedHeader":false,"StackedColumns":[],"MergeCells":[],"StackedRows":[],"AllowSearching":true,"SearchConditions":[],"ChildGrid":"","AllowNew":false,"AllowAlternateRowStyle":false,"Culture":"en-AU","FilterMode":"Default"} |
RequestType | 9 |
gridID | CAREUserGrid |
EnableOnDemand | false |
Response Error Message:
"No generic method 'Where' on type 'System.Linq.Queryable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic."
What am I doing wrong?
Attached are my controller and view code.
Thanks
Paul
Hi
Thanks.
I have found the error in my ways of how to look at the interaction between the
Grid and Controller: I realise I have to create the repository classes to
handle the editing, etc..
Cheers
Paul