Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
103 views
I´m not complaining... just reporting a less normal behaviour of this wonderfull grid!
In IE everyting is ok but in firefox, crome or safari the vertical scroll bar fails to display on the first time the grid is shown. Afterwards it shows normaly.
Joao
Top achievements
Rank 1
 answered on 29 Aug 2012
1 answer
107 views
Hello All,
I am using telerik RadEditor. I do not want any scroll bar to this editor so I have given AutoResizeHeight="true".
It works fine in Design mode but if I switch to HTML mode then this editor get a vertical scroll bar.
following is the code,
<
telerik:RadEditor runat="server" ID="contentHeaderEditor" Width="100%" AutoResizeHeight="true"
                                            EnableResize="false" ToolsFile="~/XML/ContentHeaderTools.xml"
                                            EditModes="Design,Html" SkinID="Telerik">
</telerik:RadEditor>
Can anybody help me to remove this vertical scroll bar in HTML mode.
Thanks
Rumen
Telerik team
 answered on 29 Aug 2012
5 answers
1.2K+ views
Hi all,
1. I have the Radgrid having updatable datasource (List<T>) that I store in the session's variable after updating/inserting.
2. All works OK excepting one thing:
3. Each time when I change the C# or aspx - add/remove some control, for example) first time after change the datasource extracted from session is null (when I want edit some row/insert new row)!
4, Second or more time (if I CHANGE NOTHING) all it's OK.

Can anybody give me prompt in this problem?
Thank you.

Boris


O'Man
Top achievements
Rank 1
 answered on 29 Aug 2012
3 answers
110 views
Hi, guys,

I selected some code in RadEditor's "Design" mode.
Then,I changed the mode to "Html" for editing,but the part which I selected in "Design" mode was onblur.

Can I keep the selected part in previous mode being selected after I swap the RadEditor's mode?


Best Regards,
Jack
Rumen
Telerik team
 answered on 29 Aug 2012
1 answer
44 views
RadRotator enables the left arrrow even though the InitialItemIndex is zero and WrapFrames is false. Logically, you can't go one page before the first item, yet RadRotator allows you to do that. What's even worse - when users click the left arrow the RadRotator silently loads third page and then locks up the users between first three pages that are even loaded in the reverse order (this is experienced with version 2012.1.215).

RadRotator also enabled the right arrow even though it does not know whether there are further items on the next page. And when users click that "Page Next" button one of two things happen - either the arrow gets disabled to mark that there is no more items (why RadRotator didn't find this out earlier? Isn't it missing a GetCount() method?) or it goes to next page and then again locks up users there and they cannot click on the "Previous Page" button. 

This happens slightly randomly, unfortunately, but often enough to confuse and scary users.

I believe this could be solved by preloading the first page not on demand but while page render. At this moment the RadRotator could be told the total number of items so it would behave properly when paging. I tried to fill the Items set of RadRotator from code behind and later turn on the load on demand but the RadRotator renders empty.

Can you please suggest a way of prefilling the first page from code behind and let the other pages be loaded on demand?
Slav
Telerik team
 answered on 29 Aug 2012
2 answers
137 views
I have a column that is a datetime but I only want to show time. I tried dataformatstring="{0:H:mm:ss}" but that didn't work. So, I went into my code behind and took the column and formatted it myself.
   Dim nt = ""
                    If (reader("NextContactTime").ToString <> "") Then
                        Dim tempTime As New DateTime
                        tempTime = reader("NextContactTime")
                        nt = tempTime.ToShortTimeString
                    End If

I then add nt to the data table that I bind my grid with. The problem is, when I use the built in sort function, it doesn't sort properly. I have the column type defined as datetime in my data table and I also made sure all of the days are the same. I.e. only the time is different they all are 01/01/2012 9:30:00 01/01/2012 9:45:00

What is the best way to show just time in a column and allow it to be sorted?
gezim
Top achievements
Rank 1
 answered on 29 Aug 2012
4 answers
172 views
Hi Team,

I have a peculiar problem and I am not sure if anyone had come across this problem earlier. however the issue goes like this..

I have a grid with combination of TemplateColumns and BoundColumns and when I filter the grid using the filters under template columns I can see the results in UI (grid) but when I do the same in BoundColumns I do not see any results.. !!!

Funny thing is I can see the output from the query and its returns the correct number of results from DB. and its also assigned to the GridDataSource in the NeedDataSource event. however I cannot find the GridDataItem in the ItemDataBoundItem, I can fetch only headeritem, filteritem and footeritem.

It shows "No records to display" even when there are lot of records assigned to the DataSource.
Here I am attaching the screenshot, where you can see that the records count is displayed but not the records.. !!

Any help is highly appreciated.

Thanks,
Preetham.
Preetham
Top achievements
Rank 2
 answered on 29 Aug 2012
0 answers
65 views
We are using radgrid version 5.1 with VS 2008. Grid has multiple nested level and each level has parallel expandable items. Each levels binding is done dynamically. last level grid has some command template as well to filter and edit records.

We have following requirements for lowest level grid items:
a.we required to expand only one item at a time means if we expand another item previous item should get collapse for last level of grid.

b. We don't want command template control state to carry for all other items of that level. Like if we change dropdown selected value it must be changed only for related item and other item dropdown will have default selected value.

 'Format Code Block'

<rad:RadGrid ID="grdLineItem" runat="server" AutoGenerateColumns="true" Width="100%"

 

GridLines="None" PageSize="100" EnableAJAX="True" EnableAJAXLoadingTemplate="True"

 

LoadingTemplateTransparency="10" ShowStatusBar="true" AllowMultiRowEdit="true" AllowMultiRowSelection="true"

 

BorderColor="#4977b2" BorderStyle="Solid" BorderWidth="1px" >

 

<MasterTableView Name="Summary" DataKeyNames="Details" Width="100%"

BorderStyle="None" GridLines="Both" GroupsDefaultExpanded="False"

 

NoMasterRecordsText="No records to be displayed" HierarchyLoadMode="ServerOnDemand" >

 

<DetailTables>

 

<rad:GridTableView Name="AcctTypeID" DataKeyNames="AcctTypeID" Width="100%" runat="server" AutoGenerateColumns="true"

 

GroupsDefaultExpanded="False" HorizontalAlign="Right" NoDetailRecordsText="No records to be displayed" ShowHeadersWhenNoRecords="false">

 

<DetailTables>

 

<rad:GridTableView Name="DeptID" DataKeyNames="DeptID" Width="100%" runat="server" AutoGenerateColumns="true"

 

GroupsDefaultExpanded="False" HorizontalAlign="Right" NoDetailRecordsText="No records to be displayed" ShowHeadersWhenNoRecords="false">

 

