private void AddRoleNameColumnClientTemplate() { ComponentArt.Web.UI.ClientTemplate roleNameColumn = new ComponentArt.Web.UI.ClientTemplate(); roleNameColumn.ID = "roleNameColumn"; roleNameColumn.Text = "## htmlEncode(parseRoleNameFromGspRoleName(DataItem.getMember('RoleName').get_value()).replace(/#%cLt#%/g, '<')) ##"; gdRoles.ClientTemplates.Add(roleNameColumn); }
private void AddEditColumnClientTemplate() { ComponentArt.Web.UI.ClientTemplate roleEditColumn = new ComponentArt.Web.UI.ClientTemplate(); roleEditColumn.ID = "roleEditColumn"; roleEditColumn.Text = String.Format(CultureInfo.InvariantCulture, @"<p> <a id=""## makeValidForId(DataItem.getMember('RoleName').get_value()) ##"" href=""javascript:editRole(decodeURI('## getRoleName(DataItem) ##'));"" title=""{0}"">{1}</a> <a href=""javascript:hideUserMessage();if (ConfirmDelete(decodeURI('## getRoleName(DataItem) ##'))) gdRoles.deleteItem(gdRoles.getItemFromKey(0, '## getRoleNameNoEncode(DataItem) ##'));""> {2}</a> </p>" , Resources.GalleryServerPro.Admin_Manage_Roles_Edit_Role_Tooltip_Text, Resources.GalleryServerPro.Admin_Manage_Roles_Edit_Role_Hyperlink_Text, Resources.GalleryServerPro.Admin_Manage_Roles_Delete_Role_Hyperlink_Text); gdRoles.ClientTemplates.Add(roleEditColumn); }
private void AddRoleNameColumnClientTemplate() { ComponentArt.Web.UI.ClientTemplate roleNameColumn = new ComponentArt.Web.UI.ClientTemplate(); roleNameColumn.ID = "roleNameColumn"; roleNameColumn.Text = "## htmlEncode(parseRoleNameFromGspRoleName(DataItem.getMember('RoleName').get_value()).replace(/#%cLt#%/g, '<')) ##"; gdRoles.ClientTemplates.Add(roleNameColumn); }
private void AddEditColumnClientTemplate() { ComponentArt.Web.UI.ClientTemplate roleEditColumn = new ComponentArt.Web.UI.ClientTemplate(); roleEditColumn.ID = "roleEditColumn"; roleEditColumn.Text = String.Format(CultureInfo.InvariantCulture, @"<p> <a id=""## makeValidForId(DataItem.getMember('RoleName').get_value()) ##"" href=""javascript:editRole(decodeURI('## getRoleName(DataItem) ##'));"" title=""{0}"">{1}</a> <a href=""javascript:hideUserMessage();if (ConfirmDelete(decodeURI('## getRoleName(DataItem) ##'))) gdRoles.deleteItem(gdRoles.getItemFromKey(0, '## getRoleNameNoEncode(DataItem) ##'));""> {2}</a> </p>", Resources.GalleryServerPro.Admin_Manage_Roles_Edit_Role_Tooltip_Text, Resources.GalleryServerPro.Admin_Manage_Roles_Edit_Role_Hyperlink_Text, Resources.GalleryServerPro.Admin_Manage_Roles_Delete_Role_Hyperlink_Text); gdRoles.ClientTemplates.Add(roleEditColumn); }