Datepicker in CellTemplate

1 posts, 0 answers
  1. Zbigniew Kozłowski
    Zbigniew Kozłowski avatar
    60 posts
    Member since:
    Apr 2010

    Posted 17 Dec 2010 Link to this post

    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;               

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

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