<
telerik:RadListBox
runat
=
"server"
DataKeyField
=
"ClassID"
ID
=
"RadListBox2"
DataSourceID
=
"SqlDataSource1"
DataTextField="ClassName"
TransferToID="RadListBox1" Style="top: 1px; right: 0px;
width: 191px;" AllowTransferOnDoubleClick="True" TransferMode="Copy"
DataValueField="ClassID" OnDataBound="RadListBox2_DataBound">
<
ButtonSettings
TransferButtons
=
"All"
></
ButtonSettings
>
</
telerik:RadListBox
>
<
telerik:RadListBox
ID
=
"RadListBox1"
runat
=
"server"
TransferMode
=
"Copy"
AllowTransfer
=
"True"
AppendDataBoundItems="True" DataKeyField="ClassID"
DataSourceID="SqlDataSource2"
DataTextField="ClassName" TransferToID="RadListBox2" Culture="fa-IR" Style="top: 0px;
right: 9px; width: 191px;"
DataValueField="ClassID"
AllowTransferOnDoubleClick="True" EnableMarkMatches="True">
<
ButtonSettings
TransferButtons
=
"All"
></
ButtonSettings
>
</
telerik:RadListBox
>
Hi,
In Radgrid I am displaying invoice details like -'Invoice- Legal fee', 'Invoice- expenses' and 'Invoice- discount'.
Below each Invoice I am creating NestedViewTemplate for displaying Invoice's Credit memo details like 'Credit memo- Legal fee', 'Credit memo- expenses' and 'Credit memo- discount'.
Now for displaying Grand Total for Legal fee, expenses, discount I want to do something like this –
(Invoice- Legal fee- Credit memo- Legal fee)
(Invoice- expenses' - Credit memo- expenses')
(Invoice- discount'- Credit memo- discount')
This is working properly using
Protected Sub RadGrid2_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)
If TypeOf e.Item Is GridFooterItem Then
Dim footerItem As GridFooterItem = TryCast(e.Item, GridFooterItem)
If footerItem("Total").Text <> "" Then
strCMTotal1 = footerItem("Total").Text
strCMLegalSum1 = footerItem("Legal_Fees").Text
strCMExpenseSum1 = footerItem("Expenses").Text
strCMDiscount1 = footerItem("Discount").Text
strCMAdminFees1 = footerItem("%_of_Legal_Fees").Text
footerItem("Legal_Fees").Text = strCMLegalSum1 - strCMLegalSum / 3 ‘Subtracting Credit memo details from Invoice details
footerItem("Expenses").Text = strCMExpenseSum1 - strCMExpenseSum / 3 ‘Subtracting Credit memo details from Invoice details
footerItem("Discount").Text = strCMDiscount1 - strCMDiscount / 3 ‘Subtracting Credit memo details from Invoice details
footerItem("%_of_Legal_Fees").Text = strCMAdminFees1 - strCMAdminFees / 3 ‘Subtracting Credit memo details from Invoice details
footerItem("Total").Text = strCMTotal1 - strCMTotal / 3 ‘Subtracting Credit memo details from Invoice details
End If
End If
End Sub
, but when I search (using grid filter), grand Total is not correct because i am not able to access filtered records and filtered credit memo details. Please suggest.
It’s very urgent. Thanks in advance.
I'm a little green with Web Development, and after many hours of forum searches, reading documentation and trial and error-ing, I’m cooked…
I'm trying to build a UI that pretty much resembles a WinForm type solution. I've pulled out the pertinent pieces to illustrate my problem. The page starts with the VS master page project, but has been modified to “stick” to all sides and bottom and NOT showing any scroll bars when resizing. It contains a RadSplitter with two RadPane controls. Each contains a RadGrid. The RadGrid has paging enabled and uses UseStaticHeaders so that the paging footer stays stuck to the bottom of the RadPane. You can move the RadSplitBar and both RadGrids stay stuck to the RadPane and resize perfectly. It all works just great, BUT…
(1) Once you resize a column, the right grid side becomes unstuck. Any resizing of the RadSplitBar no longer resizes the affected grid. When expanding the pane, white space shows up.
(2) This behavior is the same on IE9, Chrome and FireFox. BUT, an additional problem shows up on IE9. In my standard state all Wrap properties are set to false. Resizing a column causes the grid to lose this no Wrap ability. Cell text start wrapping. It also causes the paging footer to slip below the bottom pane edge.
I was going to upload my project, but zip file format isn't acceptable????
Thanks for your help.
<
telerik:RadFormDecorator
ID
=
"QsfFromDecorator"
runat
=
"server"
Skin
=
"WebBlue"
DecoratedControls
=
"All"
EnableRoundedCorners
=
"false"
/>