<telerik:RadButton runat="server" ID="testButton" OnClientClick="onclicktestbutton" />
<script type="text/javascript">
function onclicktestbutton(sender, args) {
// I don't use window.event (it is non-standard)
}
</script>
Where can I set the event object??
I wanted to do it like this:
<telerik:RadButton runat="server" ID="testButton" OnClientClick="onclicktestbutton(event)" />
but we all know you can't insert paragraph on a telerik client event attribute because it automatically includes in the function the parameters (sender, args).
Hi,
I am using version 2015.1.401.40 of the ASP.NET controls for AJAX.
I would think my question would be very common and easy to do.
I have a RadGrid with a MasterTableView and 1 DetailTable (GridTableView). I am using NeedDataSource for binding and it is all working fine.
Not all records in the master, have child records. For the rows that do not, I have hidden the expand/collapse button in the DetailTableDataBind event.
When I export to Excel, I want to expand all rows that contain a child record, so that those rows get exported. I was doing that in DetailTableDataBind by setting every GridDataItem .Expanded = True.
ISSUE:
The problem with this is that it expands and exports the child rows that say "No Child Records".
Question: How can I NOT have it export the gridtableview, if there are no child records?
In the DetailTableDataBind, if there are no child records I set the DetailTableView.Visible = False, but my export still contains a blank row (which is better than the "No Child Records", but not perfect).
Thanks,
Brent

<telerik:RadWindowManager ID="radWindowManager1" runat="server" ViewStateMode="Disabled" >
<Windows>
<telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" DestroyOnClose="false" ViewStateMode="Disabled" KeepInScreenBounds="true"
VisibleStatusbar="false" Modal="True" >
</telerik:RadWindow>
<telerik:RadWindow ID="DialogDeleteConfirm" runat="server" Width="450px" Height="120px" Modal="true">
<ContentTemplate>
<div style="padding: 10px; text-align: center;">
<p style="text-align: center;">Do you want to delete items automatically?</p>
<asp:Button ID="btnOk" runat="server" OnClientClick="returnArg('O'); return false;" />
<asp:Button ID="btnSelection" runat="server" OnClientClick="returnArg('S'); return false;" />
<asp:Button ID="btnKeepAll" runat="server" OnClientClick="returnArg('K'); return false;" />
<asp:Button ID="btnCancel" runat="server" OnClientClick="returnArg('C'); return false;" />
</div>
</ContentTemplate>
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
radWindowManager1.RadConfirm(messageToUser, "autoDeleteCallback", 450, 120, null, "");by
DialogDeleteConfirm.VisibleOnPageLoad = true;
hi
I am applying a CssClass on the DateTimePicker and it display 2 textbox outline. How should i remove the inner border of the DateTimePicker?
This is my code:
<telerik:RadDateTimePicker ID="RadDateTimePicker2" CssClass="form-control" runat="server" Width="100%" TimeView-Interval="00:30:00"></telerik:RadDateTimePicker>

Hello,
I have installed the RadControls trial version and the sample ScheduleBuilder (that is the only sample that I have installed). The sample is in C# and in the header of the Default.aspx sample, it contains:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
My reason for pointing this out is because on your webpage Scheduler / Binding to Generic List, the VB example contains several additional lines of script between the <%@ Page... line and the <!DOCTYPE.... line (as follows):
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb"
Inherits="Telerik.Web.Examples.Scheduler.BindToList.DefaultVB" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
<%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
<%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
<%@ Register TagPrefix="sds" Namespace="Telerik.Web.SessionDS" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
I'm not sure if this has anything to do with my issue, so I want to point out this difference between the VB and C# examples.
The ScheduleBuilder sample has, but default, connection strings for SQL Server. I am trying to replace those connections with a connector to my Exchange data store. That is possible, right?
I am using Visual Studio 2010 and Exchange Server 2010. These are 2 different machines. The sample ScheduleBuilder is running from the VS2010 machine and attempting to connect to the Exchange server machine (both machines are in the same network).
I modified the Web.config that is included with the sample. Under the <configuration> node of the Web.Config, I added:
<
configuration>
<!-- I Added: -->
<configSections>
<sectionGroup name="telerik.web.ui">
<section name="radScheduler" type="Telerik.Web.UI.RadSchedulerConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication" requirePermission="false"/>
</sectionGroup>
</configSections>
<!-- And I Added: -->
<telerik.web.ui>
<radScheduler defaultAppointmentProvider="Integrated">
<appointmentProviders>
<add name="ExchangeSchedulerProvider" type="Telerik.Web.Examples.Scheduler.ExchangeSchedulerProvider" serverUrl=https://myExchSvr.myDomain.com/EWS/Exchange.asmx username="Admin" password="myPwd" domain="myDomain" />
</appointmentProviders>
</radScheduler>
</telerik.web.ui>
<!-- Everything after this was already in the Web.Config -->
.
.
.
</configuration>
In addition, I went to the Default.aspx script and along with the attributes already assigned to telerik:RadScheduler, I added attribute:
ProviderName="ExchangeSchedulerProvider"
The sample project compiles clean, but when I try to view Default.aspx, the browser displays:
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
Using the serverURL that you see above, I can successfully add a Web Reference to https://myExchSvr.myDomain.com/EWS/Services.wsdl, and when adding the reference, I was prompted for credentials, so I used the same username and password specified in the Web.Config. I was able to successfully add a reference to Services.wsdl. Therefore I am assuming that I should have access to Exchange.asmx as well.
The error that I am encountering does not appear to be a server-side issue, but it appears that maybe the ExchangeScheduleProvider did not properly register when installed on the VS2010 machine??? Regardless, I did test with Anonymous access both enabled and disabled on the EWS virtual (Exchange Server machine), but the same error occurs.
I believe I am overlooking something obvious, but don't know what, and I have been trying to resolve this for several hours now. My boss wants me to prove that this control will be able to read/write appointments directly from/to an Exchange data store before he will buy this product. And I would like to prove that this radControl will work so that I don't have to design something from scratch.
How do I resolve this problem?
Thank you,
Steven

