or
| foreach (GridHeaderItem HeaderItem in costCentresGrid.MasterTableView.GetItems(GridItemType.Header)) | |
| { | |
| //Find the SelectAll CheckBox in the header using the ClientSelectColumn's "UniqueName" | |
| CheckBox chkSelectAll = (CheckBox)HeaderItem["CostCentreSelectColumn"].Controls[0]; | |
| chkSelectAll.Checked = costCentresGrid.MasterTableView.Items.Count == costCentresGrid.SelectedItems.Count; | |
| } |
| Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
| Me.RadScheduler1.Culture = New CultureInfo("es-VE") |
| End Sub |
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;
}