<DetailTables>

<rad:GridTableView Name="LineItems" DataKeyNames="AcctID" Width="100%" runat="server" AutoGenerateColumns="false"

 

GroupsDefaultExpanded="False" HorizontalAlign="Right" NoDetailRecordsText="No records to be displayed"

 

ShowHeadersWhenNoRecords="True" EditMode="InPlace" AlternatingItemStyle-BackColor="#ddecfe"

 

GridLines="Vertical" AllowSorting="true" CommandItemDisplay="Top"

AllowMultiRowSelection="True" AllowMultiRowEdit="true">

 

<CommandItemTemplate>

 

<div>

 

<asp:Panel ID="pnlFilter" runat="server" GroupingText="FILTERS" Font-Bold="true">

Account Type:

 

<asp:DropDownList ID="ddlAcctSubType" CssClass="EditDropdown" runat="server" DataSource='<%# GetAccountSubTypeDV() %>'

 

DataTextField="AcctSubTypeName" DataValueField="AcctSubTypeID" SelectedValue='<%# SelectedAcctSubTypeID %>'

 

AppendDataBoundItems="True" AutoPostBack="true" OnSelectedIndexChanged="ddlAcctSubType_SelectedIndexChanged">

 

<asp:ListItem Text="All" Value="0"></asp:ListItem>

 

</asp:DropDownList>

 

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

 

<asp:CheckBox ID="chkShowOnlyUsed" Text="Show Used Items Only" Checked='<%# ShowUsedLineItemsOnly %>'

 

AutoPostBack="true" OnCheckedChanged="OnCheckedChanged_chkShowOnlyUsed" runat="server" />

 

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

 

</asp:Panel>

 

<asp:Panel ID="pnlAction" runat="server" GroupingText="ACTIONS" Font-Bold="true">

 

<asp:LinkButton CommandName="cmdEditSelected" ID="lbEditSelected" Visible='<%# grdLineItem.EditIndexes.Count = 0 And Not grdLineItem.MasterTableView.IsItemInserted %>'

 

runat="server">

 

<img id="Img1" alt="Edit selected row(s)" src="~/images/Edit.gif" runat="server" />

Edit Selected

 

</asp:LinkButton>

 

&nbsp;

 

<asp:LinkButton CommandName="cmdEditAll" ID="lbEditAll" Visible='<%# grdLineItem.EditIndexes.Count = 0 And Not grdLineItem.MasterTableView.IsItemInserted %>'

runat="server">

<img id="Img2" alt="Edit all rows" src="~/images/Edit.gif" runat="server" />

Edit All

 

</asp:LinkButton>

 

&nbsp;

 

<asp:LinkButton CommandName="cmdUpdateEdited" ID="lbUpdateEdited" visible='<%# grdLineItem.EditIndexes.Count > 0 Or grdLineItem.MasterTableView.IsItemInserted %>'

 

runat="server">

 

<img id="Img3" alt="Save edited row(s)" src="~/images/Save.gif" runat="server" />

Save Edit(s)

 

</asp:LinkButton>

 

&nbsp;

 

<asp:LinkButton CommandName="cmdCancelAll" ID="lbCancelEdit" runat="server" Visible='<%# grdLineItem.EditIndexes.Count > 0 Or grdLineItem.MasterTableView.IsItemInserted %>'>

 

<img id="Img4" alt="Cancel edited row(s)" src="~/images/Cancel.gif" runat="server" />

Cancel Edit(s)

 

</asp:LinkButton>

 

&nbsp;

 

<asp:LinkButton CommandName="cmdNewLine" ID="btnNewLine" runat="server" Visible='<%# grdLineItem.EditIndexes.Count = 0 And Not grdLineItem.MasterTableView.IsItemInserted %>'

 

OnClientClick="javascript:return showAddLinePopup();">

 

<img id="Img9" src="~/images/New.gif" runat="server" alt="" />

Add Line

 

</asp:LinkButton>

 

&nbsp;&nbsp; &nbsp;&nbsp;<asp:Label ID="Label4" Text="Legend:" runat="server" />

 

&nbsp;<asp:Label ID="Label1" BackColor="LightBlue" Text=" Linked " Font-Bold="false"

 

BorderWidth="1px" BorderStyle="Solid" BorderColor="DarkGray" runat="server" />

 

&nbsp;<asp:Label ID="Label2" BackColor="#faeeb0" Text=" Locked " Font-Bold="false"

 

BorderWidth="1px" BorderStyle="Solid" BorderColor="DarkGray" runat="server" />

 

&nbsp;<asp:Label ID="Label3" BackColor="LightGreen" Text=" Linked & Locked " Font-Bold="false"

 

BorderWidth="1px" BorderStyle="Solid" BorderColor="DarkGray" runat="server" />

 

</asp:Panel>

 

</div>

 

<asp:Label ID="lblDeptCaption" runat="server" CssClass="tableCaption" />

 

</CommandItemTemplate>

 

<Columns>

 

<rad:GridClientSelectColumn UniqueName="SelectColumn">

 

<HeaderStyle Width="16px" />

 

</rad:GridClientSelectColumn>

 

<rad:GridRowIndicatorColumn UniqueName="Select">

 

</rad:GridRowIndicatorColumn>

 

<rad:GridBoundColumn UniqueName="DeptID" HeaderText="Department ID" DataField="DeptID" DataType="System.Int32" ReadOnly="true" Display="false" />

 

<rad:GridBoundColumn UniqueName="AcctID" HeaderText="Account ID" DataField="AcctID" DataType="System.Int32" ReadOnly="true" Display="false" />

 

<rad:GridBoundColumn UniqueName="AcctSubTypeName" HeaderText="Account Type" DataField="AcctSubTypeName"

 

DataType="System.String" ItemStyle-CssClass="GridBoundColumnCss" ReadOnly="true" HeaderStyle-Font-Bold="true" HeaderStyle-VerticalAlign="Bottom" HeaderStyle-HorizontalAlign="Left" SortedBackColor="Transparent" />

 

<rad:GridBoundColumn UniqueName="AcctCode" HeaderText="Account Code" DataField="AcctCode"

DataType="System.String" ReadOnly="true" HeaderStyle-VerticalAlign="Bottom" HeaderStyle-HorizontalAlign="Left"

 

HeaderStyle-Font-Bold="true" ItemStyle-CssClass="GridBoundColumnCss" SortedBackColor="Transparent" />

 

<rad:GridBoundColumn UniqueName="AcctName" HeaderText="Account Name" DataField="AcctName"

 

DataType="System.String" ReadOnly="true" HeaderStyle-VerticalAlign="Bottom" HeaderStyle-HorizontalAlign="Left"

 

