$get("startRequest").style.display = "none"; $get("endRequest").style.display = "";
<
telerik:RadGrid ID="grdCurrentandPrior" runat="server" AllowSorting="True" AutoGenerateColumns="False"
GridLines="None" Skin="Web20" Style="margin-right: 0px" Width="673px" Height="260px"
OnNeedDataSource="grdCurrentandPrior_NeedDataSource" OnItemDataBound="grdCurrentandPrior_ItemDataBound">
<ExportSettings FileName="OpenItemsCurrentInventory" IgnorePaging="True" OpenInNewWindow="True">
<Excel Format="HTML" />
</ExportSettings>
<MasterTableView CommandItemDisplay="Bottom" AllowNaturalSort="false">
<CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false"/>
<Columns>
<telerik:GridTemplateColumn HeaderText="Assignee" UniqueName="Assignee" SortExpression="Assignee">
<HeaderStyle Font-Bold="True" Width="100px" HorizontalAlign="Center" />
<ItemTemplate>
<asp:Label ID="lbAssignee" runat="server" Text='<%# Eval("Assignee") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Jurisdictions" UniqueName="JurisdictionCount" SortExpression="JurisdictionCount">
<HeaderStyle Font-Bold="True" Width="100px" HorizontalAlign="Center" />
<ItemTemplate >
<asp:Label ID="lbJurisdiction" runat="server" Text='<%# Eval("JurisdictionCount") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" ForeColor="Black" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="TemplateColumn">
<HeaderTemplate>
<table id="Table1" cellspacing="1" cellpadding="1" width="200px" border="1">
<tr>
<td colspan="2" align="center">
<b>Open Items by Age</b>
</td>
</tr>
<tr>
<td align="center" width="50%">
<b>Prior</b>
</td>
<td align="center" width="50%">
<b>Current</b>
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table id="Table2" cellspacing="1" cellpadding="1" width="260px" border="1">
<tr>
<td width="50%">
<asp:Label ID="lblPriorCount" runat="server" Text='<%# Eval("OpenItemsCountPrior") %>'></asp:Label>
</td>
<td width="50%">
<asp:Label ID="lblCurrentCount" runat="server" Text='<%# Eval("OpenItemsCountELD") %>'></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Items Left to Pay" UniqueName="TotalRemainingItems" SortExpression="TotalRemainingItems">
<HeaderStyle Font-Bold="True" Width="100px" HorizontalAlign="Center" />
<ItemTemplate>
<asp:Label ID="lblPctComplete" runat="server" Text='<%# Eval("TotalRemainingItems") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" ForeColor="Black" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="% Complete" UniqueName="clmPctComplete">
<HeaderStyle Font-Bold="True" Width="100px" HorizontalAlign="Center" />
<ItemTemplate>
<asp:Label ID="lblPctComplete" runat="server" Text='<%# Eval("TotalRemainingItems") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" ForeColor="Black" />
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="AssigneeEmployeeKey" ReadOnly="True" UniqueName="AssigneeEmployeeKey"
Visible="False">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<HeaderStyle BorderStyle="Solid" />
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
</telerik:RadGrid>
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 am trying to use the Selected index of one RadComboBox help build the query to populate another RadComboBox, they are both in the <EditItemTemplate>.
I get an Object reference not set to instance of an object when I run this code just adding a RadComboBoxItem without even building the query.
Protected Sub ItemType_SelectedIndexChanged(ByVal o As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs) Dim DDL As RadComboBox = TryCast(RadGrid1.FindControl("FlatFileType").Controls(0), RadComboBox) Dim RadComboBoxItem1 As New RadComboBoxItem("First Item") DDL.Items.Add(RadComboBoxItem1)End SubI am not sure how to correctly access the second radcombobox to be able to populate it.
Any help is greatly appreciated.
DataFormatString="{0:MM/dd/yyyy}" to make time invisible.<telerik:GridBoundColumn HeaderText="ETA Date" UniqueName="ETA_Date" DataField="ETA_Date" DataFormatString="{0:MM/dd/yyyy}" ReadOnly="true" SortExpression="ETA_Date" > <HeaderStyle Font-Bold="True" Wrap="False" HorizontalAlign="Center"></HeaderStyle> <ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle></telerik:GridBoundColumn>