or
| .permission_headerstyle, .permission_headerstyle th |
| { |
| cursor:default; |
| background-color:#fff; |
| border-top:solid 1px #fff; |
| border-bottom:solid 2px #ddd; |
| border-right:solid 10px #fff; |
| font-size:12px; |
| font-weight:bold; |
| color:#003366; |
| height:20px; |
| padding-top:5px; |
| padding-left:10px; |
| } |
| .permission_headerstyle a |
| { |
| color:#003366; |
| } |
| .permission_itemstyle, .permission_itemstyle td |
| { |
| background-color:#fff; |
| border-bottom:solid 1px #ddd; |
| border-right:solid 10px #fff; |
| font-size:12px; |
| padding-top:5px; |
| padding-left:10px; |
| vertical-align: middle; |
| } |
| .permission_itemstyle a |
| { |
| font-size:12px; |
| color:#000; |
| } |
| .permission_alternate_itemstyle td |
| { |
| background-color:#fff; |
| border-bottom:solid 1px #ddd; |
| border-right:solid 10px #fff; |
| font-size:12px; |
| padding-top:5px; |
| padding-left:10px; |
| } |
| .permission_alternate_itemstyle a |
| { |
| font-size:12px; |
| color:#000; |
| } |
| .permission_selecteditem td |
| { |
| background-color:#f7fdea; |
| padding:0px; |
| border:0px; |
| padding-left:10px; |
| border-right:solid 10px #f7fdea; |
| border-bottom:solid 1px #ddd; |
| padding-top:5px; |
| } |

|
Requirements |
|
| RadControls version |
2009.1.402.35 |
| .NET version |
3.5 SP1 |
| Visual Studio version |
2008 SP1 |
| programming language |
VB.NET / JavaScript |
| browser support |
all browsers supported by RadControls |
| <telerik:RadGrid ID="gridFundList" runat="server" AllowMultiRowSelection="false" |
| AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false" |
| AllowFilteringByColumn="false" AllowPaging="false" AllowSorting="false" ShowGroupPanel="false" |
| ShowFooter="false" ShowHeader="true" ShowStatusBar="true"> |
| <MasterTableView DataKeyNames="FundID" AutoGenerateColumns="false" ShowFooter="true"> |
| <Columns> |
| <telerik:GridButtonColumn UniqueName="Toggle" ButtonType="ImageButton" ImageUrl="~/images/buttonicons/lightbulb_off.png" |
| CommandName="ToggleReadable" ConfirmDialogType="RadWindow" ConfirmText="Are you sure you wish to change the global access settings for this fund?<br/><br/><strong>All</strong> applied rules for individual users <strong>will be</strong> removed.<br/><br/>Click <strong>OK</strong> to continue." |
| ConfirmTitle="Change Global Settings"> |
| <ItemStyle Width="30px" /> |
| </telerik:GridButtonColumn> |
| <telerik:GridBoundColumn UniqueName="FundID" DataField="FundID" DataFormatString="{0:00}" |
| HeaderText="Fund"> |
| <ItemStyle Width="75px" HorizontalAlign="Center" VerticalAlign="Top" /> |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn UniqueName="Desc" DataField="FundName" HeaderText="Description"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn UniqueName="Count" DataField="TotalCostCenterItemsInFund" |
| HeaderText="Items In Fund" DataFormatString="{0:#,##0} items found." Aggregate="Sum"> |
| <ItemStyle HorizontalAlign="Right" Width="125px" /> |
| <FooterStyle HorizontalAlign="Right" /> |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn UniqueName="RuleCount" DataField="FundRulesApplied" HeaderText="Rules Applied" |
| DataFormatString="{0:#,##0} rules applied." Aggregate="Sum"> |
| <ItemStyle HorizontalAlign="Right" Width="125px" /> |
| <FooterStyle HorizontalAlign="Right" /> |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn UniqueName="CreateDate" DataField="CreateDate" DataFormatString="{0:d} at {0:t}" |
| HeaderText="Created"> |
| <ItemStyle Width="150px" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn UniqueName="ModifyDate" DataField="ModifyDate" DataFormatString="{0:d} at {0:t}" |
| HeaderText="Modified"> |
| <ItemStyle Width="150px" /> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| if(!$find('<GridID>').confirm('<Message>', event, '<Window Title>'))return false; |
| <telerik:GridButtonColumn UniqueName="Toggle" ButtonType="ImageButton" |
| ImageUrl="~/images/buttonicons/lightbulb_off.png" |
| CommandName="ToggleReadable"> |
| <ItemStyle Width="30px" /> |
| </telerik:GridButtonColumn> |
| Protected Sub gridFundList_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gridFundList.ItemDataBound |
| If e.Item.ItemType = Telerik.Web.UI.GridItemType.AlternatingItem Or e.Item.ItemType = Telerik.Web.UI.GridItemType.Item Then |
| Dim item As TUI.GridDataItem = DirectCast(e.Item, TUI.GridDataItem) |
| Dim data As Fund = item.DataItem |
| Dim btnToggle As ImageButton = DirectCast(item("Toggle").Controls(0), ImageButton) |
| If data.FundRulesApplied > 0 Then |
| ' This will affect other areas of the system. |
| ' Alert the user! |
| Dim message As String = "This change will impact other places in the system. Click OK to continue." |
| btnToggle.Attributes.Add("onclick", "if(!$find('" & gridFundList.ClientID & "').confirm('" & message & "', event, 'Change Global Settings'))return false;") |
| End If |
| End If |
| End Sub |
