<tel:RadComboBox ID="ddlQuarter" Runat="server" A="" AllowCustomText="false" AppendDataBoundItems="true" AutoPostBack="True" DataSourceID="odsQuarter" DataTextField="LookupDetalDeepName" DataValueField="LookupDetailsDeep_ID" HighlightTemplatedItems="true" MarkFirstMatch="true" Skin="Web20"> <Items> <tel:RadComboBoxItem Text="------Please Choose-----" Value="0" /> </Items> </tel:RadComboBox> <asp:ObjectDataSource ID="odsQuarter" runat="server" SelectMethod="GetLockupDetails" TypeName="GWERP.DataAccess.Lockups.GeneralLookupDeep"> <SelectParameters> <asp:ControlParameter ControlID="ddlCity" Name="LockupMaster_ID" PropertyName="SelectedValue" Type="Int32" /> <asp:Parameter DefaultValue="ar" Name="Lang" Type="String" /> </SelectParameters> </asp:ObjectDataSource> public string SaveExpression(object state) { ObjectStateFormatter formatter = new ObjectStateFormatter(); return formatter.Serialize(state); } public object LoadExpression(string savedState) { ObjectStateFormatter formatter = new ObjectStateFormatter(); return formatter.Deserialize(savedState); }Hello Experts,
I have nested radgrid using detail tables.
I have check boxes in one of my nested grid as shown in my html code below.
when user selects checkbox and expands , i want the column header on the expanded grid to show different text.
for e.g -
if they select Inv checkbox and expand, i want InvoiceNo and Invoice Date as my column header.
if they select Rcpt checkbox and expand, i want ReceiptNo and Receipt Date as my column header.
any idea?
-------------------------
here is my html code:
<telerik:RadGrid ID="grdGetMatchMiniSetList" AllowMultiRowSelection="false" AllowMultiRowEdit="false"
runat="server" AllowSorting="True" AllowPaging="false" GridLines="Both"
HierarchyLoadMode="client" Width="900">
<MasterTableView AutoGenerateColumns="false" DataKeyNames="MiniSetID" >
<AlternatingItemStyle BackColor="Gainsboro" />
<NoRecordsTemplate>no records retrieved</NoRecordsTemplate>
<ItemStyle Wrap="True" />
<Columns>
<telerik:GridButtonColumn ConfirmText="Delete this record?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete"
ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" ImageUrl="~/Images/Delete.gif" HeaderText="">
<HeaderStyle HorizontalAlign="Center" Width="30px" />
<ItemStyle HorizontalAlign="Center" />
</telerik:GridButtonColumn>
<telerik:GridBoundColumn DataField="MiniSetID" HeaderText="Mini Set" UniqueName="MiniSetID" HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="InvoiceQty" HeaderText="Invoice Qty" UniqueName="InvoiceQty" HeaderStyle-Wrap="true" >
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ReceiptQty" HeaderText="Rcpt Qty" UniqueName="ReceiptQty" HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="80px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="QtyDifference" HeaderText="Qty Difference" UniqueName="QtyDifference" HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="InvoiceCost" HeaderText="Invoice Cost" UniqueName="InvoiceCost" HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ReceiptCost" HeaderText="ReceiptCost" UniqueName="ReceiptCost" HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CostDifference" HeaderText="Cost Difference" UniqueName="CostDifference" HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
</Columns>
<DetailTables>
<telerik:GridTableView Name="grdStyleDetails" AutoGenerateColumns="false" DataKeyNames="StyleNum">
<Columns>
<telerik:GridTemplateColumn HeaderText="Rcpt" UniqueName="SelectRcpt">
<ItemTemplate>
<asp:CheckBox ID="chkRcpt" runat="server" Checked="false"
/>
</ItemTemplate>
<HeaderStyle Width="20px" Font-Bold="True" />
<ItemStyle Width="20px" HorizontalAlign="Center" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Inv" UniqueName="SelectInv">
<ItemTemplate>
<asp:CheckBox ID="chkInv" runat="server" Checked="false"
/>
</ItemTemplate>
<HeaderStyle Width="20px" Font-Bold="True" />
<ItemStyle Width="20px" HorizontalAlign="Center" />
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="StyleNum" HeaderText="Style" UniqueName="StyleNum"
HeaderStyle-Wrap="true" >
<HeaderStyle Width="120px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="InvQty" HeaderText="Inv Qty" UniqueName="InvQty"
HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="80px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="RcptQty" HeaderText="Rcpt Qty" UniqueName="RcptQty"
HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="80px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="QtyDiff" HeaderText="Qty Diff" UniqueName="QtyDiff"
HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="80px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="InvCost" HeaderText="Inv Cost" UniqueName="InvCost"
HeaderStyle-Wrap="true" >
<HeaderStyle Width="80px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="RcptCost" HeaderText="Rcpt Cost" UniqueName="RcptCost"
HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CostDiff" HeaderText="Cost Diff" UniqueName="CostDiff"
HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
</Columns>
<DetailTables>
<telerik:GridTableView Name="grdReceiptInvoice" AutoGenerateColumns="false">
<Columns>
<telerik:GridBoundColumn DataField="RcptInvNo" HeaderText="Rcpt/Inv No" UniqueName="RcptInvNo"
HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="RcptInvDate" HeaderText="Rcpt/Inv Date" UniqueName="RcptInvDate"
HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Store" HeaderText="Store" UniqueName="Store"
HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Qty" HeaderText="Qty" UniqueName="Qty"
HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="UnitCost" HeaderText="Unit Cost" UniqueName="UnitCost"
HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ExtendedCost" HeaderText="Extended Cost" UniqueName="ExtendedCost"
HeaderStyle-Wrap="true" ReadOnly="True">
<HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="RcptInvNoText" HeaderText="" UniqueName="RcptInvNoText" Display="False" />
<telerik:GridBoundColumn DataField="RcptInvDateText" HeaderText="" UniqueName="RcptInvDateText" Display="False" />
</Columns>
</telerik:GridTableView>
</DetailTables>
</telerik:GridTableView>
</DetailTables>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true">
<Selecting AllowRowSelect="True" />
<Scrolling ScrollHeight="300px" />
<Resizing></Resizing>
<ClientEvents OnRowClick="OnMatchRowSelectedChanged" />
</ClientSettings>
</telerik:RadGrid>
<table align="center"> <tr> <td align="center"> <div style="text-align:left"> <telerik:RadListBox ID="RadListBoxDivisions" runat="server" DataSourceID="ObjectDataSourceDivisions" DataValueField="DIV_NUM" DataTextField="NUMBER_AND_NAME" Height="150px" SelectionMode="Multiple" Width="300px"> </telerik:RadListBox> </div> </td> </tr> </table>Telerik.Web.UI.RadDateInput.prototype.parseDate = function (value, baseDate) { //Some logic here // // //Set new date sender.set_textBoxValue(NewDate.format(sender._displayDateFormat)); //Need to set box to valid state }
var wnd = window.radopen("OpenWin.aspx", "window1");
wnd.setSize(780, 480);
wnd.SetTitle("title");
Thanks
Protected Sub RadChart1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Charting.ChartItemDataBoundEventArgs) Handles RadChart1.ItemDataBound e.SeriesItem.Label.TextBlock.Text = TryCast(DirectCast(e.DataItem, DataRowView)("number"), String) End Sube.SeriesItem.Label.TextBlock.Text = " - #%"e.SeriesItem.Label.TextBlock.Text = TryCast(DirectCast(e.DataItem, DataRowView)("number"), String) + " - #%"<script type="text/javascript">
//<!CDATA[
function OpenSignInWindow() {
var oWnd = $find("<%=rwmXYSignInControl.ClientID %>");
oWnd.show();
}
//]]>
</script>
<span class="xyRegisterSpan" id="xySignInSpan" runat="server">Register</span><br><span class="xySignInSpan" onclick="OpenSignInWindow()"> | Sign-In<br></span><telerik:RadWindowManager ID="rwmXYSignInControl" runat="server"
VisibleOnPageLoad="false" Skin="Black">
<Windows>
<telerik:RadWindow ID="xySignIn" runat="server" Height="300px" Width="450px" Modal="true">
<ContentTemplate>
<div id="xySignInContent" runat="server">
<asp:Label ID="xySignInUsername" runat="server" Text="Username" ForeColor="Aqua"></asp:Label><telerik:RadTextBox
ID="xyUsername" runat="server" Skin="Black" >
</telerik:RadTextBox>
<asp:Label ID="xySignInPassword" runat="server" Text="Password"></asp:Label><telerik:RadTextBox
ID="xyPassword" runat="server" Skin="Black">
</telerik:RadTextBox>
</div>
</ContentTemplate>
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>