Question Receive Payment

gowthami

Member
Joined
Jun 13, 2011
Messages
8
Programming Experience
Beginner
i have using teleric controls which form of receive payment.

if i have selected rad combobox the grid view automatically display.

my view model codins is public void CustomerDetails() {
if (SelectedCustomer != null)
{
_currentReceivePayment.DueDate = _SelectedReceivePaymentView2.DueDate;
_currentReceivePayment.InvoiceAmount = _SelectedReceivePaymentView2.TotalAmount;
_currentReceivePayment.Invoice = _SelectedReceivePaymentView2.InvoiceID;



}
}


view coding is <TelerikGrid:GridViewDataColumn Header="Due Date" UniqueName="DueDate" Width="1*" DataMemberBinding="{Binding currentReceivePayment.DueDate,Mode=TwoWay}"/> <TelerikGrid:GridViewDataColumn Header="Invoice" Width="1*" UniqueName="Invoice" DataMemberBinding ="{Binding currentReceivePayment.Invoice,Mode=TwoWay}"/>
<TelerikGrid:GridViewDataColumn Header="Invoice Amount" Width="1*" UniqueName="Invoice Amount" DataMemberBinding="{Binding currentReceivePayment.InvoiceAmount,Mode=TwoWay}"/>




codebhind is private void dtgReceivePayment_SelectionChanged(object sender, SelectionChangeEventArgs e) {






if (GridFocus)
{
//if ( dtgReceivePayment .CurrentColumn.UniqueName == "ReceivedFrom" || dtgReceivePayment.CurrentColumn.UniqueName == "ItemTax")


RadComboBox comboBox = (RadComboBox)e.OriginalSource;
if (comboBox.SelectedValue == null || comboBox.SelectedValuePath != "CustomerID" || comboBox.SelectedItem == null)
return;
var row = comboBox.ParentOfType<GridViewRow>();
ProxyReceivePayment customer = new ProxyReceivePayment();
BizFramework.Web.Model.ReceivePaymentView2 cstmr = (BizFramework.Web.Model.ReceivePaymentView2)comboBox.SelectedItem;




//customer.InvoiceID = (int)cstmr.InvoiceID;
customer.InvoiceID = (int)cstmr.InvoiceID;
customer.InvoiceAmount = cstmr.TotalAmount;
customer.DueDate = cstmr.DueDate;
ReceivePaymentViewModel receive = new ReceivePaymentViewModel();
receive.CustomerDetails();


}



i cannot automatically displayed the grid view.?how can i solve this problem?
 
Top Bottom