This is a migrated thread and some comments may be shown as answers.

Problem occured in Master and Detail table view in radgrid

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rangadurai
Top achievements
Rank 1
Rangadurai asked on 03 Sep 2012, 03:22 PM
Hi,
 i posted  my design page coding and i attached the sample image.In that i want to hide the header columns also when we click on expanding the master table view

<%

 

@ Page Title="" Language="VB" MasterPageFile="~/SFS_Master.master" AutoEventWireup="false"

 

 

 

CodeFile="SFS_BarcodeGeneration_New.aspx.vb" Inherits="Master_SFS_BarcodeGeneration_New" %>

 

<%

 

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<

 

 

asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

 

<%

 

-- <script type="text/javascript" src="js/ShowMsg.js"></script>--%>

 

 

 

<telerik:RadScriptBlock runat="server" ID="RadScriptBlock">

 

 

 

<script type="text/javascript" language="javascript">

 

 

 

 

 

function MarkCheckBox(cntrl, CmdtType) {

 

 

 

var rgBarcodeGen = document.getElementById('<%=rgBarcodeGen.ClientID %>');

 

 

 

var gvRow = rgBarcodeGen.getElementsByTagName('tr');

 

 

 

for (var i = 1; i < gvRow.length; i++) {

 

 

 

var gvCntrl = gvRow[i].getElementsByTagName('input');

 

 

 

for (var j = 0; j < gvCntrl.length; j++) {

 

 

 

if (gvCntrl[j].type == "checkbox") {

 

 

 

if (CmdtType == 'master') {

 

gvCntrl[j].checked = cntrl.checked;

 

 

break;

 

}

 

 

else if (CmdtType == 'detail') {

 

gvCntrl[i = j].checked = cntrl.checked;

 

 

break;

 

}

}

}

}

}

 

 

 

 

 

</script>

 

 

 

</telerik:RadScriptBlock>

 

</

 

 

asp:Content>

 

<

 

 

asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

 

 

 

<div>

 

 

 

<table style="width: 100%; border: 1px solid #000000;">

 

 

 

<tbody>

 

 

 

<tr style="background-color: Silver;">

 

 

 

<td align="left">

 

 

 

<asp:Label ID="MIBARCODEGENERATION" runat="server" Text="Barcode Generation" Font-Bold="true"

 

 

 

Style="font-family: Arial; font-size: 20;" ForeColor="white">

 

 

 

</asp:Label>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

&nbsp;

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<fieldset style="width: 1000px;">

 

 

 

<table>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:Label ID="lblCastDT" runat="server" Text="Date" Font-Bold="true" Style="font-family: Arial;

 

 

 

 

font-size: 14;"></asp:Label>

 

 

 

<telerik:RadDatePicker ID="castDT" runat="server" Culture="en-US">

 

 

 

<Calendar ID="calCastDT" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"

 

 

 

runat="server" ViewSelectorText="x" ShowOtherMonthsDays="False">

 

 

 

</Calendar>

 

 

 

<DateInput ID="dtinputValue" DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" LabelWidth="40%"

 

 

 

runat="server">

 

 

 

</DateInput>

 

 

 

<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>

 

 

 

</telerik:RadDatePicker>

 

 

 

&nbsp;&nbsp;

 

 

 

<asp:Label ID="lblBench" runat="server" Text="Bench" Font-Bold="true" Style="font-family: Arial;

 

 

 

 

font-size: 14;"></asp:Label>

 

 

 

<asp:DropDownList ID="ddlbench" runat="server">

 

 

 

</asp:DropDownList>

 

 

 

<asp:Button ID="CBSEARCH" runat="server" Text="Search" Font-Bold="True" BackColor="LightBlue"

 

 

 

BorderColor="Gray" />

 

 

 

</td>

 

 

 

<td>

 

 

 

&nbsp;

 

 

 

</td>

 

 

 

<td>

 

 

 

<asp:Label ID="lblProcessOwner" runat="server" Text="Process Owner" Font-Bold="true"

 

 

 

Style="font-family: Arial; font-size: 14;"></asp:Label>

 

 

 

<asp:DropDownList ID="ddlProcessowner" runat="server" Height="16px" Width="113px">

 

 

 

</asp:DropDownList>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:Label ID="lblShiftFrm" runat="server" Text="Shift From" Font-Bold="true" Style="font-family: Arial;

 

 

 

 

font-size: 14;"></asp:Label>

 

 

 

<asp:TextBox ID="txtShfitFrm" runat="server" Width="60px" Style="text-align: right;"></asp:TextBox>

 

 

 

