or
function pageLoad() { var isMobileSafari = (navigator.userAgent.search(/like\sMac\sOS\sX;.*Mobile\/\S+/) != -1) if (isMobileSafari) { var ctx = document.getElementById("<%= RadDock1.ClientID "%>); ctx.addEventListener('touchstart', handleTouchStart, false); ctx.addEventListener('touchend', handleTouchEnd, false); } } var lastContext = null; var longTouchID = 0; var menuShown = false; function longTouch() { longTouchID = 0; menuShown = true; var ctx = document.getElementById("<%= radMenu1.ClientID "%>); ctx.show(); } function handleTouchStart(e) { longTouchID = setTimeout(longTouch, 1000); } function handleClick(e) { if (menuShown) { menuShown = false; document.body.removeEventListener('click', handleClick, true); e.stopPropagation(); e.preventDefault(); } } function handleTouchEnd(e) { if (longTouchID != 0) clearTimeout(longTouchID); if (menuShown) { document.body.addEventListener('click', handleClick, true); e.preventDefault(); } }<telerik:GridCheckBoxColumn DataField="IsCustomer" SortExpression="IsCustomer" UniqueName="IsCustomer" DataType="System.Boolean" ReadOnly="true" Visible="false" ></telerik:GridCheckBoxColumn><telerik:GridDropDownColumn DataField="CustomerID" UniqueName="CustomerID" EnableEmptyListItem="True" > <HeaderStyle Width="120px" /> <ItemStyle Width="120px" /></telerik:GridDropDownColumn><telerik:GridDropDownColumn DataField="ContactID" UniqueName="ContactID" EnableEmptyListItem="True" > <HeaderStyle Width="100px" /> <ItemStyle Width="100px" /></telerik:GridDropDownColumn>Protected Sub rgOpportunities_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgOpportunities.ItemDataBound If (TypeOf e.Item Is GridDataItem) Then 'If (TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode) Then Dim editFormItem As GridDataItem = CType(e.Item, GridDataItem) Dim Cus As GridDropDownColumn = CType(rgOpportunities.MasterTableView.Columns(8), GridDropDownColumn) Dim Con As GridDropDownColumn = CType(rgOpportunities.MasterTableView.Columns(9), GridDropDownColumn) If DirectCast(editFormItem("IsCustomer").Controls(0), CheckBox).Checked = True Then Cus.DataSourceID = "odsCustomer" Cus.ListTextField = "Name" Cus.ListValueField = "CustomerID" Con.DataSourceID = "odsContact" Con.ListTextField = "Name" Con.ListValueField = "ContactID" Else Cus.DataSourceID = "odsLeadHdr" Cus.ListTextField = "Name" Cus.ListValueField = "LeadHdrID" Con.DataSourceID = "odsLeadDtl" Con.ListTextField = "Name" Con.ListValueField = "LeadDtlID" End If End IfEnd Sub