ItemStyle-CssClass="GridBoundColumnCss" HeaderStyle-Font-Bold="true" SortedBackColor="Transparent" />

 

<rad:GridTemplateColumn UniqueName="January" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true">

 

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

 

<HeaderTemplate>

 

<asp:Label ID="lblHdr_1" runat="server" Text="January" /><br />

 

</HeaderTemplate>

 

<EditItemTemplate>

 

<asp:Table ID="tbl1" runat="server">

 

<asp:TableRow ID="tblRow_DriverType_1" runat="server">

 

<asp:TableCell>

 

<span>Driver Type:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:DropDownList ID="ddlDriverType_1" runat="server" CssClass="EditDropdown" AppendDataBoundItems="True" Enabled="false">

 

</asp:DropDownList>

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAmt_1" runat="server">

 

<asp:TableCell>

 

<span>Driver Amt:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtDriverAmt_1" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod1.PlanMonthDriverAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAdjAmt_1" runat="server">

 

<asp:TableCell>

 

<span>Adjustment:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtAdjAmt_1" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod1.PlanMonthAdjAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverNote_1" runat="server">

 

<asp:TableCell>

<span>Notes:</span>

 

</asp:TableCell>

 

<asp:TableCell HorizontalAlign="Left">

 

<asp:TextBox ID="txtNote_1" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod1.PlanMonthRefText") %>'

 

TextMode="SingleLine" Width="150px" />

 

<asp:Label ID="lblPeriodGUID_1" runat="server" Text='<%# Eval("LineItemPeriod1.PlanMonthGUID") %>'

 

Visible="false" />

 

<asp:Label ID="lblLineGUID_1" runat="server" Text='<%# Eval("LineItemPeriod1.GUID") %>'

 

Visible="false" />

 

</asp:TableCell>

 

</asp:TableRow>

 

</asp:Table>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblTotalAmt_1" runat="server" Text='<%# Eval("LineItemPeriod1.PlanMonthAmountValue","{0:N2}")%>' />

 

</ItemTemplate>

 

</rad:GridTemplateColumn>

 

<rad:GridTemplateColumn UniqueName="February" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true">

 

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

 

<HeaderTemplate>

 

<asp:Label ID="lblHdr_2" runat="server" Text="February" /><br />

 

</HeaderTemplate>

 

<EditItemTemplate>

 

<asp:Table ID="tbl2" runat="server">

 

<asp:TableRow ID="tblRow_DriverType_2" runat="server">

 

<asp:TableCell>

 

<span>Driver Type:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:DropDownList ID="ddlDriverType_2" runat="server" CssClass="EditDropdown" AppendDataBoundItems="True" Enabled="false">

 

</asp:DropDownList>

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAmt_2" runat="server">

 

<asp:TableCell>

 

<span>Driver Amt:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtDriverAmt_2" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod2.PlanMonthDriverAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAdjAmt_2" runat="server">

 

<asp:TableCell>

 

<span>Adjustment:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtAdjAmt_2" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod2.PlanMonthAdjAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverNote_2" runat="server">

 

<asp:TableCell>

 

<span>Notes:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtNote_2" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod2.PlanMonthRefText") %>'

 

TextMode="SingleLine" Width="150px" />

 

<asp:Label ID="lblPeriodGUID_2" runat="server" Text='<%# Eval("LineItemPeriod2.PlanMonthGUID") %>'

 

Visible="false" />

 

<asp:Label ID="lblLineGUID_2" runat="server" Text='<%# Eval("LineItemPeriod2.GUID") %>'

 

Visible="false" />

 

</asp:TableCell>

 

</asp:TableRow>

 

</asp:Table>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblTotalAmt_2" runat="server" Text='<%# Eval("LineItemPeriod2.PlanMonthAmountValue","{0:N2}")%>' />

 

</ItemTemplate>

 

</rad:GridTemplateColumn>

 

<rad:GridTemplateColumn UniqueName="March" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true">

 

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

 

<HeaderTemplate>

 

<asp:Label ID="lblHdr_3" runat="server" Text="March" /><br />

 

</HeaderTemplate>

 

<EditItemTemplate>

 

<asp:Table ID="tbl3" runat="server">

 

<asp:TableRow ID="tblRow_DriverType_3" runat="server">

 

<asp:TableCell>

 

<span>Driver Type:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:DropDownList ID="ddlDriverType_3" runat="server" CssClass="EditDropdown" AppendDataBoundItems="True"

 

Enabled="false">

 

</asp:DropDownList>

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAmt_3" runat="server">

 

<asp:TableCell>

 

<span>Driver Amt:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtDriverAmt_3" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod3.PlanMonthDriverAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAdjAmt_3" runat="server">

 

<asp:TableCell>

 

<span>Adjustment:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtAdjAmt_3" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod3.PlanMonthAdjAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverNote_3" runat="server">

 

<asp:TableCell>

 

<span>Notes:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtNote_3" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod3.PlanMonthRefText") %>'

 

TextMode="SingleLine" Width="150px" />

 

<asp:Label ID="lblPeriodGUID_3" runat="server" Text='<%# Eval("LineItemPeriod3.PlanMonthGUID") %>'

 

Visible="false" />

 

<asp:Label ID="lblLineGUID_3" runat="server" Text='<%# Eval("LineItemPeriod3.GUID") %>'

 

Visible="false" />

 

</asp:TableCell>

 

</asp:TableRow>

 

</asp:Table>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblTotalAmt_3" runat="server" Text='<%# Eval("LineItemPeriod3.PlanMonthAmountValue","{0:N2}")%>' />

 

</ItemTemplate>

 

</rad:GridTemplateColumn>

 

<rad:GridTemplateColumn UniqueName="April" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true">

 

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

 

<HeaderTemplate>

 

<asp:Label ID="lblHdr_4" runat="server" Text="April" /><br />

 

</HeaderTemplate>

 

<EditItemTemplate>

 

<asp:Table ID="tbl4" runat="server">

 

<asp:TableRow ID="tblRow_DriverType_4" runat="server">

 

<asp:TableCell>

 

<span>Driver Type:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:DropDownList ID="ddlDriverType_4" runat="server" CssClass="EditDropdown" AppendDataBoundItems="True"

 

Enabled="false">

 

</asp:DropDownList>

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAmt_4" runat="server">

 

<asp:TableCell>

 

<span>Driver Amount:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtDriverAmt_4" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod4.PlanMonthDriverAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAdjAmt_4" runat="server">

 

<asp:TableCell>

 

<span>Adjustment:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtAdjAmt_4" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod4.PlanMonthAdjAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverNote_4" runat="server">

 

<asp:TableCell>

 

