or
protected void policeGrid_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "Select") { var stationId = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["station_id"]; Session["station_id"] = stationId; radAjaxMgr.ResponseScripts.Add("radopen('information.aspx','null')"); } }<telerik:RadWindowManager ID="rw" runat="server" ReloadOnShow="True"></telerik:RadWindowManager> <telerik:RadGrid ID="policeGrid" runat="server" AllowSorting="false" Skin="Default" OnNeedDataSource="LoadPoliceTable" OnItemCommand="policeGrid_ItemCommand" GridLines="Both" AutoGenerateColumns="False" ShowFooter="false" AllowPaging="true" AllowFilteringByColumn="true" PageSize="25" PagerStyle-AlwaysVisible="true" OnUpdateCommand="policeGrid_UpdateCommand" OnInsertCommand="policeGrid_InsertCommand" EnableLinqExpressions="false" OnDeleteCommand="policeGrid_DeleteCommand" GroupingEnabled="True" ShowGroupPanel="True" GroupPanel-Enabled="True"> <ClientSettings AllowDragToGroup="True"/> <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="TopAndBottom" /> <MasterTableView AllowMultiColumnSorting="true" CommandItemDisplay="Top" DataKeyNames="station_id" NoMasterRecordsText="No current police." TableLayout="Fixed" CommandItemSettings-ShowRefreshButton="False"> <RowIndicatorColumn Visible="False"> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <Columns> <telerik:GridEditCommandColumn UniqueName="btnEdit" ButtonType="ImageButton" EditText="Edit" Resizable="False" > <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> <HeaderStyle Width="15px" /> </telerik:GridEditCommandColumn> <telerik:GridButtonColumn UniqueName="infoPolice" ButtonType="ImageButton" ImageUrl="../../RadControls/Grid/Skins/info.png" CommandName="Select" Text="Info"> <HeaderStyle Width="15px" /> </telerik:GridButtonColumn> <telerik:GridBoundColumn DataField="STATION_ID" HeaderText="STATION_ID" UniqueName="STATION_ID" AllowFiltering="True" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" > <HeaderStyle Width="50px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PRIMARY_CONTACT_ID" HeaderText="PRIMARY_CONTACT_ID" UniqueName="PRIMARY_CONTACT_ID" AllowFiltering="True" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" > <HeaderStyle Width="50px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="STATE_NAME" HeaderText="STATE_NAME" UniqueName="STATE_NAME" AllowFiltering="True" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" > <HeaderStyle Width="75px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="TROOP" UniqueName="TROOP" HeaderText="TROOP" AllowFiltering="True" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"> <HeaderStyle Width="75" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PH_HAZMAT" HeaderText="PH_HAZMAT" UniqueName="PH_HAZMAT" AllowFiltering="True" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"> <HeaderStyle Width="75px" /> </telerik:GridBoundColumn> <telerik:GridButtonColumn ConfirmText="Delete this group?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumngroups" Visible="true"> <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> <HeaderStyle Width="50px" /> </telerik:GridButtonColumn> </Columns> <EditFormSettings UserControlName="EditPolice.ascx" EditFormType="WebUserControl"> <EditColumn UniqueName="EditCommandColumn1"> </EditColumn> </EditFormSettings> </MasterTableView> </telerik:RadGrid><body onload="formOnLoad();"> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script language="javascript" type="text/javascript"> function formOnLoad() { var gridPsap = window.opener.document.getElementById("GridPsapHistory"); var gridPsapTableView = gridPsap.get_masterTableView(); var gridAli = window.opener.document.getElementById("GridAliHistory"); //window.close(); } </script> </telerik:RadCodeBlock> <table>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
I need to create a wpf diagram designer which consist multiple layers design (user can add layers according to their need, can switch among layers and can also show/ hide layers) and each layer can have different diagram but they are part of single design. Now my question is that how we can create multiple layers like we have different layers in Photoshop where layers are used to work on individual parts of an image while not affecting other parts. And the same thing I have to create in wpf diagram designer if it's possible or also looking for any alternative solution....