Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
458 views
I have a radGrid but there is no option to make it AJAX enabled (ie EnableAJAX is not allowed). Here is the snippet of the HTML

<

telerik:RadGrid ID="Grid_tblboqmaterial" runat="server" EnableAJAX="True"

 

 

AllowAutomaticInserts="True" DataSourceID="SqlDataSource2" GridLines="None" >

The bit in bold comes up with the error "Validation(ASP.NET): Attribute 'EnableAJAX' is not a valid attribute of element 'RadGrid' ".

I have added an AJAX manager and configured the grid to depend on itself and it would appear that AJAX is being used. In my case all I'm trying to do is multiply 2 columns of the active row in the grid and place the result in a 3rd column and with AJAX it is just as slow as doing a full postback. Clearly I am doing something wrong.
 
I tried to do the simple calculation in javascript but I cannot work out the syntax to get the values of the columns of the row I am on because both of the columns required are not the column being updated.

Does anybody know what might be the mistake here or can offer a solution that should be quick for this simple calculation?

Thanks in advance
Ben

 

Iana Tsolova
Telerik team
 answered on 14 Jan 2009
1 answer
104 views
Hi,

In my Skin file I've amended the standard skin with the following:

<telerik:RadComboBox Skin="MySkin" EnableEmbeddedSkins="false" AllowCustomText="true" MaxHeight="300" runat="server" /> 

On one of my pages I want to override the MaxHeight property to be 100. I've tried the following but it always displays 300px

<telerik:RadComboBox ID="RadComboBoxProducts" DataSourceID="odsProducts" Filter="Contains" DataTextField="ProductName" DataValueField="ProductID"  
    Width="205" DropDownWidth="300" MaxHeight="100" runat="server">                                                                                                                 
</telerik:RadComboBox> 

Any ideas?
Shinu
Top achievements
Rank 2
 answered on 14 Jan 2009
1 answer
107 views
Hi,
I am trying to customize my pager programatically. I have two grids in my page. I have the text box which allows the user to enter the page number to go by. I am validating the user entry using range validator. When doing any operation in the grid I am getting the "An entry with the same key already exists." error. This is because of the range validator. Now I want to find whether the range validator exists already in the pager. How can this be done?

I am using this.tableview.FindControl("rangevalidator") but it won't work. How do I do this now?
Iana Tsolova
Telerik team
 answered on 14 Jan 2009
3 answers
239 views
I have a grid that displays id, name, startdate, and enddate.  I have added a template column with a submit button.  When the submit button is clicked I need to add the data from that row to another table.  I am not sure how to get the values from the grid rows.  Any help will be appreciated.
Shinu
Top achievements
Rank 2
 answered on 14 Jan 2009
1 answer
107 views
I've got a problem with the editor when pasting text from word or pasting as plain text.

If I go to the html-view, I notice that the RADeditor only assigns <br /> when it should be <p>.

Is there a way to have the RADeditor assign <p>-tags to text?

Thanks in advance!
Rumen
Telerik team
 answered on 14 Jan 2009
2 answers
113 views
Morning,

I want to make a record of a record that is going to be deleted just before it's deleted.
I tried using the RadGrid1_ItemDeleted event but the record is deleted by the time the event fires.
Which event can i use so when i click delete, i can exec my stored proc which will copy the record but then it will be deleted?


Thanks
Darren
Top achievements
Rank 2
 answered on 14 Jan 2009
1 answer
81 views
The problem can be reproduced in this page.

<%

@ 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">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head runat="server">

 

 

<title></title>

 

 

<script runat="server">

 

 

protected override void InitializeCulture()

 