<span>Notes:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtNote_4" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod4.PlanMonthRefText") %>'

 

TextMode="SingleLine" Width="150px" />

 

<asp:Label ID="lblPeriodGUID_4" runat="server" Text='<%# Eval("LineItemPeriod4.PlanMonthGUID") %>'

 

Visible="false" />

 

<asp:Label ID="lblLineGUID_4" runat="server" Text='<%# Eval("LineItemPeriod4.GUID") %>'

 

Visible="false" />

 

</asp:TableCell>

 

</asp:TableRow>

 

</asp:Table>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblTotalAmt_4" runat="server" Text='<%# Eval("LineItemPeriod4.PlanMonthAmountValue","{0:N2}")%>' />

 

</ItemTemplate>

 

</rad:GridTemplateColumn>

 

<rad:GridTemplateColumn UniqueName="May" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true">

 

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

 

<HeaderTemplate>

 

<asp:Label ID="lblHdr_5" runat="server" Text="May" /><br />

 

</HeaderTemplate>

 

<EditItemTemplate>

 

<asp:Table ID="tbl5" runat="server">

 

<asp:TableRow ID="tblRow_DriverType_5" runat="server">

 

<asp:TableCell>

 

<span>Driver Type:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:DropDownList ID="ddlDriverType_5" runat="server" CssClass="EditDropdown" AppendDataBoundItems="True"

 

Enabled="false">

 

</asp:DropDownList>

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAmt_5" runat="server">

 

<asp:TableCell>

 

<span>Driver Amount:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtDriverAmt_5" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod5.PlanMonthDriverAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAdjAmt_5" runat="server">

 

<asp:TableCell>

 

<span>Adjustment:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtAdjAmt_5" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod5.PlanMonthAdjAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverNote_5" runat="server">

 

<asp:TableCell>

 

<span>Notes:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtNote_5" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod5.PlanMonthRefText") %>'

 

TextMode="SingleLine" Width="150px" />

 

<asp:Label ID="lblPeriodGUID_5" runat="server" Text='<%# Eval("LineItemPeriod5.PlanMonthGUID") %>'

 

Visible="false" />

 

<asp:Label ID="lblLineGUID_5" runat="server" Text='<%# Eval("LineItemPeriod5.GUID") %>'

 

Visible="false" />

 

</asp:TableCell>

 

</asp:TableRow>

 

</asp:Table>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblTotalAmt_5" runat="server" Text='<%# Eval("LineItemPeriod5.PlanMonthAmountValue","{0:N2}")%>' />

 

</ItemTemplate>

 

</rad:GridTemplateColumn>

 

<rad:GridTemplateColumn UniqueName="June" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true">

 

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

 

<HeaderTemplate>

 

<asp:Label ID="lblHdr_6" runat="server" Text="June" /><br />

 

</HeaderTemplate>

 

<EditItemTemplate>

 

<asp:Table ID="tbl6" runat="server">

 

<asp:TableRow ID="tblRow_DriverType_6" runat="server">

 

<asp:TableCell>

 

<span>Driver Type:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:DropDownList ID="ddlDriverType_6" runat="server" CssClass="EditDropdown" AppendDataBoundItems="True"

 

Enabled="false">

 

</asp:DropDownList>

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAmt_6" runat="server">

 

<asp:TableCell>

 

<span>Driver Amt:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtDriverAmt_6" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod6.PlanMonthDriverAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAdjAmt_6" runat="server">

 

<asp:TableCell>

 

<span>Adjustment:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtAdjAmt_6" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod6.PlanMonthAdjAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverNote_6" runat="server">

 

<asp:TableCell>

 

<span>Notes:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtNote_6" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod6.PlanMonthRefText") %>'

 

TextMode="SingleLine" Width="150px" />

 

<asp:Label ID="lblPeriodGUID_6" runat="server" Text='<%# Eval("LineItemPeriod6.PlanMonthGUID") %>'

 

Visible="false" />

 

<asp:Label ID="lblLineGUID_6" runat="server" Text='<%# Eval("LineItemPeriod6.GUID") %>'

 

Visible="false" />

 

</asp:TableCell>

 

</asp:TableRow>

 

</asp:Table>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblTotalAmt_6" runat="server" Text='<%# Eval("LineItemPeriod6.PlanMonthAmountValue","{0:N2}")%>' />

 

</ItemTemplate>

 

</rad:GridTemplateColumn>

 

<rad:GridTemplateColumn UniqueName="July" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true">

 

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

 

<HeaderTemplate>

 

<asp:Label ID="lblHdr_7" runat="server" Text="July" /><br />

 

</HeaderTemplate>

 

<EditItemTemplate>

 

<asp:Table ID="tbl_7" runat="server">

 

<asp:TableRow ID="tblRow_DriverType_7" runat="server">

 

<asp:TableCell>

 

<span>Driver Type:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:DropDownList ID="ddlDriverType_7" runat="server" CssClass="EditDropdown" AppendDataBoundItems="True"

 

Enabled="false">

 

</asp:DropDownList>

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAmt_7" runat="server">

 

<asp:TableCell>

 

<span>Driver Amount:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtDriverAmt_7" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod7.PlanMonthDriverAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAdjAmt_7" runat="server">

 

<asp:TableCell>

 

<span>Adjustment:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtAdjAmt_7" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod7.PlanMonthAdjAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverNote_7" runat="server">

 

<asp:TableCell>

 

<span>Notes:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtNote_7" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod7.PlanMonthRefText") %>'

 

TextMode="SingleLine" Width="150px" />

 

<asp:Label ID="lblPeriodGUID_7" runat="server" Text='<%# Eval("LineItemPeriod7.PlanMonthGUID") %>'

 

Visible="false" />

 

<asp:Label ID="lblLineGUID_7" runat="server" Text='<%# Eval("LineItemPeriod7.GUID") %>'

 

Visible="false" />

 

</asp:TableCell>

 

</asp:TableRow>

 

</asp:Table>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblTotalAmt_7" runat="server" Text='<%# Eval("LineItemPeriod7.PlanMonthAmountValue","{0:N2}")%>' />

 

</ItemTemplate>

 

</rad:GridTemplateColumn>

 

<rad:GridTemplateColumn UniqueName="August" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true">

 

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

 

<HeaderTemplate>

 

<asp:Label ID="lblHdr_8" runat="server" Text="August" /><br />

 

</HeaderTemplate>

 

<EditItemTemplate>

 

<asp:Table ID="tbl_8" runat="server">

 

<asp:TableRow ID="tblRow_DriverType_8" runat="server">

 

<asp:TableCell>

 

<span>Driver Type:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:DropDownList ID="ddlDriverType_8" runat="server" CssClass="EditDropdown" AppendDataBoundItems="True"

 

