Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
128 views
I have read this blog post about using the Domain Data Source to populate a RadGrid:

http://blogs.telerik.com/TsvetoslavKovachev/Posts/09-09-17/radgrid_for_asp_net_ajax_and_domaindatasource.aspx

I have the same problem as the person that posted a comment about it.  That being, I have the Domain Data Source bound to the grid just like it shows in the example, but I can't get the child tables of the hierarchy to correspond with the selection of the main grid.  I see at the bottom of the page, that support for QueryParameters is available, but I'm stuck?  There are several options in the QueryParameters and I can't get any of them to work.  Is there an example of this somewhere?

Thanks

Tsvetoslav
Telerik team
 answered on 19 Nov 2010
1 answer
106 views
Hi Telerik Team

I have more than one tooltip control in one page, and our application requires to display all fields error and automatically popup after user submit the page. we set the VisibleOnPageLoad = true, but unfortunately, it only auto display the last tooltip.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TooltipsTest.aspx.cs" Inherits="TooltipsTest" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
 
          <div style="padding-top:5px;">
           <telerik:RadComboBox ID="rcbFolders" EnableEmbeddedSkins="false" Skin="Smartmail" runat="server" Width="315px" DataTextField="CampaignFolderName" DataValueField="CampaignFolderID">
            </telerik:RadComboBox>
            <asp:TextBox ID="txtFolderName" runat="server" Width="300px" Visible="false" MaxLength="255"></asp:TextBox>
            <img runat="server" class="RedAlertImage" id="imgWarnFolderNameInUse" visible="false" src="redalert.gif"/>
           
           
          <telerik:RadToolTip ID="RadToolTip1" VisibleOnPageLoad="false" runat="server" Position="BottomLeft" TargetControlID="imgWarnFolderNameInUse">
              <div><asp:Label ID="lblFolderNameError" runat="server" Text="">sadfdsafsadfadsfdsafdsa</asp:Label></div>
          </telerik:RadToolTip>
      </div>
 
      <div style="padding-top:5px;">
            <asp:TextBox ID="txtCampaignEmailName" runat="server" Width="300px" MaxLength="50"></asp:TextBox>
            <img runat="server" class="RedAlertImage" id="imgWarnCampaignNameInUse" visible="false" src="redalert.gif"/>
             
            <telerik:RadToolTip ID="RadToolTip2" VisibleOnPageLoad="false" runat="server" Position="BottomLeft" TargetControlID="imgWarnCampaignNameInUse">
                <div><asp:Label ID="lblEmailNameError" runat="server" Text="Email name must be unique within a campaign folder"></asp:Label></div>
            </telerik:RadToolTip>
      </div>
 
 
      <div>
          <asp:Button Text="Show" runat="server" ID="showme" />
      </div>
 
 
    </div>
    </form>
</body>
</html>


codebehind 

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
 
public partial class TooltipsTest : System.Web.UI.Page
{
    protected void Page_Init(object sender, EventArgs e)
    {
        showme.Click += new EventHandler(showme_Click);
    }
 
    protected void showme_Click(object sender, EventArgs e)
    {
 
        imgWarnFolderNameInUse.Visible = true;
        imgWarnCampaignNameInUse.Visible = true;
 
        RadToolTip1.VisibleOnPageLoad = true;
        RadToolTip2.VisibleOnPageLoad = true;
    }
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
}


Svetlina Anati
Telerik team
 answered on 19 Nov 2010
1 answer
122 views
I want to change the size of the pager buttons and also the row that contains them. I need them be 18x18px in size but they always turn out 22x22. I can see that they get their size from Telerik.Web.UI.WebResource.axd and the class .RadGrid.rgPageXXX but how do I change it? Couldn't find any property on the grid that would help me. Could you help me find a way?
Pavlina
Telerik team
 answered on 19 Nov 2010
5 answers
168 views
How do I create a rotator similar to the one on this homepage?

