<asp:Content ID="Content1" ContentPlaceHolderID="headerContentPlaceholder" runat="Server"> <script type="text/javascript"> $(document).ready(function () { SetElements(); }); function SetElements() { //addNewClient $('#addNewClient').click(function () { $('#addNewClient').attr("disabled", true); $('#mainContentPlaceholder_newClientContainer').slideDown(function () { $('#mainContentPlaceholder_newClientContainer').show(); }); }); //cancel $('#cancel').click(function () { $('#addNewClient').removeAttr("disabled"); $('#mainContentPlaceholder_newClientContainer').slideUp(); }); //close $('#close').click(function () { $('#mainContentPlaceholder_notificationContainer').fadeOut(); $('#notificationContainer').fadeOut(); }); }; function ResponseEnd(sender, eventArgs) { SetElements(); Cufon.replace('h1'); Cufon.replace('h2'); Cufon.now(); }; </script></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="mainContentPlaceholder" runat="Server"> <div id="leftContainer" runat="server"> <h1> Clients </h1> <div id="notificationContainer" runat="server" visible="false"> <asp:Literal ID="notificationLiteral" runat="server" /><span><a href="#" id="close"></a></span></div> <%--<uc1:Notifications ID="notifications" runat="server" />--%> <div id="navigation"> <a id="addNewClient" href="#" class="button hex2C608F">Add New Client</a> </div> <div id="newClientContainer" class="extra-b5" runat="server"> <table class="clientDetailsTable" cellspacing="0" cellpadding="0"> <tr> <td> <h4 class="extra-b5"> Client Details</h4> </td> </tr> <tr> <td> <asp:Label ID="clientNameLabel" runat="server" Text="Client Name" /><br /> <asp:TextBox ID="clientNameTextBox" runat="server" CssClass="textbox short" MaxLength="50" /> <asp:RequiredFieldValidator ID="clientNameRequiredValidator" runat="server" ErrorMessage="Please enter a client name." Display="None" ControlToValidate="clientNameTextBox" ValidationGroup="newClientGroup" /> </td> <td> <asp:Label ID="themeLabel" runat="server" Text="Theme" /><br /> <asp:DropDownList ID="themeDropDownList" runat="server" AppendDataBoundItems="true" CssClass="short"> <asp:ListItem Value="-1">-- Please Select --</asp:ListItem> </asp:DropDownList> </td> <td> </td> </tr> <tr> <td colspan="2"> <asp:Button ID="addClientButton" runat="server" Text="Add" OnClick="addClientButton_Click" ValidationGroup="newClientGroup" /> or <a id="cancel" href="#">Cancel</a> </td> </tr> </table> <asp:ValidationSummary ID="newClientValidationSummary" runat="server" ShowMessageBox="true" ShowSummary="false" ValidationGroup="newClientGroup" /> </div> <asp:ListView ID="clientsListView" runat="server"> <LayoutTemplate> <ul class="list1"> <div id="itemPlaceholder" runat="server" class="list1"> </div> </ul> </LayoutTemplate> <ItemTemplate> <li> <%# Eval("Name") %><div class="options"> <a href="ClientDetails.aspx?ClientId=<%# Eval("Id") %>">Edit</a><span class="separator">|</span> <asp:LinkButton ID="deleteClientLinkButton" runat="server" OnCommand="DeleteClient" CommandArgument='<%# Eval("Id") %>' OnClientClick="return confirm('Are you sure you want to delete this client?')" Text="Delete" /> <%--<a href="ManageClients.aspx?ClientId=<%# Eval("Id") %>" onclick="return confirm('Are you sure you want to delete this client?')">Delete</a></div>--%> </li> </ItemTemplate> </asp:ListView> </div> <div id="rightContainer" runat="server"> <h1> Placeholder </h1> <h4 class="extra-b12"> Integer in metus sapien.</h4> <p> Praesent diam tellus, congue nec pellentesque dictum, convallis non dui. Nam tincidunt tempor lectus quis placerat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin condimentum posuere nisl, ut mollis metus mollis at.</p> <p> Integer in metus sapien. Maecenas aliquet porttitor nisl, a rhoncus ligula pellentesque at. Maecenas tempor odio ut dolor pharetra faucibus. Cras in massa a odio vulputate ultricies ac non purus. Etiam in orci nibh, quis dictum ante. In hac habitasse platea dictumst.</p> </div> <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="addClientButton"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="leftContainer" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="deleteClientLinkButton"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="leftContainer" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManagerProxy> <telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanel" runat="server" Skin="Vista"> </telerik:RadAjaxLoadingPanel></asp:Content>Dynamically Generated Radgrid with Form Template loses Dynamic Binding on Edit Click.
I have a RadGrid that gets Created and Bound Dynamically. But when I click edit it rebinds the grid then when I hit update it rebinds the grid and loses the datasource and so It has to call NeedDataSource again which blows away the new values before it gets to the update command.
Hi,
We are trying to create a mobile view of some forms which use Telerik controls for some elements, namely RadInput and RadInputMulti. All other form fields save when the form is posted back on mobile except for the Telerik based fields. When the page is posted back we are seeing a javascript error that reads 'Uncaught TypeError: Cannot read property 'PageRequestManager' of undefined', coming ScriptResource.axd at line 106.
Is there an issue with using these fields on mobile, and if so is there anything we can do to mitigate this issue and make things work?
We are using version 2015.2.818.35 of the Telerik controls, on a SharePoint 2010 platform.
Testing is happening in Chrome and Safari for iOS, although the solution needs to work on Android as well.
Thanks for any help in advance.
Ben
Hi,
I am using RadTabstrip and Raddropdownlist.
Whenever the RadTabstrip is selected, the values selected in dropdownlist should be cleared, but i notice whenever i use the categoryList.get_selectedItem().unselect(); it causes to postback. How to cancel the post back ?
I am using this code below
<script type="text/javascript">
function OnClientTabSelected(sender, eventArgs)
{
var tab = eventArgs.get_tab();
var categoryList = $find("<%=rdddlCategory.ClientID %>");
if (categoryList.get_selectedItem()) {
//categoryList.get_selectedItem().set_selected(false);
categoryList.get_selectedItem().unselect();
}
}
function OnClientCategorySelected(sender, eventArgs) {
alert();
var tabstrip = $find('<%= rdTpEvents.ClientID %>');
if (tabstrip.get_selectedTab().get_text() != "Latest" && tabstrip.get_selectedTab().get_text() != "Working") {
eventArgs.set_cancel(true);
}
}
</script>

Hello,
I'm looking for a functionality through which i can do virus scan during upload file
I want to do virus scan of uploadable file during upload on disk using RadAsyncUpload functionality.
how can i add virus scan on telerik async file upload.
Please suggest some code I'm using RadAsyncUpload.
Thanks & regards,
Ram

I have a RadToolBar in the CommandItemTemplate of a RadGrid. I would like to (client-side) disable a button upon row click. On row click I loop through the tool bar's items and disable the button I want. This works but only disables the button on the top of the grid. The command items at the bottom of the grid are left alone. How can I disable both the top and bottom button?
function grdViewToolRecords_RowClicked(sender, args) { var toolBar = $telerik.findControl(sender.get_element(), "rtbViewToolRecords"); var toolBarItems = toolBar.get_allItems(); var i = 0; while (i < toolBarItems.length) { if (toolBarItems[i].get_text() == "Check Out") { toolBarItems[i].disable(); } i++; } toolBar.commitChanges();}
How can I hide the title bar of a radnotification window?
I've tried this way:
<telerik:RadNotification RenderMode="Lightweight" ID="RadNotification1" runat="server" EnableRoundedCorners="true" AutoCloseDelay="3500" Position="TopRight" OffsetX="-20" OffsetY="20" Opacity="95" ShowTitleMenu="false" EnableShadow="true" Width="300" Height="100" VisibleTitlebar="false" ShowCloseButton="false"></telerik:RadNotification>
But all my settings are ignored. Title is still visible. Close button either.
I show it on postback:
RadNotification1.Text = "Il nuovo cliente è stato inserito.";RadNotification1.ContentIcon = "info";RadNotification1.Show();

Good day,
lately i have been battling with adding a label control inside a child tab so that i could display the challengers on after clicking on that tab
here is my code below...
private void LoadTournament(EventCollection eventCollection, RadTabStrip radTabStrip) { RadMultiPage Multiview = new RadMultiPage(); Multiview.ID = "Multiview1"; RadPageView PageView = new RadPageView(); //Pageview.ID = ""; //Pageview.ID =""; foreach (RadTab tb in radTabStrip.Tabs) { int iSportId = int.Parse(tb.Value); tb.ScrollChildren = true; foreach (var ev in eventCollection.Events) { if (ev.SportID == iSportId) { // Create new to a RadTab. RadTab tab = new RadTab(); tab.Value = ev.TournamentID.ToString(); tab.Text = ev.Tournament; tb.Tabs.Add(tab); foreach (var item in ev.Challengers) { Label label = new Label(); label.Text = item.Name; tb.PageViewID = "Page1"; tb.SelectedIndex = tab.Index; radTabStrip.MultiPageID = "Multiview1"; // RadPageView PageView = loadchallenger(eventCollection); PageView.ID = "Page1"; PageView.Height = 500; Multiview.PageViews.Add(PageView); } //foreach (var item in ev.Challengers ) //{ // TextBoxTemplate template = new TextBoxTemplate(); // Label label = new Label(); // label.Text = item.Name; // Pageview.Controls.Add(label); //} } } } }
I would like to add labels inside a child tab please help anyone,
please below capture