Enabled="false">

 

</asp:DropDownList>

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAmt_8" runat="server">

 

<asp:TableCell>

 

<span>Driver Amount:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtDriverAmt_8" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod8.PlanMonthDriverAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAdjAmt_8" runat="server">

 

<asp:TableCell>

 

<span>Adjustment:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtAdjAmt_8" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod8.PlanMonthAdjAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverNote_8" runat="server">

 

<asp:TableCell>

 

<span>Notes:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtNote_8" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod8.PlanMonthRefText") %>'

 

TextMode="SingleLine" Width="150px" />

 

<asp:Label ID="lblPeriodGUID_8" runat="server" Text='<%# Eval("LineItemPeriod8.PlanMonthGUID") %>'

 

Visible="false" />

 

<asp:Label ID="lblLineGUID_8" runat="server" Text='<%# Eval("LineItemPeriod8.GUID") %>'

 

Visible="false" />

 

</asp:TableCell>

 

</asp:TableRow>

 

</asp:Table>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblTotalAmt_8" runat="server" Text='<%# Eval("LineItemPeriod8.PlanMonthAmountValue","{0:N2}")%>' />

 

</ItemTemplate>

 

</rad:GridTemplateColumn>

 

<rad:GridTemplateColumn UniqueName="September" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true">

 

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

 

<HeaderTemplate>

 

<asp:Label ID="lblHdr_9" runat="server" Text="September" /><br />

 

</HeaderTemplate>

 

<EditItemTemplate>

 

<asp:Table ID="tbl_9" runat="server">

 

<asp:TableRow ID="tblRow_DriverType_9" runat="server">

 

<asp:TableCell>

 

<span>Driver Type:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:DropDownList ID="ddlDriverType_9" runat="server" CssClass="EditDropdown" AppendDataBoundItems="True"

 

Enabled="false">

 

</asp:DropDownList>

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAmt_9" runat="server">

 

<asp:TableCell>

 

<span>Driver Amount:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtDriverAmt_9" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod9.PlanMonthDriverAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAdjAmt_9" runat="server">

 

<asp:TableCell>

 

<span>Adjustment:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtAdjAmt_9" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod9.PlanMonthAdjAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverNote_9" runat="server">

 

<asp:TableCell>

 

<span>Notes:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtNote_9" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod9.PlanMonthRefText") %>'

 

TextMode="SingleLine" Width="150px" />

 

<asp:Label ID="lblPeriodGUID_9" runat="server" Text='<%# Eval("LineItemPeriod9.PlanMonthGUID") %>'

 

Visible="false" />

 

<asp:Label ID="lblLineGUID_9" runat="server" Text='<%# Eval("LineItemPeriod9.GUID") %>'

 

Visible="false" />

 

</asp:TableCell>

 

</asp:TableRow>

 

</asp:Table>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblTotalAmt_9" runat="server" Text='<%# Eval("LineItemPeriod9.PlanMonthAmountValue","{0:N2}")%>' />

 

</ItemTemplate>

 

</rad:GridTemplateColumn>

 

<rad:GridTemplateColumn UniqueName="October" HeaderStyle-HorizontalAlign="Left"

 

HeaderStyle-Font-Bold="true">

 

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

 

<HeaderTemplate>

 

<asp:Label ID="lblHdr_10" runat="server" Text="October" /><br />

 

</HeaderTemplate>

 

<EditItemTemplate>

 

<asp:Table ID="tbl_10" runat="server">

 

<asp:TableRow ID="tblRow_DriverType_10" runat="server">

 

<asp:TableCell>

 

<span>Driver Type:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:DropDownList ID="ddlDriverType_10" runat="server" CssClass="EditDropdown" AppendDataBoundItems="True"

 

Enabled="false">

 

</asp:DropDownList>

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAmt_10" runat="server">

 

<asp:TableCell>

 

<span>Driver Amount:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtDriverAmt_10" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod10.PlanMonthDriverAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAdjAmt_10" runat="server">

 

<asp:TableCell>

 

<span>Adjustment:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtAdjAmt_10" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod10.PlanMonthAdjAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverNote_10" runat="server">

 

<asp:TableCell>

 

<span>Notes:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtNote_10" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod10.PlanMonthRefText") %>'

 

TextMode="SingleLine" Width="150px" />

 

<asp:Label ID="lblPeriodGUID_10" runat="server" Text='<%# Eval("LineItemPeriod10.PlanMonthGUID") %>'

 

Visible="false" />

 

<asp:Label ID="lblLineGUID_10" runat="server" Text='<%# Eval("LineItemPeriod10.GUID") %>'

 

Visible="false" />

 

</asp:TableCell>

 

</asp:TableRow>

 

</asp:Table>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblTotalAmt_10" runat="server" Text='<%# Eval("LineItemPeriod10.PlanMonthAmountValue","{0:N2}")%>' />

 

</ItemTemplate>

 

</rad:GridTemplateColumn>

 

<rad:GridTemplateColumn UniqueName="November" HeaderStyle-HorizontalAlign="Left"

 

HeaderStyle-Font-Bold="true">

 

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

 

<HeaderTemplate>

 

<asp:Label ID="lblHdr_11" runat="server" Text="November" /><br />

 

</HeaderTemplate>

 

<EditItemTemplate>

 

<asp:Table ID="tbl_11" runat="server">

 

<asp:TableRow ID="tblRow_DriverType_11" runat="server">

 

<asp:TableCell>

 

<span>Driver Type:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:DropDownList ID="ddlDriverType_11" runat="server" CssClass="EditDropdown" AppendDataBoundItems="True"

 

Enabled="false">

 

</asp:DropDownList>

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAmt_11" runat="server">

 

<asp:TableCell>

 

<span>Driver Amount:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtDriverAmt_11" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod11.PlanMonthDriverAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAdjAmt_11" runat="server">

 

<asp:TableCell>

 

<span>Adjustment:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtAdjAmt_11" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod11.PlanMonthAdjAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverNote_11" runat="server">

 

<asp:TableCell>

 

<span>Notes:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtNote_11" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod11.PlanMonthRefText") %>'

 

TextMode="SingleLine" Width="150px" />

 

<asp:Label ID="lblPeriodGUID_11" runat="server" Text='<%# Eval("LineItemPeriod11.PlanMonthGUID") %>'

 

Visible="false" />

 

<asp:Label ID="lblLineGUID_11" runat="server" Text='<%# Eval("LineItemPeriod11.GUID") %>'

 

Visible="false" />

 

</asp:TableCell>

 

</asp:TableRow>

 