<asp:Label ID="lblShiftTo" runat="server" Text="Shift To" Font-Bold="true" Style="font-family: Arial;

 

 

 

 

font-size: 14;"></asp:Label>

 

 

 

<asp:TextBox ID="txtShiftTo" runat="server" Width="60px" Style="text-align: right;"></asp:TextBox>

 

 

 

</td>

 

 

 

<td>

 

 

 

&nbsp;

 

 

 

</td>

 

 

 

<td colspan="2">

 

 

 

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

 

 

 

<asp:Label ID="lblModel" runat="server" Text="Model" Font-Bold="true" Style="font-family: Arial;

 

 

 

 

font-size: 14;"></asp:Label>

 

 

 

<asp:DropDownList ID="ddlModel" runat="server" Height="16px" Width="116px">

 

 

 

</asp:DropDownList>

 

 

 

<asp:LinkButton ID="lnkChangeModel" runat="server" Font-Bold="true" Style="font-family: Arial;

 

 

 

 

font-size: 14; text-decoration: underline;">Change Model</asp:LinkButton>

 

 

 

</td>

 

 

 

<td>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:Label ID="lblLstBarcode" runat="server" Text="Last Barcode" Font-Bold="true"

 

 

 

Style="font-family: Arial; font-size: 14;"></asp:Label>

 

 

 

&nbsp;

 

<%

 

--<asp:TextBox ID="txtLastBarcode" runat="server"></asp:TextBox>--%>

 

 

 

<asp:Label ID="lblLastBarcode" runat="server"></asp:Label>

 

 

 

</td>

 

 

 

<td>

 

 

 

&nbsp;

 

 

 

</td>

 

 

 

<td colspan="2">

 

 

 

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

 

 

 

<asp:Label ID="lblCaster" runat="server" Text="Caster" Font-Bold="true" Style="font-family: Arial;

 

 

 

 

font-size: 14;"></asp:Label>

 

 

 

<asp:DropDownList ID="ddlCaster" runat="server" Height="16px" Width="116px">

 

 

 

</asp:DropDownList>

 

 

 

<asp:LinkButton ID="lnkChangeCaster" runat="server" Font-Bold="true" Style="font-family: Arial;

 

 

 

 

font-size: 14; text-decoration: underline;">Change Caster</asp:LinkButton>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:Label ID="lblStartBarcode" runat="server" Text="Start Barcode" Font-Bold="true"

 

 

 

Style="font-family: Arial; font-size: 14;"></asp:Label>

 

 

 

&nbsp;<asp:TextBox ID="txtStartBarcode" runat="server" Style="text-align: right;"></asp:TextBox>

 

 

 

</td>

 

 

 

<td>

 

 

 

&nbsp;

 

 

 

</td>

 

 

 

<td colspan="2">

 

 

 

<asp:Label ID="lblPourPerShift" runat="server" Text="Pours Per Shift" Font-Bold="true"

 

 

 

Style="font-family: Arial; font-size: 14;"></asp:Label>

 

 

 

<asp:TextBox ID="txtPourPerShift" runat="server" Width="116px" Style="text-align: right;"></asp:TextBox>

 

 

 

<asp:LinkButton ID="lnkchangepourspershift" runat="server" Font-Bold="true" Style="font-family: Arial;

 

 

 

 

font-size: 14; text-decoration: underline;">Change Pours Per SHift</asp:LinkButton>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:Label ID="lblCount" runat="server" Text="Count" Font-Bold="true" Style="font-family: Arial;

 

 

 

 

font-size: 14;"></asp:Label>

 

 

 

&nbsp;<asp:TextBox ID="txtCount" runat="server" Style="text-align: right;"></asp:TextBox>

 

 

 

</td>

 

 

 

<td>

 

 

 

&nbsp;

 

 

 

</td>

 

 

 

<td colspan="2">

 

 

 

<asp:Label ID="lblAssemblyLine" runat="server" Text="Assembly Line" Font-Bold="true"

 

 

 

Style="font-family: Arial; font-size: 14;"></asp:Label>

 

 

 

<asp:DropDownList ID="ddlAssemblyLine" runat="server" Height="16px" Width="119px">

 

 

 

</asp:DropDownList>

 

 

 

<asp:LinkButton ID="lnkChangeAssemblyLine" runat="server" Font-Bold="true" Style="font-family: Arial;

 

 

 

 

font-size: 14; text-decoration: underline;">Change Assembly Line</asp:LinkButton>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td align="left" colspan="3" width="900px">

 

 

 

