<table border="0" cellpadding="0" cellspacing="0" align="left" style="width: 1024px; table-layout:fixed; ">
<tr>
<td>
<telerik:RadGrid ID="dgrAltDisposition" HeaderStyle-Font-Underline="true" Width="1024px"
AutoGenerateColumns="False" OnNeedDataSource="dgrAltDisposition_NeedDataSource"
AllowFilteringByColumn="false" AllowSorting="false" AllowMultiRowSelection="false"
runat="server" MasterTableView-CommandItemSettings-ShowRefreshButton="true" HeaderStyle-HorizontalAlign="Center"
HeaderStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Center" BackColor="#EFF7FF"
Skin="Office2007" ShowGroupPanel="false" GridLines="None" AllowAutomaticInserts="false"
AllowAutomaticUpdates="false" AllowCustomPaging="false" AllowAutomaticDeletes="false"
EnableAJAXLoadingTemplate="true" EnableAJAX="true" OnItemDataBound="dgrAltDisposition_ItemDataBound"
OnDeleteCommand="dgrAltDisposition_DeleteCommand" OnInsertCommand="dgrAltDisposition_InsertCommand"
OnUpdateCommand="dgrAltDisposition_UpdateCommand">
<ItemStyle HorizontalAlign="Center" />
<%
-- <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Office2007">
</HeaderContextMenu>--
%>
<AlternatingItemStyle HorizontalAlign="Left" />
<HeaderStyle Font-Underline="True" HorizontalAlign="Center" VerticalAlign="Top" />
<GroupingSettings CaseSensitive="false" />
<FilterMenu EnableImageSprites="False">
</FilterMenu>
<MasterTableView DataKeyNames="CAF_AFF_AIR_ALTER_DISP_ID" CommandItemDisplay="Top"
Name="MTV_AltDisposition" AllowMultiColumnSorting="true" HorizontalAlign="NotSet"
Width="1024px" CommandItemSettings-ShowRefreshButton="false" AutoGenerateColumns="False"
ShowFooter="false" GridLines="Both" GroupLoadMode="Client" TableLayout="Fixed"
ShowHeader="true" InsertItemPageIndexAction="ShowItemOnFirstPage" AlternatingItemStyle-BorderStyle="None">
<NoRecordsTemplate>
<center>
<span class="clsTableCellCenter"><b>Sorry,there is no matching data available for display.</b></span>
</center>
</NoRecordsTemplate>
<CommandItemSettings AddNewRecordText="Add Alternate Disposition" />
<ItemStyle HorizontalAlign="Left" Font-Size="8pt" ForeColor="Black" Font-Names="Arial"
VerticalAlign="Middle" />
<AlternatingItemStyle BorderStyle="None" />
<HeaderStyle HorizontalAlign="Center" Font-Size="8pt" />
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
</RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
</ExpandCollapseColumn>
<Columns>
<telerik:GridEditCommandColumn ButtonType="LinkButton" EditText="Edit" UniqueName="EditCommandColumn"
HeaderText="" HeaderStyle-HorizontalAlign="Center">
<HeaderStyle HorizontalAlign="Center" Width="30px" />
<ItemStyle Font-Size="8pt" HorizontalAlign="Center" ForeColor="Blue" />
</telerik:GridEditCommandColumn>
<telerik:GridBoundColumn UniqueName="Alternate_Disposition_ID" HeaderText="Alternate Disposition ID"
DataField="CAF_AFF_AIR_ALTER_DISP_ID" SortExpression="CAF_AFF_AIR_ALTER_DISP_ID"
Visible="false" HeaderStyle-HorizontalAlign="Center" ShowFilterIcon="false" AllowFiltering="false"
ItemStyle-HorizontalAlign="Left">
<ItemStyle Font-Size="8pt" HorizontalAlign="Left" />
<HeaderStyle Font-Size="8pt" HorizontalAlign="Center" Font-Underline="false" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Affected_AirplaneList" HeaderText="Affected on Airplane(s)"
DataField="AFFECTED_AIRPLANELIST" SortExpression="AFFECTED_AIRPLANELIST" Visible="true"
HeaderStyle-HorizontalAlign="Center" ShowFilterIcon="false" AllowFiltering="false"
ItemStyle-HorizontalAlign="Left">
<ItemStyle Font-Size="8pt" HorizontalAlign="Left" Width="50px" />
<HeaderStyle Font-Size="8pt" HorizontalAlign="Center" Font-Underline="false" Width="50px" />
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="reason_for_alter_dispo" HeaderText="Reason for Alternate Disposition"
DataField="REASON_FOR_ALTER_DISPO_1" SortExpression="REASON_FOR_ALTER_DISPO_1"
Visible="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<table border="0" style="border-style: none;">
<tr>
<td style="border-style: none; font-size: 8pt;" align="left">
<asp:Label runat="server" ID="lblReason_for_Alternate_Disposition" align="left" Text='<%# ValidateString(DataBinder.Eval(Container.DataItem, "REASON_FOR_ALTER_DISPO_1") + "" + DataBinder.Eval(Container.DataItem, "REASON_FOR_ALTER_DISPO_2"))%>'></asp:Label>
</td>
<td style="border-style: none; text-align: right;" align="right">
<asp:ImageButton ID="ibtnReason_for_Alternate_Disposition" runat="server" OnClientClick="javascript:fnExpandW(this,'reason_for_alter_dispo')"
ImageUrl="~/IMAGES/btn_Dots.GIF" ImageAlign="Right" /><asp:HiddenField ID="hdnReason_for_Alternate_Disposition"
runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "REASON_FOR_ALTER_DISPO_1") + "" + DataBinder.Eval(Container.DataItem, "REASON_FOR_ALTER_DISPO_2")%>' />
</td>
</tr>
</table>
</ItemTemplate>
<ItemStyle Font-Size="8pt" HorizontalAlign="Left" Width="50px" />
<HeaderStyle Font-Size="8pt" HorizontalAlign="Center" Font-Underline="false" Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="alter_dispo_1" HeaderText="Alternate Disposition"
DataField="ALTER_DISPO_1" SortExpression="ALTER_DISPO_1" Visible="true" HeaderStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<table border="0" style="border-style: none;">
<tr>
<td style="border-style: none; font-size: 8pt;" align="left">
<asp:Label runat="server" ID="lblAlternate_Disposition" align="left" Text='<%# ValidateString(DataBinder.Eval(Container.DataItem, "ALTER_DISPO_1") + "" + DataBinder.Eval(Container.DataItem, "ALTER_DISPO_2"))%>'></asp:Label>
</td>
<td style="border-style: none; text-align: right;" align="right">
<asp:ImageButton ID="ibtnAlternate_Disposition" runat="server" OnClientClick="javascript:fnExpandW(this,'alter_dispo_1')"
ImageUrl="~/IMAGES/btn_Dots.GIF" ImageAlign="Right" /><asp:HiddenField ID="hdnAlternate_Disposition"
runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "ALTER_DISPO_1") + "" + DataBinder.Eval(Container.DataItem, "ALTER_DISPO_2")%>' />
</td>
</tr>
</table>
</ItemTemplate>
<ItemStyle Font-Size="8pt" HorizontalAlign="Left" Width="50px" />
<HeaderStyle Font-Size="8pt" HorizontalAlign="Center" Font-Underline="false" Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="" HeaderText="Attachments" DataField="" SortExpression=""
Visible="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<table border="0" style="border-style: none;">
<tr>
<td style="border-style: none; font-size: 8pt;" align="left">
<asp:Label runat="server" ID="lblAttachments" Text="Attachments" ForeColor="Black"></asp:Label><asp:HyperLink
runat="server" ID="hplAttachments" Text="Attachments" Style="cursor: hand;"></asp:HyperLink><asp:HiddenField
ID="hdnAttachmentCount" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"ATTACHMENTS_COUNT")%>' />
</td>
</tr>
</table>
</ItemTemplate>
<ItemStyle Font-Size="8pt" HorizontalAlign="Left" ForeColor="Blue" Width="50px" />
<HeaderStyle Font-Size="8pt" HorizontalAlign="Center" Font-Underline="false" Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="Group_Name" HeaderText="Responsible Group"
DataField="GROUP_NAME" SortExpression="GROUP_NAME" Visible="true" HeaderStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<table border="0" style="border-style: none;">
<tr>
<td style="border-style: none; font-size: 8pt;" align="left">
<asp:Label runat="server" ID="lblResponsible_Group" align="left" Text='<%# ValidateString(DataBinder.Eval(Container.DataItem, "GROUP_NAME"))%>'></asp:Label>
</td>
<td style="border-style: none; text-align: right;" align="right">
<asp:ImageButton ID="ibtnResponsible_Group" runat="server" OnClientClick="javascript:fnExpandW(this,'Group_Name')"
ImageUrl="~/IMAGES/btn_Dots.GIF" ImageAlign="Right" /><asp:HiddenField ID="hdnResponsible_Group"
runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "GROUP_NAME")%>' />
</td>
</tr>
</table>
</ItemTemplate>
<ItemStyle Font-Size="8pt" HorizontalAlign="Left" Width="50px" />
<HeaderStyle Font-Size="8pt" HorizontalAlign="Center" Font-Underline="false" Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="Created_By" HeaderText="Created By" DataField="CREATED_BY"
SortExpression="CREATED_BY" Visible="true" HeaderStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<table border="0" style="border-style: none;">
<tr>
<td style="border-style: none; font-size: 8pt;" align="left">
<asp:Label runat="server" ID="lblCreated_By" align="left" Text='<%# ValidateString(DataBinder.Eval(Container.DataItem, "CREATED_BY"))%>'></asp:Label>
</td>
<td style="border-style: none; text-align: right;" align="right">
<asp:ImageButton ID="ibtnCreated_By" runat="server" OnClientClick="javascript:fnExpandW(this,'Created_By')"
ImageUrl="~/IMAGES/btn_Dots.GIF" ImageAlign="Right" /><asp:HiddenField ID="hdnCreated_By"
runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "CREATED_BY")%>' />
</td>
</tr>
</table>
</ItemTemplate>
<ItemStyle Font-Size="8pt" HorizontalAlign="Left" Width="50px" />
<HeaderStyle Font-Size="8pt" HorizontalAlign="Center" Font-Underline="false" Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridButtonColumn ButtonType="LinkButton" ItemStyle-Font-Size="8pt" Text="Remove"
UniqueName="Remove" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left"
CommandName="Delete">
<HeaderStyle HorizontalAlign="Center" Width="50px" />
<ItemStyle Font-Size="8pt" HorizontalAlign="Left" ForeColor="Blue" Width="50px" />
</telerik:GridButtonColumn>
</Columns>
<EditFormSettings EditFormType="Template">
<EditColumn FilterControlAltText="Filter EditCommandColumn1 column" UniqueName="EditCommandColumn1">
</EditColumn>
<FormTemplate>
<table border="0" cellpadding="0" cellspacing="0" width="95%" align="center" style="table-layout:fixed;">
<tr>
<td>
</td>
</tr>
<tr>
<td class="subTitle" align="left">
Reason for Alternate Disposition
<span class="reqField">*</span>
</td>
</tr>
<tr>
<td class="tblText" align="left">
<telerik:RadEditor ID="rdReasonAltDisp" runat="server" align="left" Content='<%# DataBinder.Eval(Container.DataItem, "REASON_FOR_ALTER_DISPO_1") + "" + DataBinder.Eval(Container.DataItem, "REASON_FOR_ALTER_DISPO_2")%>'
MaxTextLength="4000" CssClass="tblText" EnableContextMenus="false" EnableDocking="false"
Skin="WebBlue" EnableTab="false" Height="100px" ShowHtmlMode="false" ShowPreviewMode="false"
ShowSubmitCancelButtons="false" SpellCheckProvider="EditDistanceProvider" StripFormattingOnPaste="All"
ToolsFile="~/XML_STORAGE/BasicTools.xml" UseEmbeddedScripts="false" Width="840px">
</telerik:RadEditor>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td class="subTitle" align="left">
AlternateDisposition
<span class="reqField">*</span>
</td>
</tr>
<tr>
<td align="left">
<telerik:RadEditor ID="rdAltDisp" runat="server" align="left" Content='<%# DataBinder.Eval(Container.DataItem, "ALTER_DISPO_1") + "" + DataBinder.Eval(Container.DataItem, "ALTER_DISPO_2")%>'
MaxTextLength="4000" CssClass="tblText" EnableContextMenus="false" EnableDocking="false"
Skin="WebBlue" EnableTab="false" Height="100px" ShowHtmlMode="false" ShowPreviewMode="false"
ShowSubmitCancelButtons="false" SpellCheckProvider="EditDistanceProvider" StripFormattingOnPaste="All"
ToolsFile="~/XML_STORAGE/BasicTools.xml" UseEmbeddedScripts="false" Width="840px">
</telerik:RadEditor>
</td>
</tr>
<tr>
<td>
<table width="100%" id="tblUpload" runat="server" border="0" cellpadding="2" cellspacing="0" style="padding-top:5px;"
align="left">
<tr>
<td width="15%" class="subTitle" style="height: 100px;" align="left">
Upload Attachment
</td>
<td width="15%" style="height: 100px; vertical-align:top;" align="left">
<div style="overflow-y: auto; overflow-x: hidden; height: 90px; vertical-align:top; padding-top:5px;">
<telerik:RadAsyncUpload ID="RadAsynUploadAttachment" runat="server" MultipleFileSelection="Automatic"
EnableEmbeddedScripts="true" EnableEmbeddedSkins="true" EnableEmbeddedBaseStylesheet="true" Skin="WebBlue"
TemporaryFolder="upload" AllowedFileExtensions=".jpg,.jpeg,.png,.tif">
</telerik:RadAsyncUpload>
<asp:HiddenField ID="hdnAttachmentCountEdit" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"ATTACHMENTS_COUNT")%>' />
</div>
</td>
<td class="subTitle" width="15%" align="center">
Alternate Disposition
<br />
Affected on Airplane(s)
<span class="reqField">*</span><br />
<br />
<span class="subtext">Ctrl Click to Multi Select</span>
</td>
<td class="tblText" style="height: 100px; vertical-align: bottom;" width="20%" align="left">
<asp:ListBox runat="server" ID="lbAffAirplaneList" Rows="5"
SelectionMode="Multiple" Visible="true"></asp:ListBox>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td class="tblText" align="left">
<asp:LinkButton ID="lnkUpdate" runat="server" CommandArgument='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'>
</asp:LinkButton>  
<asp:LinkButton ID="lnkCancel" runat="server" CausesValidation="False" CommandName="Cancel"
Text="Cancel"></asp:LinkButton>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</FormTemplate>
</EditFormSettings>
</MasterTableView><ValidationSettings CommandsToValidate="PerformInsert,Update" />
<ClientSettings AllowGroupExpandCollapse="false" ReorderColumnsOnClient="true" AllowColumnsReorder="false">
<Selecting AllowRowSelect="false" />
<ClientEvents OnGridCreated="GridCreated" />
<Resizing AllowColumnResize="false" AllowResizeToFit="true" />
<Scrolling AllowScroll="True" FrozenColumnsCount="0" ScrollHeight="180px" UseStaticHeaders="true"
SaveScrollPosition="true" />
</ClientSettings>
</telerik:RadGrid>
</td>
</tr>
</table>
<telerik:RadChart ID=
"chart_EmployeeStats"
SkinsOverrideStyles=
"false"
Skin=
"Telerik"
runat=
"server"
Height=
"360"
width=
"1200"
EnableViewState=
"false"
>
<ChartTitle TextBlock-Text =
"Total Letters For The Day"
TextBlock-Appearance-TextProperties-Color=
"Black"
TextBlock-Visible=
"false"
></ChartTitle>
<PlotArea>
<Appearance Dimensions-Margins=
"18%, 24%, 35%, 10%"
>
</Appearance>
<XAxis LayoutMode=
"Inside"
AutoScale=
"false"
>
<Appearance ValueFormat=
"ShortDate"
MajorGridLines-Visible=
"false"
>
<LabelAppearance RotationAngle=
"90"
Position-AlignedPosition=
"Top"
>
</LabelAppearance>
</Appearance>
</XAxis>
<YAxis IsZeroBased=
"false"
>
</YAxis>
</PlotArea>
</telerik:RadChart>
<ClientSettings EnableRowHoverStyle="true" > |
<Selecting AllowRowSelect="True" /> |
</ClientSettings> |
I'll I am interesting in having is the EnableRowHoverStyle="true" and if they click on a row it does a postback to the
ItemCommand event for the grid? Is this possible? If so how is it done? Last, where can I set the CommandName for this to happen? I am not looking for a client event here. I'm looking for a full postback. I will handle the setting for the row being selected and all that in the code behind myself.
Thank you
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. |
|
<telerik:GridBoundColumn UniqueName="ContactPerson" HeaderText="Contact Person" DataField="ContactPerson" />
Private Sub btnShipOut_Click(sender As Object, e As System.EventArgs) Handles btnShipOut.Click
For Each item As GridItem In RadGrid2.MasterTableView.Items
If TypeOf item Is GridEditableItem Then
Dim editableItem As GridDataItem = DirectCast(item, GridDataItem)
Dim ContactPerson As String = editableItem.Cells(2).Text
End If
Next
End Sub
The code works well but I am receiving the default value on each textbox instead of the updated value entered by the user before the postback. Instead, the new values are displayed in the grid after the postback.
I also tried the following code to retrieve the values but I get an OutOfRangeException error...
Dim txtbx As TextBox = CType(editableItem("ContactPerson").Controls(0), TextBox)
Dim txtbxvalue as string = txtbx.value
Any help please?
Best regards.