FORUMS

c360 Forums
 Home        Members    Calendar    Who's On

Welcome Guest ( Login | Register )
      



Actions Menu on GridExpand / Collapse
Message
Posted 4/3/2007 1:43:01 PMPost #1347
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
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 PMPost #1350
 

c360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guru
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).

 

« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: kanika.jackson, Ken Champion

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 7:38am

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.094. 9 queries. Compression Enabled.