I have a working user control, with update/insert/cancel buttons on it. I also have a RadTabStrip on the user control too. Then in the RadTabStrip_tabClick event, what I want to do, when a user clicks on a tab in the RadTabStrip is call the RadGird_InsertCommand from the main form.
What would be the best way to call the RadGrid_InsertCommand from the main form?
Thanks,
Brett
| Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) |
| If (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then |
| Dim picker As RadDatePicker = TryCast(e.Item.FindControl("dp_scout_dob"), RadDatePicker) |
| If picker IsNot Nothing Then |
| picker.MaxDate = DateTime.Now |
| picker.DateInput.Attributes("onclick") = String.Format("showPopUp('{0}');", picker.ClientID) |
| picker.SharedCalendar = Master.sharedCalendar |
| End If |
| End If |
| End Sub |
| <script type="text/javascript"> |
| function showPopUp(id) |
| { |
| $find(id).showPopup(); |
| } |
| </script> |
.rsApt
{
height: 20px !important;
cursor: hand;
}

PLEASE DISREGARD THIS POST... PROBLEM RESOLVED ITSELF...
On my .aspx page I declare my datepicker control as follows:
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadDatePicker ID="calender" AutoPostBack="true" runat="server" onselecteddatechanged="calender_SelectedDateChanged"> </telerik:RadDatePicker>
Then on my code behind page I have the following event declared:
protected void calender_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
{
int x = 0;
}
Now when I select a new date on the datepicker control the page does a post back however... this event on the code behind page does NOT fire.
Any Ideas?
~N