Hi
I have a grid with several GridDropDownColumn.
I want to be able to show/hide of few of these GridDropDownColumn depending on what is selected in on of the other GridDropDownColumn.
How can I perform this? Is it possible client side.
I know how to find a Dropdowncontrol if I use GridTemplateColumn and disable the control but I would prefer the show/hide the entire column

I have a textbox and a listbox that displays customer information. On page load my listbox populates just fine from a webmethod and shows in a ClientItemTemplate. I want to be able to call this webmethod from code-behind and repopulate the listbox based on what text is typed in the textbox (onkeyup). The problem is I keep getting the error "JavaScript runtime error: Object doesn't support property or method 'get_parent'"
Here is the server-side code:
<WebMethod()> _ Public Shared Function GetCustomers() As RadListBoxItemData() Dim data As DataTable = GetData("248") Dim result As New List(Of RadListBoxItemData)() For i As Integer = 0 To data.Rows.Count - 1 Dim itemData As New RadListBoxItemData() Dim FullName As String = data.Rows(i)("FName").ToString() & " " & data.Rows(i)("LName").ToString() itemData.Text = data.Rows(i)("CPhone").ToString() itemData.Value = data.Rows(i)("CPhone").ToString() itemData.Attributes.Add("FullName", FullName) itemData.Attributes.Add("Phone", data.Rows(i)("CPhone").ToString().Insert(0, "(").Insert(4, ") ").Insert(9, "-")) '--Determine opt-in icon Select Case data.Rows(i)("OptIn").ToString() Case -1 itemData.Attributes.Add("OptIn", "<img alt='Opted-In' src='images_zw/OptIn_OptedIn.png' />") Case 0 itemData.Attributes.Add("OptIn", "<img alt='Blocked / Opted-Out' src='images_zw/OptIn_Blocked.png' />") Case 1 itemData.Attributes.Add("OptIn", "<img alt='Pending Opt-In' src='images_zw/OptIn_Pending.png' />") Case 2 itemData.Attributes.Add("OptIn", "") End Select result.Add(itemData) Next Return result.ToArray() End Function
Here is my client-side code:
<script type="text/javascript"> function Generate() { var listbox = $find("<%= lstContacts.ClientID%>"); var result = PageMethods.GetCustomers(function (response) { response.forEach(function (listitem) { listbox.trackChanges(); listbox.get_items().add(listitem); listbox.commitChanges(); }); //listbox.insertItems(response); }); } </script> <div> <div><telerik:RadTextBox runat="server" id="txtSearch" AutoPostBack="False" onkeyup="Generate();" Text="248"></telerik:RadTextBox></div> <div> <telerik:RadListBox runat="server" ID="lstContacts" width="300" height="500" AutoPostBack="False"> <ClientItemTemplate> <div class="Search_Conversation_Container"> <div class="Search_OptIn"> #= Text # </div> </div> </ClientItemTemplate> <WebServiceSettings Path="testlist.aspx" Method="GetCustomers"></WebServiceSettings> </telerik:RadListBox> </div> </div>Is it possible in RadTreeView that having a multiple parent and in that multiple parent have a child?
maybe can be described like this:
Node 1-Member of Node 1 - 1 Node 2 - Member of Node 2 - 1 - Member of Node 2 - 2 - Member of Node 2 - 3 Node 3 - Member of Node 3 - 1or if it is not possible to use RadTreeView, is there any control that can provide things like this?
Thank you in advance

I have two related RadComboBoxes as following:
<telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadDropDownParameterX"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadComboBoxCountries" LoadingPanelID="AjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="RadComboBoxSites" LoadingPanelID="AjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="RadComboBoxRts" LoadingPanelID="AjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="RadComboBoxMachines" LoadingPanelID="AjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="RadComboBoxProtocols" LoadingPanelID="AjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadComboBoxCountries"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadCodeBlock1" LoadingPanelID="AjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="RadCodeBlock2" LoadingPanelID="AjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="RadComboBoxSites" LoadingPanelID="AjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> ...</telerik:RadAjaxManagerProxy>...<telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Skin="BlackMetroTouch"></telerik:RadAjaxLoadingPanel>...<div class="right"> <span>Select X-parameter</span> <telerik:RadDropDownList ID="RadDropDownParameterX" runat="server" DropDownHeight="120px" Width="120px" Skin="BlackMetroTouch" DropDownWidth="120px" OnSelectedIndexChanged="RadDropDownParameterX_SelectedIndexChanged" AutoPostBack="true" > <Items> <telerik:DropDownListItem Text="Countries" Value="Countries" Selected="true" /> <telerik:DropDownListItem Text="Sites" Value="Sites" /> <telerik:DropDownListItem Text="Rts" Value="Rts" /> <telerik:DropDownListItem Text="Machines" Value="Machines" /> <telerik:DropDownListItem Text="Protocols" Value="Protocols" /> </Items></telerik:RadDropDownList>... <div class="combo countries"> <telerik:RadComboBox ID="RadComboBoxCountries" runat="server" AutoPostBack="True" onselectedindexchanged="RadComboBoxCountries_SelectedIndexChanged" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" Label="Country" Skin="BlackMetroTouch" > </telerik:RadComboBox> <div class="subv"><telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <%= SelectedCountriesText %></telerik:RadCodeBlock></div></div> <div class="combo sites"> <telerik:RadComboBox ID="RadComboBoxSites" runat="server" CheckBoxes="true" AutoPostBack="true" onselectedindexchanged="RadComboBoxSites_SelectedIndexChanged" EnableCheckAllItemsCheckBox="true" Label="Site" Skin="BlackMetroTouch"> </telerik:RadComboBox> <div class="subv"><telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"> <%= SelectedSitesText %></telerik:RadCodeBlock></div></div> What i am trying to achieve is to have the second comboBox (RadComboBoxSites) populated upon selected Values of first comboBox.
Tried to achive that by deleting all items of RadComboBoxSites each time a SelectedIndexChanged event is occured on comboBox RadComboBoxCountries in the way depicted below:
Protected Sub RadComboBoxCountries_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) If (RadDropDownParameterX.SelectedValue.Equals("Sites")) Dim collectionPopulatedSites = RadComboBoxSites.Items For each s In collectionPopulatedSites Dim RadComboBoxSite As RadComboBoxItem = RadComboBoxSites.Items.FindItemByValue(s.Value) If RadComboBoxSite IsNot Nothing Then RadComboBoxSite.Remove End If Next ' get new list of selected countries Dim collectionSelectedCountries = RadComboBoxCountries.CheckedItems For each c in collectionSelectedCountries Dim listaCountrySites As List(Of AffideaGeneralWeb.BLL.General.Sites) listaCountrySites = GetAllCountrySites(c.Value) For each s in listaCountrySites Dim RadComboBoxSite As RadComboBoxItem = RadComboBoxSites.Items.FindItemByValue(s.ID) If RadComboBoxSite Is Nothing Then RadComboBoxSite = New RadComboBoxItem() RadComboBoxSite.Text = s.Title RadComboBoxSite.Value = s.ID RadComboBoxSites.Items.Add(RadComboBoxSite) End If Next Next End IfEnd SubHowever when i am trying to "RadComboBoxSite.Remove" i am getting an exception:
An exception of type 'System.InvalidOperationException' occurred in mscorlib.dll but was not handled in user code. Additional information: The collection has changed, the enumeration operation may not be performedIs there any working example of related comboBoxes (handles in the server side)?
How could i delete all items of second comboBox and re-build it, each time the user alters selection on the first comboBox?
