Posted 4/3/2007 1:43:01 PM | | | | Issues: 1.when I set Allowcreatenew = true in the grid, I am able to enter new values and save it, but the grid is not refreshed. So I added a custom action page as a work aroudn to open the crm form using javascript and from there the c360 grid is refreshed automatically refershed 2.The delete button was missing, so I added as a menu item and added a custom action page. 2.The standard actions menu is missing. Do I have to create a new menu item to add activate, Assign myself ? Do I have to write aspx page for each one of those actions? If anyone has come across this, Please post your answers. Code below: // Create a new grid IGrid objGrid = ControlFactory.CreateGrid(); objGrid.ID = "AssociatedCustomerFleet"; objGrid.ReturnedTypeCode = detailHome.GetObjectType(); objGrid.EntityTypeCode = int.Parse(Instance.ObjType);objGrid.EntityId = Instance.ObjId; objGrid.SearchingStyle = SearchingStyles.None; objGrid.ViewsSelectorStyle = ViewsSelectorStyles.None; objGrid.ShowEntityIcon = false;objGrid.ShowJumpBar = true;objGrid.DistinctRecords = false;objGrid.FetchDataPage = "AssociatedCustomerFleet_GridData.aspx"; objGrid.RecordsPerPage = 50; objGrid.AllowExportToExcel= false;objGrid.AllowPrint= false;objGrid.AllowCreateNew= false;objGrid.IncludeStandardActions = true;objGrid.DoubleClickEventHandler = "EditRecord"; int objectType = detailHome.GetObjectType();IMenuItemsCollection menu = ControlFactory.CreateMenuItemsCollection(); menu.Add(ControlFactory.CreateMenuItem("New Customer Fleet", "~/Toolkit/Images/tritonbox.gif", "Click here to create a new customer fleet", "CreateNewRecord(" + objectType + ")", true));menu.AddSeparator(); menu.Add(ControlFactory.CreateMenuItem("", "~/Toolkit/Images/16_print.gif", "Print", string.Concat("c360GridExport_", objGrid.ID, "(\"print\", false)")));menu.Add(ControlFactory.CreateMenuItem("", "~/Toolkit/Images/Excel.gif", "Export to Excel", string.Concat("c360GridExport_", objGrid.ID, "(\"excel\", true)")));menu.AddSeparator(); menu.Add(ControlFactory.CreateMenuItem("", "~/Toolkit/Images/ico_16_delete.gif", "Delete", "DeleteRecords()", true));menu.AddSeparator(); objGrid.MenuItems = menu; |
| Posted 4/4/2007 4:44:06 PM | | | | Make sure that you have the latest version. There was a defect number DE1112 which was fixed a while ago that was related to the grid not always refreshing when it was supposed to. Also, version 3.0.9 introduced a few new features, one of which helps you override the standard "New" functionality without having to remove all buttons and adding them back programmatically (which was the workaround until this new feature was introduce).
|
| |
|