Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Hi i have an ajax manager on my page and it seems make my google maps item fail when it tries to load the key
is there anything i can do to get it to work
Pavlina
Telerik team
 answered on 12 Aug 2009
1 answer
67 views
I am using a master page and i have radscriptmanager in the masterpage.
I drag rad ajax manager to a content page and
when i click on configre ajax manager option it comes up with an empty list of controls.

I think the reason behind this may be due to the fact that the radscript manager is in the masterpage.
Is it a bad practice to have radscript manager in master page ?


note:My masterpage uses RadMenu and thats the reason i have RadScriptManager on the masterpage.
Vlad
Telerik team
 answered on 12 Aug 2009
2 answers
191 views
Hello everyone, I am having a problem with some code here.  From everything I read this code should work so I don't really know whats going on.  The code highlighted in bold is what is giving me errors.  Can anyone help?  Thanks

Imports

 

System.IO

 

Imports

 

Telerik.Web.UI

 

Imports

 

System.Collections

 

Imports

 

System

 

Imports

 

System.ComponentModel

 

Imports

 

System.Data

 

Imports

 

System.Drawing

 

Imports

 

System.Web

 

Imports

 

System.Web.SessionState

 

Imports

 

System.Web.UI

 

Imports

 

System.Web.UI.WebControls

 

Imports

 

System.Web.UI.HtmlControls

 




 

Protected Sub RadTreeView1_NodeExpand(ByVal o As Object, ByVal e As RadTreeNodeEventArgs)

 

 

If e.NodeClicked.Nodes.Count = 0 Then

 

BindDirectory(e.NodeClicked.Value, e.NodeClicked.Nodes)

 

End If

 

 

End Sub

 

 

Protected Sub RadTreeView1_NodeClick(ByVal o As Object, ByVal e As RadTreeNodeEventArgs)

 

SelectNode(e.NodeClicked)

 

End Sub

 

Bryan Davis
Top achievements
Rank 1
 answered on 12 Aug 2009
1 answer
240 views
Hi All

I want to disable any editing in textarea of RadEditor control anonly the text  should be visible.
I tried to implement following function on "OnClientLoad"

function

 

OnClientLoad(editor, args)

 

{

editor.add_modeChange(

function(editor, args)

 

{

 

var mode = editor.get_mode();

 

 

if (mode == 2)

 

{

 

var htmlMode = editor.get_textArea(); //get a reference to the Html mode textarea

 

htmlMode.disabled =

"true";

 

}

});

}


But I recieved the error:
Exception while executing client event OnClientLoad Error:Object doesn't support this property or method.

Please tell me how to keep the textarea disabled.

Thanks in advance !!
Rumen
Telerik team
 answered on 12 Aug 2009
1 answer
100 views
Hello,

I've been trying to add the grid item through stored procedures, and I am having hard time getting the user input from RadGrid.

    Protected Sub MyConditions_ItemInserted(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) 
        Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem) 
        Dim test As GridEditableItem = editedItem.OwnerTableView.GetInsertItem() 
 
        Dim test2 As String = test.GetDataKeyValue("Condition").ToString 
 
    End Sub 
This is giving me this error: Index was out of range. Must be nonnegative and less than the size of the collection. Parameter name: index 

I am trying to get the dataKeyValue called "Condition", which was given by user input during onItemInserted event..
Vlad
Telerik team
 answered on 12 Aug 2009
1 answer
146 views
Hello telerik team,
we need powerful grid control. Simply speaknig we want google-docs like look and feel - selecition of cells, begin edit on keypress, without page realoads, is it achievable with RadControls?
I checked out ASP.NET Ajax Grid examples with telerik controls but there is not such a example - everytime the cells is going to edit mode the records are being pulled from storage every time and it causes big delays.
I have seen excel-like grid in code library - it puts all cells to edit mode onload,that solves just part of a problem, because we also want to be able to select cells/rows, that cannot be done in edit mode.

Can RadControsl somehow help in achieving our goal?

The only solution that comes to my mind is code this entirely in Silverlight or some other Javascript like Ext library.
Vlad
Telerik team
 answered on 12 Aug 2009
1 answer
113 views
I have successfully created a RadGrid dynamically against one datasource obejct using your example on creation in the Page_PreInit event. All is well. Now I want to change one of the columns to a RadComboBox using a different datasource programatically too. Using the Northwind database, I have one of the columns defined in the Page_PreInit as this:

Dim calcColumn2 As New GridBoundColumn
calcColumn2.UniqueName = "ProductName"
calcColumn2.HeaderText = "Product Name"
calcColumn2.DataField = "ProductName"
calcColumn2.SortExpression = "ProductName"
RadGrid1.MasterTableView.Columns.Add(calcColumn2)

How do I change this to reflect a comboxbox instead? I see examples of creating each control separately now I need an example of doing both dynamically.

TIA, Tom
Vlad
Telerik team
 answered on 12 Aug 2009
3 answers
186 views
Hi

I have seen a few threads about this topic. None have helped me.
I only get this error on my production server. It occurs randomly. ie sometimes the radchart will display correctly and sometimes I will get this error. There is no pattern to the error.

My web.config contains

http handlers section
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />

system.webserver section
<add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" />

Is their anything else I need to do?
Deon Visser
Top achievements
Rank 1
 answered on 12 Aug 2009
1 answer
112 views
Hi,
I would like to use the radconfirm dialog in a right-to-left environment. The problem is that I can't manage to change the direction of the action buttons (when in RTL, OK should appear in the right and Cancel in the left), or the location of question mark image (also should be on the right side of the window).
The browser I'm using is IE6.

Is there a solution for this?

Thanks.
Fiko
Telerik team
 answered on 12 Aug 2009
1 answer
249 views
Hi all,

I tried to bind data in onDataNeed function of a radgrid with IEnumerable as the code below. Remember DisplayComponent is just a temporary class, not a table that I created to store the results. The ExecuteQuery runs without any trouble. However, I cannot bind the to the radgrid. Anyone knows why?

protected void viewBookings_OnNeedDataSource(...) 
{ 
            string s_query = "select distinct bk.Start, fi.FacilityName, bk.Username " + 
                              "from Booking_Form as bk, " + 
                                    "Facility_Item as fi " + 
                              "where bk.FacilityID = fi.ID"; 
 
            IEnumerable<DisplayComponent> results = data.ExecuteQuery<DisplayComponent>(s_query); 
 
            viewBookingsGrid.DataSource = results.ToList(); 
} 
 
        public class DisplayComponent 
        { 
            public string FacilityName, Username; 
            DateTime Start; 
 
            public DisplayComponent() 
            { 
            } 
        } 





Vlad
Telerik team
 answered on 12 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?