<asp:Button ID="CBREFRESH" runat="server" Font-Bold="True" Text="Refresh" Width="90px"

 

 

 

BackColor="LightBlue" BorderColor="Gray" />

 

 

 

&nbsp;&nbsp;

 

 

 

<asp:Button ID="CBLOADPLAN" runat="server" Font-Bold="True" Text="Load Plan" Visible="false"

 

 

 

Width="90px" />

 

 

 

&nbsp;&nbsp;

 

 

 

<asp:Button ID="CBSAVE" runat="server" Text="Save" Font-Bold="True" Width="90px"

 

 

 

BackColor="LightBlue" BorderColor="Gray" />

 

 

 

&nbsp;&nbsp;

 

 

 

<asp:Button ID="CBGENERATE" runat="server" Text="Generate" Font-Bold="True" Width="90px"

 

 

 

BackColor="LightBlue" BorderColor="Gray" />

 

 

 

&nbsp;&nbsp;

 

 

 

<asp:Button ID="CBCONFIRM" runat="server" Text="Confirm" Font-Bold="True" Width="90px"

 

 

 

BackColor="LightBlue" BorderColor="Gray" />

 

 

 

&nbsp;&nbsp;

 

 

 

<asp:Button ID="CBDELETE" runat="server" Text="Delete" Font-Bold="True" Width="90px"

 

 

 

Visible="False" />

 

 

 

&nbsp;&nbsp;

 

 

 

<asp:Button ID="CBDUPLICATE" runat="server" Text="Duplicate Rows" Font-Bold="True"

 

 

 

Width="104px" Visible="false" />

 

 

 

</td>

 

<%

 

-- <td valign="top" align="right">

 

<asp:Button ID="CBSAVE" runat="server" Text="Save" Font-Bold="True" Width="32px" />

<asp:Button ID="CBGENERATE" runat="server" Text="Generate" Font-Bold="True" Width="32px" />

<asp:Button ID="CBCONFIRM" runat="server" Text="Confirm" Font-Bold="True" Width="32px" />

<asp:Button ID="CBDELETE" runat="server" Text="Delete" Font-Bold="True" Width="32px" />

<asp:Button ID="CBDUPLICATE" runat="server" Text="Duplicate Rows" Font-Bold="True"

Width="120px" Visible="False" />

</td>--

 

 

%>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</fieldset>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

&nbsp;

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td align="left">

 

 

 

<input id="hdMultiSelFlag" type="hidden" value="false" name="Hidden3" runat="server" />

 

 

 

<asp:Label ID="lblErrorMsg" ForeColor="Red" runat="server" Visible="false" Font-Bold="true"></asp:Label>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:HiddenField ID="objValidationMsg" runat="server" />

 

 

 

<div>

 

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

 

</asp:ScriptManager>

 

 

 

<telerik:RadGrid ID="rgBarcodeGen" runat="server" Width="1200px" Skin="WebBlue">

 

 

 

<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">

 

 

 

<Selecting AllowRowSelect="True" />

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

 

 

 

<ClientEvents OnRowClick="RowSelected"></ClientEvents>

 

 

 

</ClientSettings>

 

 

 

<MasterTableView AutoGenerateColumns="False" DataKeyNames="BENCH_ID" Name="MasterTable"

 

 

 

HierarchyLoadMode="Client" Width="1200px">

 

 

 

<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

 

 

 

<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">

 

 

 

</RowIndicatorColumn>

 

 

 

<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">

 

 

 

</ExpandCollapseColumn>

 

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Center"

 

 

 

ItemStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lbl_Select" runat="server" Text="Select"></asp:Label>

 

<%

 

-- <br />

 

<asp:CheckBox ID="chk_SelectAll" runat="server" onclick="javascript:MarkCheckBox(this,'master');" />--

 

 

%>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox ID="chk_Select" runat="server" Checked='<%# EVAL("SEL_IND") %>' onclick="javascript:MarkCheckBox(this,'master');" />

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="80px"></HeaderStyle>

 

 

 

<ItemStyle HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true" Visible="FALSE">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblBenchID" runat="server" Text="Bench ID"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

<%

 

-- <asp:TextBox ID="txtBenchID" runat="server" Width="80px" Text='<%# Eval("bench_id") %>'

 

ReadOnly="true"></asp:TextBox>--

 

 

%>

 

 

 

<asp:Label ID="lblBenchIDVal" runat="server" Width="80px" Text='<%# Eval("bench_id") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="80px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="750px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true" Visible="TRUE">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblBench" runat="server" Text="Bench"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

<%

 

