Hi. New here, still getting my hands on Telerik.
I want to draw a diagram in tree layout, and I followed the documentation, added LayoutSettings.
The shapes and connections for the diagram are generated in C# code.
But what I got was nothing near what is shown in the documentation and demo. The shapes are overlapping each other. The connections between shapes look weird. You can see that in file problem_diagram.png. In fact, I have 8 shapes in this diagram, but the shapes are overlapping at the top left corner, so you can only see 5 shapes. I dragged the shapes so that all shapes can be seen in file dragged_diagram.png.
update: I solved the problem.
Hi All,
Can any one let me know how to save and retrieve the layout settings from SQL server .
Hello,
I've been facing a issue of timeout script not trigger. I'm using asp.net webform telerik version R2 2021 SP1 (version 2021.2.616.
If I don't click any page from menu and any button (consider as do nothing for 59seconds) so after 59 seconds when I click any other page from menu or click any button, so application automatically logout and go to logout page.
clientevents ResponseEnd not trigger after 1minute tererik version R2 2021 SP1 (version 2021.2.616.Thanks
Yasir Khan
Need to set friendly URLs for ASP classic web site running on IIS 7 .
There is this rules in my web.config
<rewrite>
<rules>
<rule name="chatter">
<match url="^chatter/default.aspx?article=([0-9]+)" />
<action type="Rewrite" url="chatter/article{R:1}.aspx" />
<conditions>
<add input="{QUERY_STRING}" pattern="^www\.SUB\.DOMAIN\.org$" />
</conditions>
</rule>
</rules>
</rewrite>
Nothing happens when I apply this rule. Please note there is subdomain included. Any help ?
I need to display some pictures, between 1 and 40 or 50, and let the users select one or more of them.
Does Telerik have control that does a good job of this?
The imageGalary looks good but I don't see any way to select an image.
Any suggestions?
Bernie
Dont need to show me how. It would be appreciated, but at 1st I need to know if it is possible to on the client iterate through rows on a RadGrid and change the selected item of a RadComboBox in each row. It isnt our ultimate goal. We want when a parent row is changed for all the comboboxes in the child to get changes to the same, but the code below is a start.
I try this and no visible change is made in the grid.
for (var i = 0; i < Telerik.Web.UI.RadComboBox.ComboBoxes.length; i++) {
for (var i = 0; i < Telerik.Web.UI.RadComboBox.ComboBoxes.length; i++) {
var combo = Telerik.Web.UI.RadComboBox.ComboBoxes[i];
var item = combo.findItemByText(changedValue);
console.log(item);
if (item) {
item.select();
}
}
I want to add a watermark to the pdf file to be displayed in pdfviewer.
Please inquire if it is possible.
I've run into an issue using modal popups and controls on a page, and I've created a test scenario. What I'm trying to do is, when the user submits a form to save data to a database, the application first validates if everything is correct. If not, display a modal popup. This works find the first time I press "Save Data" in my test, but the 2nd time, any bound controls seem to lose their values. For example, the line -
Dim value As String = RadComboBox1.SelectedItem.Value
gives an 'Object reference not set to an instance of an object" error. Do I have to rebind every control on the page in the code-behind, or is there a better way to do this? Is this happening because I'm putting the RadWindowManager into the AjaxPanel? (I read a bit of documentation about it, but I couldn't clearly understand it).
EDIT: It also happens with another control (button) that does a postback. While rebinding does prevent the "Object Reference..." error, it loses its' selected value.
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AjaxTest.aspx.vb" Inherits="ModalTest.AjaxTest" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue">
</telerik:RadWindowManager>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
</telerik:RadAjaxPanel>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadButton1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>
<telerik:RadButton ID="btnSave" runat="server" Text="Save Data">
</telerik:RadButton>
<telerik:RadLabel ID="RadLabel1" runat="server">
</telerik:RadLabel>
<telerik:RadComboBox ID="RadComboBox1" Runat="server" DataSourceID="SqlDataSource1" DataTextField="Title" DataValueField="ID">
</telerik:RadComboBox>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:AppConnectionString %>" SelectCommand="SELECT [ID], [Title] FROM [luTest]"></asp:SqlDataSource>
</div>
</form>
</body>
</html>
Imports Telerik.Web.UI
Public Class AjaxTest
Inherits System.Web.UI.Page
Protected Sub RadButton1_Click(sender As Object, e As EventArgs) Handles btnSave.Click
' Simulate Data Validation.
RadAjaxPanel1.Controls.Clear()
RadAjaxPanel1.Controls.Add(RadWindowManager1)
' The commented out code also works, but the dropdown still loses its' values.
RadWindowManager1.Windows.Clear()
RadWindowManager1.RadAlert("Test Validation Message", 330, 180, "Error", "")
' CreateModalWindow(RadWindowManager1, "mModal\Modal.aspx")
' Simulating collecting data for saving to a database table.
Dim value As String = RadComboBox1.SelectedItem.Value
End Sub
Private Sub CreateModalWindow(WindowManager As RadWindowManager, url As String)
Dim RadWindow1 As New RadWindow
With RadWindow1
.ID = "rwTest"
.Height = 600
.Width = 800
.Title = "Title"
.DestroyOnClose = True
.Skin = "WebBlue"
.Modal = True
.NavigateUrl = url
End With
WindowManager.Windows.Clear()
WindowManager.Windows.Add(RadWindow1)
Dim PageHandler As Page = HttpContext.Current.Handler
Dim script As String = "function f(){$find(""" + RadWindow1.ClientID + """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
RadAjaxPanel1.ResponseScripts.Add(script)
ScriptManager.RegisterStartupScript(PageHandler, PageHandler.GetType(), "key", script, True)
End Sub
End Class