This is a migrated thread and some comments may be shown as answers.

Datepicker in CellTemplate

0 Answers 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zbigniew Kozłowski
Top achievements
Rank 1
Zbigniew Kozłowski asked on 17 Dec 2010, 10:35 AM
Hi,
i got datagrid with datepicker columns and textbox colums, i need to save some data when date is changed or text in textbox is changed. I had no problems with textbox i just used event on lostfocus and than:

TextBox textbox = sender as TextBox;
GridViewRow parentRow = textbox.ParentOfType<GridViewRow>();
if (parentRow != null)
{
    parentRow.IsSelected = true;
    Item item = this.listGridView.SelectedItem as Item;               
    Save(item);
}

but i cant use ParentOfType with RadDatePicker how can i achiv this?

EDIT
Ah never mind :P i just forgot about using Telerik.Windows.Controls.GridView;   sorry for this post ;)

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Zbigniew Kozłowski
Top achievements
Rank 1
Share this question
or