-- <asp:TextBox ID="txtBench" runat="server" Width="700px" Text='<%# Eval("Bench") %>'

 

ReadOnly="true"></asp:TextBox>--

 

 

%>

 

 

 

<asp:Label ID="lblBenchVal" runat="server" Width="750px" Text='<%# Eval("Bench") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="750px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="110px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true" Visible="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblShiftNum" runat="server" Text="Shift Num"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

<%

 

-- <asp:TextBox ID="txtShiftNum" runat="server" Width="80px" Text='<%# Eval("shift_num") %>'

 

ReadOnly="true"></asp:TextBox>--

 

 

%>

 

 

 

<asp:Label ID="lblShiftNumVal" runat="server" Width="110px" Text='<%# Eval("shift_num") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="110px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

<%

 

-- <telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="110px" HeaderStyle-HorizontalAlign="Center"

 

HeaderStyle-Font-Bold="true" Visible="true">

<HeaderTemplate>

<asp:Label ID="lblCasterId" runat="server" Text="Caster"></asp:Label>

</HeaderTemplate>

<ItemTemplate>

<asp:DropDownList ID="ddlCaster" runat="server" Width="120px" DataTextField="TEXT"

DataValueField="VALUE" DataSource="<%# BindCaster() %>" SelectedIndex='<%# getCasterIndex(DataBinder.Eval(Container.DataItem,"Caster_id")) %>'>

</asp:DropDownList>

</ItemTemplate>

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="110px"></HeaderStyle>

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

</telerik:GridTemplateColumn>--

 

 

%>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="110px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true" Visible="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblInstallMold" runat="server" Text="Install. Molds"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

<%

 

-- <asp:TextBox ID="txtInstallMold" runat="server" Width="80px" Text='<%# Eval("Install_Molds") %>'

 

ReadOnly="true"></asp:TextBox>--

 

 

%>

 

 

 

<asp:Label ID="lblInstallMoldVal" runat="server" Width="110px" Text='<%# Eval("num_installed") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="110px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="130px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true" Visible="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblPoursperShift" runat="server" Text="Pours Per Shift"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

<%

 

-- <asp:TextBox ID="txtPoursperShift" runat="server" Width="100px" Text='<%# Eval("pours_per_shift") %>'

 

ReadOnly="true"></asp:TextBox>--

 

 

%>

 

 

 

<asp:Label ID="lblPoursperShiftVal" runat="server" Width="130px" Text='<%# Eval("pours_per_shift") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="130px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="150px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblStartBarcode" runat="server" Text="Start Barcode"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

<%

 

--<asp:TextBox ID="txtStartBarcode" runat="server" Width="100px" Text='<%# Eval("START_BARCODE") %>'

 

ReadOnly="true"></asp:TextBox>--

 

 

%>

 

 

 

<asp:Label ID="lblStartBarcodeVal" runat="server" Width="150px" Text='<%# Eval("START_BARCODE") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="150px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="150px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblEndBarcode" runat="server" Text="End Barcode"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

<%

 

-- <asp:TextBox ID="txtEndBarcode" runat="server" Width="100px" Text='<%# Eval("END_BARCODE") %>'

 

ReadOnly="true"></asp:TextBox>--

 

 

%>

 

 

 

<asp:Label ID="lblEndBarcode" runat="server" Width="150px" Text='<%# Eval("END_BARCODE") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="150px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblStatus" runat="server" Text="Status"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

<%

 

-- <asp:TextBox ID="txtStatus" runat="server" Width="100px" Text='<%# Eval("STATUS") %>'

 

ReadOnly="true"></asp:TextBox>--

 

 

%>

 

 

 

<asp:Label ID="lblStatus" runat="server" Width="100px" Text='<%# Eval("Status_Description") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="100px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

</Columns>

 

 

 

<DetailTables>

 

 

 

<telerik:GridTableView Width="800PX" runat="server" DataKeyNames="shift" HierarchyLoadMode="ServerBind"

 

 

 

Name="detailTableLevel2" AutoGenerateColumns="false">

 

 

 

<ParentTableRelation>

 

 

 

<telerik:GridRelationFields DetailKeyField="BENCH_ID" MasterKeyField="BENCH_ID" />

 

 

 

</ParentTableRelation>

 

 

 

<ExpandCollapseColumn Visible="False">

 

 

 

<HeaderStyle Width="19px" />

 

 

 

</ExpandCollapseColumn>

 

 

 

<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

 

 

 

<RowIndicatorColumn Visible="False">

 

 

 

<HeaderStyle Width="20px" />

 

 

 

