Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
186 views
Hi,

I have a web site running on IIS 6 (using both Telerik and AJAX Control toolkit), it works fine. 

But then I copy the website on an Win 2008 Server running IIS 7.0, the program dosen't work and I got the ASP.NET AJAX failed to load Javascript error, I've added the handler to the web.config but with no luck.
<system.webserver>
<handlers>
<add 
name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" 
path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
</handlers>
</system.webserver>
I am using the RadControl v.2010.3.1317.35
And our web hosting is using Plesk Control Panel.

Please advise. Thanks
Andy Ho
Andy Ho
Top achievements
Rank 1
 answered on 31 Mar 2011
1 answer
102 views
Hi,

I need to create a chart with the following properties:
  1. On the y axis, i need to show an integer say score
  2. On the x axis, i need to display the month on which the score was posted. The x axis can be static also and contain all the months.

I have a complex object which has both score and date attributes.

how can this be achieved? I am not able to find a solution for this problem. It is not present in a demo also.

Please help!

Thanks in advance
Vishesh
Missing User
 answered on 31 Mar 2011
1 answer
84 views
The Hyperlink column is kind of a pain in the ass if we can't set an Eval() statement on NavigateUrl directly in the markup...

Will this ever be fixed?  We can do it with a TemplateColumns controls fine...doesn't make it easy to use if you always have to use ItemDataBound everytime we need a simple nav column
Sebastian
Telerik team
 answered on 31 Mar 2011
1 answer
79 views

Ajax 2010.3.1317.45

as mentioned in this article,
http://www.telerik.com/help/aspnet-ajax/grdperformcalculationsingroupheader.html

I would like to have calculation (only group "count") on Any column being grouped. is there any way to accomplish this client-side, the reason for asking is that i use

 

 

 

GroupLoadMode="Client"

 


and dont want to set up groupfields for all columns, can i achieve this type of count aggrigation independent from what column is being grouped, maybe trough javascript?
Marin
Telerik team
 answered on 31 Mar 2011
2 answers
166 views
What I'm trying to do

I have an ASP.NET page which shows a list of items.  Once the page has loaded, I perform an AJAX call to go and get the stock for every item.  When the AJAX call returns, we then display an "in stock" or "out of stock" icon with an associated tooltip for each item.  The tooltip will display the actual stock.

The problem
The tooltip is not just text but has formatting in it.  I have got my code to work in Firefox 4, but it doesn't work in Internet Explorer 8.

The code
The tooltip text template is:

In stock - <span style='color: #ff0000;'>[[stock]]</span> items

When the page first loads, I have a hidden label (style display = none) and I set this label's text property to that of the template text.

When my AJAX call returns, it runs a function.  This function iterates through each item and performs the following:

tooltip.show();
tooltip.set_contentElement(inStockTextCached);
var content = tooltip.get_content().replace(""[[stock]]"", fields[" + QoHDisplay.QuantityOrdinal + @"]);
tooltip.set_content(content);
tooltip.hide();

Okay, a quick explanation of this JavaScript:

tooltip.show();
If I don't add this then I get an error if I attempt the next line.  The error is "this._contentCell is null" and the solution was posted here: http://www.telerik.com/community/forums/aspnet-ajax/tooltip/client-side-set-content-to-dom-element.aspx

tooltip.set_contentElement(inStockTextCached);
Earlier on in the function I create a reference "inStockTextCached" to the label that holds the template text.  I then set the tooltip's content element to be the same.

In Firefox 4 and Chrome, calling set_contentElement(inStockTextCached) works fine but in InternetExplorer it does not work.

var content = tooltip.get_content().replace(""[[stock]]"", fields[" + StockOrdinal + @"]);
Here, I load the content of the tooltip and "[[stock]]" with the actual stock value returned from the AJAX call.

tooltip.set_content(content);
I then attempt to update the content of the tooltip

tooltip.hide();
I had to show the tooltip to prevent the error, but ideally I don't want it to show when it first loads....this is my attempt to therefore hide it (but that doesn't seem to have the desired effect).


Any help would be much appreciated.

Thanks in advance

Griff


Svetlina Anati
Telerik team
 answered on 31 Mar 2011
6 answers
134 views
Hello,

I tried to ask a user to confirm a delete of a dock, but i can't do a confirmation because the dock have been removed from the zone before i get the command close from it.

How can i ask a confirmation on click the close icon of the dock?

Thanks,
Shimon
Pero
Telerik team
 answered on 31 Mar 2011
