Hi,
I would like the RadDateTimePicker located in LayoutTemplate to fire InitInsert command.
The problem is, RadDateTimePicker does not have CommandName property (and CommandArguments), so the only way to do that would be to fire command from SelectedDateChanged.
I understand that RadListViewDataItem can use FireCommandEvent method, but how to get RadListViewDataItem when the RadListVIew is empty?
In other words, how to make the following to start working as intended above
Thanks,
Jacek
I would like the RadDateTimePicker located in LayoutTemplate to fire InitInsert command.
The problem is, RadDateTimePicker does not have CommandName property (and CommandArguments), so the only way to do that would be to fire command from SelectedDateChanged.
I understand that RadListViewDataItem can use FireCommandEvent method, but how to get RadListViewDataItem when the RadListVIew is empty?
In other words, how to make the following to start working as intended above
protected
void
myDatePicker_SelectedDateChanged(
object
sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
{
RadListViewDataItem r =
new
RadListViewDataItem(myRadListView, 0);
r.FireCommandEvent(
"InitInsert"
, String.Empty);
}
Thanks,
Jacek