I need to enumerate all instances of RadEditor control on the page.
Scenario: there are several text editors on the page and OK and Cancel buttons. When user presses Cancel button I'd like to check if there are any changes made by the user and warn the user that the changes will be lost.
I can check if editor content has been changed by the following piece of code:
| var manager = editor.get_commandsManager(); |
| var length = manager.getCommandsToUndo().length; |
| ... |
The question is how to get each text editor instance on the page? I can use, for instance, OnClientLoad event to collect text editor instances in some collection on client side, however I suppose there can be some other way to do that using existing features of client-side API?
function LoadSelected(sender, eventArgs)
{
var tab = eventArgs.get_tab();
//If we don't have any child tabs, we'll exit
var TabSubCount = tab.get_tabs().get_count();
if ( TabSubCount == 0 ) { return false; }
for (var i = 0; i < TabSubCount; i++)
{
How to tell if tab.get_tabs().getItem(i) is selected ?
Something like
alert(tab.get_tabs().getItem(i).selected);
}
}
I installed the Q2 2008 Rad ASP.NET AJAX controls, and based on this page, I figured it would create a single Telerik.Web.Ui.dll in the /bin directory. Instead, I got a /NET1 and /NET2 directory, each of which has a /bin beneath it with all a separate dll for each control.
The effect of this is that, when I went to add a grid to a page from the toolbox, it tried to use the RadGrid.Net2 assembly rather than the Telerik.Web.UI. Also, I am unable to use a popup edit form on that grid, since that assembly seems to have no knowledge of popup mode (only "EditForms" and "InPlace"). I did have an older version of the controls installed previously, so it could be a problem with my GAC, but I've since uninstalled them, leaving only Q2 2008.
Does anyone have an explanation for what I am doing wrong, and how I might fix it?
Dim strsql As String
Dim ds As New DataSet
Dim conn As String = ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString
Dim sqlconn As New SqlConnection(conn)
strsql = "SELECT Month, QtyProduced FROM vw_productionyr WHERE year = " & Date.Today.Year
Dim da As SqlDataAdapter = New SqlDataAdapter(strsql, sqlconn)
da.Fill(ds)
RadChart1.Series(0).Clear()
RadChart1.Series(0).DataXColumn = "Month"
RadChart1.Series(0).DataYColumn = "QtyProduced"
RadChart1.DataSource = ds
RadChart1.DataBind()
For i As Integer = 1 To RadChart1.Series.Count - 1
RadChart1.Series(i).Clear()
Next