1 answer
82 views
please check the below attached image of grid.the problem  with item template columns,when there is no data the gird lines are not visible.this problem is in IE only not in Mozilla.i tried with gridlines property of grid also mastertableview too

anyone can help me to solve this problem please.

thank you
Princy
Top achievements
Rank 2
 answered on 31 Mar 2011
1 answer
90 views
I recently installed the update to 2011.1.315.40, and now find that RadRotator left and right buttons both show up on the left side of the RadRotator (see attached jpg). Before the update, in this project, the buttons were on the left and right sides as expected.

Has anyone else encountered this? Any ideas? Aspx for one of the pages follows:

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="textcontent">
        <h1>Exterior Pictures</h1>
        <div>
            <telerik:RadRotator ID="RadRotator1" runat="server" Height="363px"
                Style="margin-left: 60px" 
                ItemHeight="363px" ItemWidth="550px" RotatorType="SlideShowButtons" 
               Width="590px" Skin="Default">
                <SlideShowAnimation Duration="3000" Type="Fade" />
                <ItemTemplate>
                <asp:Image ID="Image1" runat="server" 
                        ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ImageUrl") %>'/>
            </ItemTemplate>
            </telerik:RadRotator>
        </div>
    </div>
</asp:Content>
Stanimir
Telerik team
 answered on 31 Mar 2011
3 answers
96 views
I have used RadWindow many times and have always been able to do a close and rebind. This time however things are a little different. To rebind the data to a radgrid I need to call a SQL stored procedure.

I have all the Javascript and Ajax code set just like the online example. This usually works. The typical Ajax Request Handler looks like:

Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
    If e.Argument = "Rebind" Then
        rgd_ABIUser.MasterTableView.SortExpressions.Clear()
        rgd_ABIUser.MasterTableView.GroupByExpressions.Clear()
        rgd_ABIUser.Rebind()
    ElseIf e.Argument = "RebindAndNavigate" Then
        rgd_ABIUser.MasterTableView.SortExpressions.Clear()
        rgd_ABIUser.MasterTableView.GroupByExpressions.Clear()
        rgd_ABIUser.MasterTableView.CurrentPageIndex = rgd_ABIUser.MasterTableView.PageCount - 1
        rgd_ABIUser.Rebind()
    End If
End Sub

This works when the radgrid is bound to a SQLDataSource. However, I need to rebind the grid using:

Private Function GetUser() As DataTable
    Dim DatabaseName As String = rcb_Database.SelectedValue
    Dim SC As String = rcb_Site.SelectedValue
    Dim connectionString = New SqlConnection("server=DO-IT-AB\MSSQLAB;database=AeriesAdmin;UID=XXXX;PWD=XXXX;")
    Dim command = New SqlCommand("aa_abi_users_by_site", connectionString)
    command.CommandType = CommandType.StoredProcedure
    command.Parameters.Add("@DBName", SqlDbType.VarChar).Value = DatabaseName
    command.Parameters.Add("@SC", SqlDbType.VarChar).Value = SC
    command.Connection.Open()
    Dim myDataAdapter As New SqlDataAdapter(command)
    Dim myDataSet As New DataSet
    Dim dtData As New DataTable
    myDataAdapter.Fill(myDataSet)
    Return myDataSet.Tables(0)
    command.Connection.Close()
End Function

I tried to modify the handler to call my function but this does not work:

Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
    If e.Argument = "Rebind" Then
        rgd_ABIUser.MasterTableView.SortExpressions.Clear()
        rgd_ABIUser.MasterTableView.GroupByExpressions.Clear()
        rgd_ABIUser.DataSource = GetUser()
        rgd_ABIUser.Rebind()
    ElseIf e.Argument = "RebindAndNavigate" Then
        rgd_ABIUser.MasterTableView.SortExpressions.Clear()
        rgd_ABIUser.MasterTableView.GroupByExpressions.Clear()
        rgd_ABIUser.MasterTableView.CurrentPageIndex = rgd_ABIUser.MasterTableView.PageCount - 1
        rgd_ABIUser.DataSource = GetUser()
        rgd_ABIUser.Rebind()
    End If
End Sub

Any help performing a RadWindow Close and Rebind.

Svetlina Anati
Telerik team
 answered on 31 Mar 2011
2 answers
147 views
I would like to remove the "Select All" checkbox from the header, and add an expand all button to the header above the "+" icons.  What is the best way to do this?  There doesn't seem to be a "header template" for this control.

Tsvetina
Telerik team
 answered on 31 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?