{

System.Globalization.

CultureInfo cultureInfo =

 

(System.Globalization.

CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone();

 

cultureInfo.DateTimeFormat.ShortDatePattern =

"d MMM yy";

 

 

try

 

{

System.Threading.

Thread.CurrentThread.CurrentCulture = cultureInfo;

 

}

 

catch

 

{

}

 

base.InitializeCulture();

 

}

 

</script>

 

</

 

head>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<telerik:RadScriptManager ID="sscriptmgr" runat="server">

 

 

</telerik:RadScriptManager>

 

 

<div>

 

 

<telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server">

 

 

</telerik:RadDateTimePicker>

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

Error happened when a date or time is selected from the calendar.
I need to initialize the CultureInfo because I need to control the displayed DateTime format.

Your help is much apprepciated.

Edwin

 

Dimo
Telerik team
 answered on 14 Jan 2009
1 answer
165 views

Hi All,

I'm troubleshooting an issue with RadComboBox where I'm getting this exception:

"Invalid viewstate. \r\n\tClient IP: 192.168.1.107\r\n\tPort: 1603\r\n\tUser-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)\r\n\tViewState: /wEWNQLUvuKlDwKanLyKDwL+vra0BwL+vubYBAL+vsqFDQL+vt7iBQKFnPyJDwKEnLyKDwKBnLyKDwKdnLyKDwKAnLyKDwKHnLyKDwKFnLyKDwKDnLyKDwKSnLyKDwKFnMyJDwKFnPCJDwKFnMiJDwKFnPSJDwKFnNiJDwKFnMCJDwKFnMSJDwKFnJyKDwLHsJBxAuLLl7oKAsCamcIOAuX08/QFApjSvc0LAoXAk6QFAprG7pELAozb8oILAruBkaMHAqHOw/oJAoCJ6fgLAsOomOQEAvn6044JApTk8aMDAqLW/roBAq6jnpcMAu7npfgIAontjqwGAoPG8ocFArXlpuQFAuvtnK4BAuOjjs0CAo2H6PsDAom4wI8EAoKLyOcIAoyulcwNApvHucUNApDzsokDAvCC478BAoT4/4AMd7qpJsHELlrQcakKn3xW9aOMYBM=\r\n\tReferer: http://link removed\r\n\tPath: "

This happens when any postback button on the page is clicked while the type-ahead feature of the RadComboBox is looking 
for a match and the progress panel is displayed.  

Now, this only happens when AutoPostback property is enabled on the RadComboBox but I'm using this feature
to catch the SelectedIndexChanged event to populate another RadComboBox with default value.

Any idea how this could be rectified without disabling AutoPostback?

Simon
Telerik team
 answered on 14 Jan 2009
1 answer
168 views
I have a bar chart with multiple series and I have the YAxis autoscale set to true.  Is there anyway to get a handle on the generated max YAxis and step value as I would like to reuse these values.

Thanks,
`Travis
Giuseppe
Telerik team
 answered on 14 Jan 2009
3 answers
196 views
Hello,

I am having some difficulties with a popup window that contains a rad grid. When the page loads, the rad grid is shown, and after that, when ever i try to click anywhere within the window's area, i get a javascript error 'Access is denied'. The page that contains the grid is in a different domain and i know that i can't do any cross domain scripting. But i have no script in which i am trying to access the parent page.
This error is only encountered in IE (IE v7), in Firefox and Safari everything is ok.
If in the same window i open other pages (e.g. Google), it's no problem.

This is the page that opens the popup:
 <telerik:RadWindowManager ID="RadWindowManager" runat="server"
        <Windows> 
            <telerik:RadWindow Skin="Gray" Behaviors="Close, Maximize" RestrictionZoneID="RestrictionZone" 
                ID="RadWndOH" VisibleOnPageLoad="false" Title="Order History" runat="server" 
                Width="300px" DestroyOnClose="true" OnClientActivate="OnClientActivate"
            </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 
 
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
 
        <script type="text/javascript"
            function OnClientActivate(sender) { 
                //get a reference to the RadWindow object 
                oWnd = sender
                if (oWnd != null) { 
                    oWnd.maximize(); 
                } 
            } 
            function ShowOrderHistoryPopup(navigateUrl) { 
                var wnd = window.radopen(navigateUrl, 'Order History'); 
                 
                wnd.maximize(); 
                return false; 
 
            } 
        </script> 
 
    </telerik:RadCodeBlock> 
If i try to debug the error, a file called Telerik.WebUI.WebResource_2.axd is opened and the following code is highlighted  g=e.screenLeft-top.screenLeft-top.document.documentElement.scrollLeft+2.
I believe that trying to access top.document or top.screenLeft is the problem. But is it the grid or the window that tries to do this?

I am using C#, ASP.NET 2.0, Telerik 2008.03.1125.20 on IE 7 and Firefox 3 on Windows XP.

Any ideas? Thank you.
Adrian.
Georgi Tunev
Telerik team
 answered on 14 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?