</asp:Table>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblTotalAmt_11" runat="server" Text='<%# Eval("LineItemPeriod11.PlanMonthAmountValue","{0:N2}")%>' />

 

</ItemTemplate>

 

</rad:GridTemplateColumn>

 

<rad:GridTemplateColumn UniqueName="December" HeaderStyle-HorizontalAlign="Left"

 

HeaderStyle-Font-Bold="true">

 

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

 

<HeaderTemplate>

 

<asp:Label ID="lblHdr_12" runat="server" Text="December" /><br />

 

</HeaderTemplate>

 

<EditItemTemplate>

 

<asp:Table ID="tbl_12" runat="server">

 

<asp:TableRow ID="tblRow_DriverType_12" runat="server">

 

<asp:TableCell>

 

<span>Driver Type:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:DropDownList ID="ddlDriverType_12" runat="server" CssClass="EditDropdown" AppendDataBoundItems="True"

 

Enabled="false">

 

</asp:DropDownList>

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAmt_12" runat="server">

 

<asp:TableCell>

 

<span>Driver Amount:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtDriverAmt_12" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod12.PlanMonthDriverAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverAdjAmt_12" runat="server">

 

<asp:TableCell>

 

<span>Adjustment:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtAdjAmt_12" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod12.PlanMonthAdjAmount","{0:N2}") %>'

 

Width="100px" />

 

</asp:TableCell>

 

</asp:TableRow>

 

<asp:TableRow ID="tblRow_DriverNote_12" runat="server">

 

<asp:TableCell>

 

<span>Notes:</span>

 

</asp:TableCell>

 

<asp:TableCell>

 

<asp:TextBox ID="txtNote_12" CssClass="txtBox" runat="server" Text='<%# Eval("LineItemPeriod12.PlanMonthRefText") %>'

 

TextMode="SingleLine" Width="150px" />

 

<asp:Label ID="lblPeriodGUID_12" runat="server" Text='<%# Eval("LineItemPeriod12.PlanMonthGUID") %>'

 

Visible="false" />

 

<asp:Label ID="lblLineGUID_12" runat="server" Text='<%# Eval("LineItemPeriod12.GUID") %>'

 

Visible="false" />

 

</asp:TableCell>

 

</asp:TableRow>

 

</asp:Table>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblTotalAmt_12" runat="server" Text='<%# Eval("LineItemPeriod12.PlanMonthAmountValue","{0:N2}")%>' />

 

</ItemTemplate>

 

</rad:GridTemplateColumn>

 

<rad:GridBoundColumn UniqueName="Total" DataField="Total" HeaderText="Total" ReadOnly="true"

 

DataFormatString="{0:N2}" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true" />

 

<rad:GridBoundColumn UniqueName="POR" DataField="POR" HeaderText="POR" ReadOnly="true"

 

DataFormatString="{0:N2}" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true" />

 

<rad:GridBoundColumn UniqueName="PctRmRev" DataField="PctRmRev" HeaderText="% Rm Rev"

 

DataFormatString="{0:N2}%" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true"

 

ReadOnly="true" />

 

</Columns>

 

</rad:GridTableView>

</DetailTables>

 

<Columns>

 

</Columns>

 

<RowIndicatorColumn Visible="False">

 

<HeaderStyle Width="20px" />

 

</RowIndicatorColumn>

 

<ExpandCollapseColumn Visible="True">

 

<HeaderStyle Width="20px" />

 

</ExpandCollapseColumn>

 

</rad:GridTableView>

 

</DetailTables>

 

<Columns>

 

</Columns>

 

<RowIndicatorColumn Visible="False">

 

<HeaderStyle Width="20px" />

 

</RowIndicatorColumn>

 

<ExpandCollapseColumn Visible="True">

 

<HeaderStyle Width="20px" />

 

</ExpandCollapseColumn>

 

</rad:GridTableView>

 

</DetailTables>

 

<Columns>

 

</Columns>

 

<RowIndicatorColumn Visible="False">

 

<HeaderStyle Width="20px" />

 

</RowIndicatorColumn>

 

<ExpandCollapseColumn Visible="True">

 

<HeaderStyle Width="20px" />

 

</ExpandCollapseColumn>

 

</MasterTableView>

<ClientSettings EnableClientKeyValues="True">

 

<Selecting AllowRowSelect="True" />

 

<Resizing AllowColumnResize="True" EnableRealTimeResize="True" />

 

<Scrolling UseStaticHeaders="True" />

 

</ClientSettings>

 

<SortingSettings SortedBackColor="212, 208, 200" />

 

</rad:RadGrid>



 'Format Code Block'

Private

 

Sub grdLineItem_NeedDataSource(ByVal source As Object, ByVal e As Telerik.WebControls.GridNeedDataSourceEventArgs) Handles grdLineItem.NeedDataSource

If Not e.IsFromDetailTable Then Me.grdLineItem.DataSource = Me.GetDataSource_Summary()

End Sub

 

Private Sub grdLineItem_DetailTableDataBind(ByVal source As Object, ByVal e As Telerik.WebControls.GridDetailTableDataBindEventArgs) Handles grdLineItem.DetailTableDataBind

If (TypeOf e.DetailTableView.ParentItem Is GridDataItem) Then

 

Dim oItem As GridDataItem = DirectCast(e.DetailTableView.ParentItem, GridDataItem)

Select e.DetailTableView.Name

Case "AcctTypeID"

 

Dim iDeptInGOPFlag As Integer = CType(oItem.OwnerTableView.Items(oItem.ItemIndex)("DeptInGOPFlag").Text, Integer)

e.DetailTableView.DataSource = GetDataSource_AcctType(iDeptInGOPFlag)

Case "DeptID"

 

Dim iDeptInGOPFlag As Integer = CType(oItem.OwnerTableView.Items(oItem.ItemIndex)("DeptInGOPFlag").Text, Integer)

Dim iAcctTypeID As Integer = CType(oItem.OwnerTableView.Items(oItem.ItemIndex)("AcctTypeID").Text, Integer)

e.DetailTableView.DataSource = GetDataSource_Dept(iAcctTypeID, iDeptInGOPFlag)

Case "LineItems"

 

Dim iDeptID As Integer = CType(oItem.OwnerTableView.Items(oItem.ItemIndex)("DeptID").Text, Integer)

Dim iAcctTypeID As Integer = CType(oItem.OwnerTableView.Items(oItem.ItemIndex)("AcctTypeID").Text, Integer)

e.DetailTableView.DataSource = mvarEditVersion.GetLineItemListForDisplay(iAcctTypeID,

Me.SelectedAcctSubTypeID, iDeptID, Me.ShowUsedLineItemsOnly)

End Select

 

End If

 

End Sub

 