I've tried so many different methods from the documentation and forum but none seem to work the same as the above.

Basically, I have 4 big buttons with text in them that are meant to control the sliding rotator (button 1 skips to rotator frame 1 and pauses, button 3 skips to rotator frame 3 and pauses, etc.) when the mouse is not hovering over a button or rotator frame, the rotator is cycling through the 4 frames every 6 seconds.

I think the reason I'm finding it difficult is because I also want the button's css class to change to ButtonOn when either the mouse is hovered over it or the rotator is on the frame corresponding to it. The rest of the time the class should be ButtonOff.

Any suggestions anyone? Cheers!
Svetlina Anati
Telerik team
 answered on 19 Nov 2010
5 answers
100 views
Hi,
please bee good with me on this one, I'm sure the solution is stupid, but it is driving me crazy !
The problem is:
I have a Page with a RadWindowManager which contains a single RadWindow which contains ContentTemplate with some controls inside. In the same page I have a simple Link that triggers a javascript function that opens the window and triggers an ajaxrequest.

In the code behind of the page i get the ajaxrequest and I "should" do something on the controls inside the RadWindow.
The problem is that the RadWindow opens correctly, the ajaxrequest event gets raised correctly, but nothing happens on the controls inside the window !

Here is the code:
test.aspx
 
<%@ Page Title="" Language="VB" MasterPageFile="~/Resources/PAI_MasterPage.master" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder_Body" Runat="Server">
<script language="javascript">
    function MyOpen() {
        
        var oWM = $find("<%=MyWM.ClientID%>");
        var oWin = oWM.open(null, 'W_PaiToolPackItem');
        var ajaxManager = $find("<%= M.ClientID %>");
        ajaxManager.ajaxRequest("IdCustomer");
    }
</script>
<telerik:RadAjaxManager runat="server" ID="M">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="B">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="P" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<a href="javascript:MyOpen();">Open</a>
 
<telerik:RadWindowManager runat="server" ID="MyWM" Enabled="True">
<Windows>
    <telerik:RadWindow runat="server" ID="W_PaiToolPackItem">
        <ContentTemplate>
 
                <asp:Button runat="server" ID="B" Text="Bottone" />
             
                <asp:Panel runat="server" ID="P">
                 
                    <asp:Label runat="server" ID="L"></asp:Label>
                     
                </asp:Panel>
                 
        </ContentTemplate>
     
    </telerik:RadWindow>
</Windows>
 
</telerik:RadWindowManager>
 
</asp:Content>


here is the code behind:
test.aspx.vb
Partial Class test
    Inherits System.Web.UI.Page
 
 
    Protected Sub M_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles M.AjaxRequest
        L.Text = "Ajax Load"
 
    End Sub
 
End Class

The action to perform is stupid, but it does not happen !
If I click onto the button (and a postback starts) the Label loads !

Please help

Thank you

Lorenzo

Lorenzo
Top achievements
Rank 1
 answered on 19 Nov 2010
1 answer
58 views
I have added the panel bar control and pre-populated it with some sample menus. I keep having problems (VS2005) with the control when I debug the application. I have chosen a Windows 7 skin for the control but for some reason it doesn't apply correctly because it cannot find the images to apply? Instead I keep getting an "downloading picture" message which never completes.
I have attached a screenshot of the control and message that keeps appearing in IE8.
Does anybody know how I can fix this?
Peter
Telerik team
 answered on 19 Nov 2010
1 answer
103 views
Hie everyone,

I have a project with different permissions. I would like to disable contextmenu on a certain folder based on the permissions. I have tried using OnClientItemSelected to no avail. Any assistance will be greatly appreciated.

Regards,
Claude
Fiko
Telerik team
 answered on 19 Nov 2010
1 answer
104 views

i have done this and got the id but how to get the values pertaining to this id

string id = item.GetDataKeyValue("AgeGroup").ToString();

Nikolay Rusev
Telerik team
 answered on 19 Nov 2010