</RowIndicatorColumn>

 

 

 

<EditFormSettings>

 

 

 

<EditColumn FilterControlAltText="Filter EditCommandColumn column">

 

 

 

</EditColumn>

 

 

 

</EditFormSettings>

 

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Center"

 

 

 

ItemStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lbl_Select" runat="server" Text="Select"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox ID="chk_Select" runat="server" Checked='<%# EVAL("select") %>' onclick="javascript:MarkCheckBox(this,'detail');" />

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="80px"></HeaderStyle>

 

 

 

<ItemStyle HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="150px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblMolds" runat="server" Text="Mold Type"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblMoldsVal" runat="server" Width="150px" Text='<%# Eval("mold") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="150px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblPosition" runat="server" Text="Position"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblPositionVal" runat="server" Text='<%# Eval("Position") %>' Width="100px"

 

 

 

ReadOnly="true"></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="100px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblCavity" runat="server" Text="Cavity"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblCavityVal" runat="server" Text='<%# Eval("cavity") %>' Width="100px"></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="100px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblPours" runat="server" Text="Pours"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblPoursVal" runat="server" Text='<%# Eval("Pours") %>' Width="100px"></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="100px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="150px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblCaster" runat="server" Text="Caster"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:DropDownList ID="ddlCasterList" runat="server" Width="140px" DataTextField="TEXT"

 

 

 

DataValueField="VALUE" DataSource="<%# bindCaster() %>" SelectedIndex='<%# getCasterIndex(DataBinder.Eval(Container.DataItem,"caster_id")) %>'>

 

 

 

</asp:DropDownList>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="150px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="130px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblModel" runat="server" Text="Model"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:DropDownList ID="ddlModelList" runat="server" Width="120px" DataTextField="TEXT"

 

 

 

DataValueField="VALUE" DataSource="<%# bindModel() %>" SelectedIndex='<%# getModelIndex(DataBinder.Eval(Container.DataItem,"model")) %>'>

 

 

 

</asp:DropDownList>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="130px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn ItemStyle-Wrap="false" HeaderStyle-Width="130px" HeaderStyle-HorizontalAlign="Center"

 

 

 

HeaderStyle-Font-Bold="true">

 

 

 

<HeaderTemplate>

 

 

 

<asp:Label ID="lblAssemblyLine" runat="server" Text="AL"></asp:Label>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:DropDownList ID="ddlAssemblyLine" runat="server" Width="120px" DataTextField="TEXT"

 

 

 

DataValueField="VALUE" DataSource="<%# BindAssemblyLine() %>" SelectedIndex='<%# getALIndex(DataBinder.Eval(Container.DataItem,"assembly_line_id")) %>'>

 

 

 

</asp:DropDownList>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle HorizontalAlign="Center" Font-Bold="True" Width="130px"></HeaderStyle>

 

 

 

<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

</Columns>

 

 

 

</telerik:GridTableView>

 

 

 

</DetailTables>

 

 

 

<EditFormSettings>

 

 

 

<EditColumn FilterControlAltText="Filter EditCommandColumn column">

 

 

 

</EditColumn>

 

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

 

<FilterMenu EnableImageSprites="False">

 

 

 

</FilterMenu>

 

 

 

</telerik:RadGrid>

 

 

 

</div>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td style="width: 1200px;" valign="top" align="right">

 

 

 

<asp:Button ID="CBRESET" runat="server" Text="Reset All Barcodes" Font-Bold="True"

 

 

 

Visible="False" />

 

 

 

<asp:Button ID="CBCARRYOVER" runat="server" Text="Carry Over Change" Font-Bold="True"

 

 

 

Width="150px" Visible="False" />

 

 

 

<asp:Button ID="CBLOADPLANCARRYOVER" runat="server" Text="Load Plan Carry Over Change"

 

 

 

Font-Bold="True" Width="220px" Visible="False" />

 

 

 

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

 

 

 

<asp:Button ID="CBCLOSE" runat="server" Text="Close" Font-Bold="True" Width="90px"

 

 

 

BackColor="LightBlue" BorderColor="Gray" Visible="true" />

 

 

 

</td>

 

 

 

</tr>

 

 

 

</tbody>

 

 

 

</table>

 

 

 

</div>

 

</

 

 

asp:Content>

 





1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 06 Sep 2012, 12:16 PM
Hello Rangadurai,

I made a runnable project from your markup but unfortunately I'm unable to reproduce the problem on my end. I would recommend that you try to comment out separate parts of your code (especially the code-behind) until you find the root cause.

Best regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Rangadurai
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or