Private Sub grdLineItem_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles grdLineItem.DataBound

'Expand all items using our custom storage

 

Dim sIndexes As String() = New String(Me.ExpandedStates.Keys.Count - 1) {}

Me.ExpandedStates.Keys.CopyTo(sIndexes, 0)

Dim aIndexes As New ArrayList(sIndexes)

'Sort so we can guarantee that a parent item is expanded before any of its children

aIndexes.Sort()

 

'Expanded states

 

For Each sKey As String In aIndexes

Dim bExpanded As Boolean = CBool(Me.ExpandedStates(sKey))

If bExpanded And Me.grdLineItem.Items.Count > 0 Then grdLineItem.Items(sKey).Expanded = True

 

Next

 

'Selected states

sIndexes =

 

New String(Me.SelectedStates.Keys.Count - 1) {}

Me.SelectedStates.Keys.CopyTo(sIndexes, 0)

aIndexes =

New ArrayList(sIndexes)

'Sort to ensure that a parent item is selected before any of its children

aIndexes.Sort()

 

For Each key As String In aIndexes

Dim bSelected As Boolean = CBool(Me.SelectedStates(key))

If bSelected Then Me.grdLineItem.Items(key).Selected = True

 

Next

 

End Sub

 

Private Sub grdLineItem_ItemCommand(ByVal source As Object, ByVal e As Telerik.WebControls.GridCommandEventArgs) Handles grdLineItem.ItemCommand

If e.CommandName = RadGrid.ExpandCollapseCommandName Then

 

If Not e.Item.Expanded Then

'CollapseExpandedDept(e.Item.OwnerTableView)

 

Me.ExpandedStates(e.Item.ItemIndexHierarchical) = True

 

 

Else

 

Me.ExpandedStates.Remove(e.Item.ItemIndexHierarchical)

Me.ClearExpandedChildren(e.Item.ItemIndexHierarchical)

End If

 

ElseIf e.CommandName = RadGrid.SelectCommandName Then

 

Me.SelectedStates(e.Item.ItemIndexHierarchical) = True

 

ElseIf e.CommandName = RadGrid.DeselectCommandName Then

 

Me.SelectedStates.Remove(e.Item.ItemIndexHierarchical)

ElseIf e.CommandName = "cmdEditSelected" Then

 

For Each oItem As GridItem In Me.grdLineItem.SelectedItems

If TypeOf oItem Is GridEditableItem Then

 

Dim oEdit As GridEditableItem = CType(oItem, GridDataItem)

oEdit.Edit =

True

 

End If

 

Next

e.Item.OwnerTableView.Rebind()

 

ElseIf e.CommandName = "cmdEditAll" Then

 

For Each oItem As GridItem In Me.grdLineItem.Items

If TypeOf oItem Is GridEditableItem Then

 

'Checking OwnerTableView ID for each oItem with event item so that only required item will be editable

 

If (oItem.OwnerTableView.Name = "LineItems") And (e.Item.OwnerTableView.ID = oItem.OwnerTableView.ID) Then

 

Dim oEdit As GridEditableItem = CType(oItem, GridDataItem)

oEdit.Edit =

True

 

End If

 

End If

 

Next

e.Item.OwnerTableView.Rebind()

 

ElseIf e.CommandName = RadGrid.UpdateEditedCommandName Or e.CommandName = RadGrid.UpdateCommandName Or e.CommandName = "cmdUpdateEdited" Then

 

If Me.grdLineItem.EditItems.Count > 0 Then

 

For Each oItem As GridDataItem In grdLineItem.EditItems

oItem.Edit =

Not UpdateObjectFromGridItem(oItem)

Next

e.Item.OwnerTableView.Rebind()

 

End If

 

ElseIf e.CommandName = RadGrid.CancelAllCommandName Or e.CommandName = "cmdCancelAll" Then

 

If Me.grdLineItem.EditItems.Count > 0 Then

 

For Each oItem As GridItem In Me.grdLineItem.EditItems

If TypeOf oItem Is GridEditableItem Then

 

Dim oEdit As GridEditableItem = CType(oItem, GridDataItem)

oEdit.Edit =

False

 

End If

 

Next

e.Item.OwnerTableView.Rebind()

 

End If

 

End If

 

End Sub

 

Private Sub grdLineItem_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles grdLineItem.ItemDataBound

If TypeOf (e.Item) Is GridHeaderItem Then

 

Dim oItem As GridHeaderItem = e.Item

''ERG - 2012.08.28 - Bold header item

 

'If oItem.OwnerTableView.Name = "Summary" Then oItem("Details").Font.Bold = True

 

For Each oMonth As CPlanMonth In mvarEditVersion.MonthList

oItem(SetMonthName(oMonth.MonthID)).Font.Bold =

True

 

' oItem(SetMonthName(oMonth.MonthID)).Text = oMonth.MonthName

 

Next

 

If (oItem("Total") IsNot Nothing) Then oItem("Total").Font.Bold = True

 

ElseIf TypeOf (e.Item) Is GridDataItem Then

 

Dim oItem As GridDataItem = e.Item

For Each Month As CPlanMonth In mvarEditVersion.MonthList

oItem(SetMonthName(Month.MonthID)).BackColor = SetPeriodBckColor(Month.MonthID)

oItem(SetMonthName(Month.MonthID)).CssClass =

"right"

 

Next

 

If oItem("Total") IsNot Nothing Then

oItem(

 

"Total").BackColor = System.Drawing.Color.LightGray

oItem(

"Total").CssClass = "right"

 

End If

 

End If

 

Select Case UCase(e.Item.OwnerTableView.Name)

Case "SUMMARY"

 

If TypeOf (e.Item) Is GridHeaderItem Then

 

Dim oItem As GridHeaderItem = e.Item

oItem(

"Details").Font.Bold = True

oItem(

 

"Expandable").Visible = False

oItem(

 

"DeptInGOPFlag").Visible = False

 

ElseIf TypeOf (e.Item) Is GridDataItem Then

 

Dim oItem As GridDataItem = e.Item

oItem(

"Expandable").Visible = False

oItem(

 

"DeptInGOPFlag").Visible = False

 

End If

 

Case "ACCTTYPEID"

 

If TypeOf (e.Item) Is GridHeaderItem Then

 

Dim oItem As GridHeaderItem = e.Item

oItem(

"Expandable").Visible = False

oItem(

 

"DeptInGOPFlag").Visible = False

oItem(

 

"AcctTypeID").Visible = False

 

If (oItem("Account Type") IsNot Nothing) Then oItem("Account Type").Font.Bold = True

 

If oItem("POR") IsNot Nothing Then oItem("POR").Font.Bold = True

 