1 answer
178 views
Hi guys

i'm currently evaluating the full featured radeditor for moss 2007.

However i can't find a list of all configuration-options for the ConfigFile.xml.

What i've found is the old (pre ajax) reference under http://www.telerik.com/help/aspnet/editor/usingtheconfigfilexml.html

But it seems, some changes have been done. As example: for the Flash Manager i should set the "AllowSpecialTags"-property to "true". The property "AllowSpecialTags" is completely missing the reference above. So is there a list of the configuration options for the radeditor moss (ajax edition)?

Thank you very much.

Carlos
Stanimir
Telerik team
 answered on 19 Nov 2010
1 answer
101 views

Dear Forum,

We are having issues with the RadGrid only under very specific circumstances. When we activate the "static headers", "scrolling", and "client column resize" the browser launches a JS exception. We are able to reproduce the problem from scratch on a new page. When we try the same code on Goggle Chrome, it doesn't occur.
The exception is always thrown when we invoke the TableView.resizeColumn() method.
I will appreciate any tip you could give us.

Thanks

ASP.NET version:                                     3.5 SP1  

OS:                                                             Windows XP SP3

Browser version:                                     IE 8.0.6001.18702

Telerik Product:                                        RadControls for ASP.NET AJAX Q2 2010 SP2  

Preferred programming language:        C#


Webpage error details
  
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 4.0.20506; .NET CLR 2.0.50727)
Timestamp: Mon, 15 Nov 2010 23:17:35 UTC
  
  
Message: Invalid argument.
Line: 3557
Char: 81
Code: 0
URI: http://localhost/test/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a3de828f0-5e0d-4c7d-a36b-56a9773c0def%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.2.929.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a15a8cff0-9e51-4282-a100-c2dcd204ecf2%3a16e4e7cd%3a58366029%3ab7778d6c%3ae085fe68%3af7645509%3a24ee1bba%3a1e771326%3aaa288e2d%3ae330518b%3ac8618e41%3ae4f8f289

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadGridResizeTest.aspx.cs" Inherits="Pacer.PLS.BackOffice.Web.UI.RadGridResizeTest" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
  
        <script type="text/javascript">
            function GridCreated(sender) {
                var masterTableView = sender.get_masterTableView();
                masterTableView.resizeColumn(0, 100);
            }    
        </script>
  
    </telerik:RadCodeBlock>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadGrid ID="rgdResizeTest3" runat="server" AllowSorting="True" Skin="Default" EnableEmbeddedSkins="True" PagerStyle-AlwaysVisible="true" AllowFilteringByColumn="True" DataSourceID="SqlDataSource1" GridLines="None">
        <mastertableview allowpaging="True" pagesize="10" commanditemdisplay="None" allowmulticolumnsorting="true" editmode="InPlace" allowfilteringbycolumn="True" datasourceid="SqlDataSource1">
            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
            <EditFormSettings>
                <EditColumn InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif" EditImageUrl="Edit.gif" CancelImageUrl="Cancel.gif">
                </EditColumn>
            </EditFormSettings>
            <PagerStyle AlwaysVisible="True"></PagerStyle>
            <CommandItemTemplate>
            </CommandItemTemplate>
            <Columns>
            </Columns>
        </mastertableview>
        <clientsettings enablerowhoverstyle="true">
            <ClientEvents OnGridCreated="GridCreated"></ClientEvents>
            <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling>
            <Resizing AllowColumnResize="True" ResizeGridOnColumnResize="False" ClipCellContentOnResize="True" EnableRealTimeResize="False" />
        </clientsettings>
        <pagerstyle position="Bottom" />
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" SelectCommand="SELECT [ProductName], [UnitPrice], [UnitsInStock], [UnitsOnOrder], [QuantityPerUnit], [ReorderLevel], [Discontinued] FROM [Products]"></asp:SqlDataSource>
    </form>
</body>
</html>
Tsvetina
Telerik team
 answered on 19 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?