If oItem("% Rm Rev") IsNot Nothing Then oItem("% Rm Rev").Font.Bold = True

 

ElseIf TypeOf (e.Item) Is GridDataItem Then

 

Dim oItem As GridDataItem = e.Item

oItem(

"Expandable").Visible = False

oItem(

 

"DeptInGOPFlag").Visible = False

oItem(

 

"AcctTypeID").Visible = False

 

If oItem("POR") IsNot Nothing Then

oItem(

 

"POR").BackColor = System.Drawing.Color.LightGray

oItem(

"POR").CssClass = "right"

 

End If

 

If oItem("% Rm Rev") IsNot Nothing Then

oItem(

 

"% Rm Rev").BackColor = System.Drawing.Color.LightGray

oItem(

"% Rm Rev").CssClass = "right"

 

End If

 

ElseIf TypeOf (e.Item) Is GridCommandItem Then

BindGridCommandItem(e.Item)

 

ElseIf TypeOf (e.Item) Is GridFooterItem Then

 

Dim oItem As GridFooterItem = e.Item

oItem(

"AcctTypeID").Visible = False

 

End If

 

Case "DEPTID"

 

If TypeOf (e.Item) Is GridHeaderItem Then

 

Dim oItem As GridHeaderItem = e.Item

oItem(

"AcctTypeID").Visible = False

oItem(

 

"DeptID").Visible = False

oItem(

 

"Expandable").Visible = False

oItem(

 

"DeptInGOPFlag").Visible = False

 

If (oItem("Department") IsNot Nothing) Then oItem("Department").Font.Bold = True

 

If oItem("POR") IsNot Nothing Then oItem("POR").Font.Bold = True

 

If oItem("% Rm Rev") IsNot Nothing Then oItem("% Rm Rev").Font.Bold = True

 

ElseIf TypeOf (e.Item) Is GridDataItem Then

 

Dim oItem As GridDataItem = e.Item

oItem(

"AcctTypeID").Visible = False

oItem(

 

"DeptID").Visible = False

oItem(

 

"Expandable").Visible = False

oItem(

 

"DeptInGOPFlag").Visible = False

 

If oItem("POR") IsNot Nothing Then

oItem(

 

"POR").BackColor = System.Drawing.Color.LightGray

oItem(

"POR").CssClass = "right"

 

End If

 

If oItem("% Rm Rev") IsNot Nothing Then

oItem(

 

"% Rm Rev").BackColor = System.Drawing.Color.LightGray

oItem(

"% Rm Rev").CssClass = "right"

 

End If

 

ElseIf TypeOf (e.Item) Is GridCommandItem Then

BindGridCommandItem(e.Item)

 

ElseIf TypeOf (e.Item) Is GridFooterItem Then

 

Dim oItem As GridFooterItem = e.Item

oItem(

"AcctTypeID").Visible = False

oItem(

 

"DeptID").Visible = False

 

End If

 

Case "LINEITEMS"

 

If TypeOf (e.Item) Is GridHeaderItem Then

 

Dim oItem As GridHeaderItem = e.Item

'Set visible false for periods column not contains in a plan

 

For iMonth As Integer = mvarEditVersion.MonthList.Count + 1 To 12

oItem(SetMonthName(iMonth)).Visible =

False

 

Next

 

ElseIf TypeOf (e.Item) Is GridDataItem Then

 

Dim oItem As GridDataItem = e.Item

'Set ToolTip, Lock/Link attribute settings for lineitem.

BindGridLineItem(e.Item)

 

BindDriverTypeDropdown(oItem)

'Set visible false for periods column not contains in a plan

 

For iMonth As Integer = mvarEditVersion.MonthList.Count + 1 To 12

oItem(SetMonthName(iMonth)).Visible =

False

 

Next

 

If oItem("POR") IsNot Nothing Then

oItem(

 

"POR").BackColor = System.Drawing.Color.LightGray

oItem(

"POR").CssClass = "right"

 

End If

 

If oItem("PctRmRev") IsNot Nothing Then

oItem(

 

"PctRmRev").BackColor = System.Drawing.Color.LightGray

oItem(

"PctRmRev").CssClass = "right"

 

End If

 

ElseIf TypeOf (e.Item) Is GridFooterItem Then

 

Dim oItem As GridFooterItem = e.Item

For iMonth As Integer = mvarEditVersion.MonthList.Count + 1 To 12

oItem(SetMonthName(iMonth)).Visible =

False

 

Next

 

End If

 

End Select

 

End Sub



Private

 

Sub ClearExpandedChildren(ByVal sParentIndex As String)

'Rekha on 19-July-2011- for retaining the expanded mode in grid

 

'Clear the state for all expanded children if a parent item is collapsed

 

Dim aIndex As String() = New String(Me.ExpandedStates.Keys.Count - 1) {}

Me.ExpandedStates.Keys.CopyTo(aIndex, 0)

For Each sIndex As String In aIndex

If sIndex.StartsWith(sParentIndex & "_") OrElse sIndex.StartsWith(sParentIndex & ":") Then Me.ExpandedStates.Remove(sIndex)

Next

 

End Sub

 

Private Sub CollapseExpandedDept(ByVal grdTblView As GridTableView)

'Clear the state for all expanded department Lineitems if a another on expanded

 

If grdTblView.Name = "DeptID" Then

 

Dim aIndex As String() = New String(Me.ExpandedStates.Keys.Count - 1) {}

Me.ExpandedStates.Keys.CopyTo(aIndex, 0)

For Each sIndex As String In aIndex

If sIndex.Split(":").Length > 2 Then

 

Me.ExpandedStates.Remove(sIndex)

If Me.grdLineItem.Items.Count > 0 Then grdLineItem.Items(sIndex).Expanded = False

 

End If

 

Next

 

End If

 

End Sub


Mohammada
Top achievements
Rank 1
 asked on 29 Aug 2012
13 answers
549 views

This is a great control, but I need some additional customization and events or properties of the event arguments.

I would like to be able to disable or hide the Group Operator button until more than one expression is added to reduce end user confusion.

As for the events, I need to be able to automatically add an expression when a new group is created, but I cannot find a way to grab the group that was just created using the ItemCommand event.

It would also be nice to be able to somehow bind an expression to a datasource or provide a valid list of options for users to select from.  This would be specifically useful where a field requires a code that is not understood by end users where we could give a description of that code instead of the code.

Are any of these currently possible and/or are they possibly future features?

Robin
Top achievements
Rank 1
 answered on 29 Aug 2012
1 answer
77 views
Am using RadGrid with drag and drop option. User would able to cancel the drag while press the ESC key
Help me how to achive this


Thanks
Raja


Eyup
Telerik team
 answered on 29 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?