Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
153 views
Hi everyone,

my problem is a little bit strange. You can see my problem in the picture. I have two table, station and data. I want to get result only root station data but root station data is sum of child station data. How can I do easly? Please help me... I use Telerik Rad AJAX 2009 Q3.
Yavor
Telerik team
 answered on 26 Mar 2010
4 answers
119 views
I have created a scheduler and associated advanced form based on the examples and that is working nicely. I went back in to add the export functions and based on the sample...
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> 
 
        <script type="text/javascript"> 
            function Export(sender, e) { 
                $find("<%= RadAjaxManager1.ClientID %>").__doPostBack(sender.name, ""); 
            } 
        </script> 
 
    </telerik:RadCodeBlock> 
The page posts back, but nothing happens??

 <AppointmentTemplate>
                <%--<div style="color: #ffffff; font-size: medium;">--%>
                <strong style="color: #ffffff">Title:
                    <%#Eval("Subject") %>
                    <br />
                    Type:
                    <%# Eval ("reservation_type") %>
                    <br />
                    Resource:
                    <%--<asp:Label ID="lblResourceTitle" runat="server"></asp:Label>--%>
                </strong>
                <%-- </div>--%>
                <div style="text-align: right;">
                    <asp:Button runat="server" ID="Button1" CssClass="rsExportButton" ToolTip="Export to iCalendar"
                        CommandName="Export" OnClientClick="Export(this, event); return false;" Style="cursor: pointer;
                        cursor: hand;" />
                </div>
            </AppointmentTemplate>
T. Tsonev
Telerik team
 answered on 26 Mar 2010
3 answers
258 views
Hi,

How do I change background color client-side?  I've wasted hours trying to get this thing to like a normal control.

I'm trying to use a color picker and client-side javascript to change the page background and this thing is the only control that won't change.

Peter
Telerik team
 answered on 26 Mar 2010
6 answers
347 views
Hi,

I have a RAD Tooltip manager in my code that opens up the user control. Problem is my user control has a script tag and this tag is not getting executed. I will explain you in detail below.

Default.aspx
<asp:ScriptManager ID="safd" runat="server">  
    </asp:ScriptManager> 
    <div> 
        <asp:HyperLink ID="hypTooltip" runat="server" NavigateUrl="#" Text="Tooltip" /> 
        <telerik:RadToolTipManager ID="radToolTipManager" runat="server" OffsetY="-7" OffsetX="10" 
            Width="300" Height="300" RelativeTo="Element" Position="Center" HideEvent="ManualClose" 
            ShowEvent="OnClick" ManualClose="True" OnClientShow="OnClientShowTooltipMessage" 
            OnAjaxUpdate="radToolTipManager_AJAXUpdate">  
        </telerik:RadToolTipManager> 
    </div> 
Default.aspx.cs
protected void Page_Load(object sender, EventArgs e)  
        {  
            if (!Page.IsPostBack)  
            {  
                radToolTipManager.TargetControls.Add(hypTooltip.ClientID, true);  
            }  
        }  
 
        protected void radToolTipManager_AJAXUpdate(object sender, ToolTipUpdateEventArgs e)  
        {  
 
            Control ctrToolTip = Page.LoadControl("Tooltip.ascx");  
            e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrToolTip);  
        } 

Tooltip.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Tooltip.ascx.cs" Inherits="WebApplication5.Tooltip" %> 
<div> 
    Inside Div  
 
    <script type="text/javascript" language="javascript" src="http://test.sharevalue.com/company.asp?symbol=MSFT">          
    </script> 
 
</div> 
As you see in the ascx page, the url in the script tag generates me the contents. Contents from the Url will look something like this.Please keep in mind this data will be dynamic based on the symbol I pass in the query string.
Ex:
document.write('');
document.write('Home Page');
document.write('
Microsoft Corporation  NASDAQ GS: MSFT
3/04/10 4:00pm 100.63  Change: +0.17 | +0.60%
  1d  | 5d  | 1m  | 3m  | 6m  | 1y
Open:
High:
Volume:
Yield:
28.65
28.65
28.27
15.73');
document.write('');

The same script tag if I place in aspx page - it works. But if I invoke using Rad Tooltip manager, it doesn't work. It just returns the blank tooltip for me.

Could someone help me out on this? Do I need to register this script anywhere if I want to use it with RAD Tooltip?
Regards,
Kishan G K
Tsvetie
Telerik team
 answered on 26 Mar 2010
2 answers
122 views
Hi,

I created one custom resource in part of new appointment screen, able to create the new appointment without any issues.

when we try to bind the created events, am getting the following error.
" A circular reference was detected while serializing an object of type 'System.Data.DataRowView'. ".

I suspect the problem because of to set the ForeignKeyField, i have FK relationship for my parent and child tables.

I am not sure how to solve the issue,i  gone through all the documents as well as open forums, not able to get the solution.

Is this mandatory to bind the custom resource in part of rad scheduler?

Thanks,

Chris Trina
Top achievements
Rank 1
 answered on 26 Mar 2010
3 answers
201 views
Hi,
  I have an issue where the top row of toolbars is missing from the rad editor.  We are using version 5.6.0.0.  My listconfigfile is 

 

 

 

 

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
  <property name="ToolbarMode">Default</property> 
  <property name="ToolsWidth">600px</property> 
  <property name="EditModes">Design,Html</property> 
  <property name="Height">400px</property> 
  <property name="Width">600px</property> 
  <property name="ConvertToXhtml">True</property> 
  <property name="ShowHtmlMode">True</property> 
  <property name="ShowPreviewMode">False</property> 
  <property name="AllowScripts">False</property> 
  <property name="ImagesPaths">  
    <item>/Global/Image/Library</item> 
    <item>PublishingImages</item> 
    <item>/SiteCollectionImages</item> 
  </property> 
  <property name="OnClientSelectionChange">OnClientSelectionChange</property> 
</configuration> 

and the tools file
<root> 
  <modules> 
    <module name="RadEditorDomInspector" /> 
    <module name="RadEditorStatistics" /> 
  </modules> 
 
 
  <!--    <tool name="FlashManager" /> --> 
  <!--    <tool name="MediaManager"  /> --> 
  <!--    <tool name="DocumentManager"  /> --> 
 
 
  <tools name="row1">  
    <tool name="Print" /> 
    <tool name="AjaxSpellCheck" /> 
    <tool name="FindAndReplace" /> 
    <tool separator="true"/>  
    <tool name="SelectAll"/>  
    <tool name="Cut" shortcut="CTRL+X" /> 
    <tool name="Copy" shortcut="CTRL+C" /> 
    <tool name="Paste" shortcut="CTRL+V" /> 
    <tool name="Undo" shortcut="CTRL+Z" /> 
    <tool name="Redo" shortcut="CTRL+Y" /> 
    <tool separator="true"/>  
    <tool name="PasteFromWord" /> 
    <tool name="PasteFromWordNoFontsNoSizes"/>  
    <tool name="PastePlainText" /> 
    <tool name="PasteAsHtml"  /> 
    <tool name="FormatStripper"/>  
  </tools> 
 
 
  <tools name="row2">  
    <tool name="MOSSLinkManager" shortcut="CTRL+K" /> 
    <tool name="Unlink" shortcut="CTRL+SHIFT+K" /> 
    <tool name="ImageManager" shortcut="CTRL+G" /> 
    <tool name="MOSSTemplateManager" /> 
    <tool separator="true"/>  
 
    <tool name="InsertBreakAtEnd"  /> 
    <tool name="InsertSymbol"  /> 
    <tool name="InsertHorizontalRule"  /> 
    <tool name="InsertDate"  /> 
    <tool separator="true"/>  
    <tool name="MOSSInsertTable" /> 
    <tool name="SetTableProperties" /> 
    <tool name="ToggleTableBorder" /> 
    <tool name="MOSSInsertTableElement">  
      <tool name="InsertRowAbove" /> 
      <tool name="InsertRowBelow" /> 
      <tool name="InsertColumnLeft" /> 
      <tool name="InsertColumnRight" /> 
      <tool name="SplitCell" /> 
    </tool> 
    <tool name="MOSSDeleteTableElement">  
      <tool name="DeleteRow" /> 
      <tool name="DeleteColumn" /> 
    </tool> 
    <tool name="MergeColumns" /> 
  </tools> 
  <tools name="row3">  
    <tool name="InsertOrderedList" /> 
    <tool name="InsertUnorderedList" /> 
    <tool name="Outdent" /> 
    <tool name="Indent" /> 
    <tool separator="true"/>  
    <tool name="JustifyLeft" /> 
    <tool name="JustifyCenter" /> 
    <tool name="JustifyRight" /> 
    <tool separator="true"/>  
    <tool name="Bold" shortcut="CTRL+B" /> 
    <tool name="Italic" shortcut="CTRL+I" /> 
    <tool name="Underline" shortcut="CTRL+U" /> 
    <tool name="StrikeThrough"  /> 
    <tool name="Superscript"  /> 
    <tool name="Subscript"  /> 
    <tool separator="true"/>  
    <tool name="FormatBlock" /> 
  </tools> 
 
  <paragraphs> 
    <paragraph name="&lt;P>Normal&lt;/P>" value="&lt;P>" /> 
    <paragraph name="&lt;H2>Head&lt;/H2>" value="&lt;H2>" /> 
    <paragraph name="&lt;H3>Head 1&lt;/H3>" value="&lt;H3>" /> 
    <paragraph name="&lt;H4>Head 2&lt;/H4>" value="&lt;H4>" /> 
    <paragraph name="&lt;H5>Head 3&lt;/H5>" value="&lt;H5>" /> 
  </paragraphs> 
 
  <contextMenus> 
    <contextMenu forElement="*">  
      <tool name="Cut"/>  
      <tool name="Copy"/>  
      <tool name="Paste"/>  
    </contextMenu> 
  </contextMenus> 
  <fontNames> 
    <item name="Arial" /> 
  </fontNames> 
  <colors> 
    <color value="black" /> 
    <!--  
    <color value="#af005f" /> 
    <color value="#990066" /> 
    <color value="#666666" /> 
    --> 
  </colors> 
 
</root> 

I've attached some images - I've tested the problem by swapping rows one and two around.  The result is always the top toolbar is missing.  I've tested this in IE 8 and Firefox 3.5 and get the same problem.  I don't think this is css rated - the "missing toolbar in list item.png" shows the output in firebug - there are only two <ul> in reToolbarWrapper div.  I'm wondering if there is something in the config file that is causing this?

I have a second question as well - when does editor use the listtoolsfile.xml vs the toolsfile.xml?  I have attached three images - the one titled "Toolbar showing in List Item.png" is using the toolsfile.xml but the other two (which I'm getting the problem above) use the listtoolsfile.xml .  My understanding was that list items all used the listtoolsfile.xml ?
Stanimir
Telerik team
 answered on 26 Mar 2010
7 answers
358 views
Is it possible to use a list box in a filter template and then set up an "in" filter expression?
example: select * from table where colname in ("a","b","c","d")...
Yavor
Telerik team
 answered on 26 Mar 2010
1 answer
145 views


Hi ,

      I have an Rad Rotator control on my page.
 
      I had added 8 ASP images to it through item template.

      Like the below code snippet below i had added 8 numbers into my rotator.

     <telerik:RadRotatorItem>
     <ItemTemplate>
     <asp:Image Width="60px" Height="50px" CssClass="RotatorItem" runat="server" ID="Image1" ImageUrl=   
               "~/images/Logo.gif" AlternateText="Customer Image" />
     </ItemTemplate>
     </telerik:RadRotatorItem>


     I want to set spac between each item(images) in the rotator.

      Pls Can anybody give a solution to that issue.

Thank You,
Kalidhas.


Pero
Telerik team
 answered on 26 Mar 2010
2 answers
123 views
Hi everybody

As already mentioned in the title, I use a RadGrid with the EnablePostBackOnRowClick property enabled. The postback is made, but it is not ajaxified, meaning that the page will be reloaded. The thing is that I can't make a selection, since everytime I click a row the page is reloaded and as a result of this the selection is lost. 

The following is the very simple ASP.NET code I'm using for this scenario:
<asp:ScriptManager runat="server"> 
</asp:ScriptManager> 
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1"> 
  <AjaxSettings> 
    <telerik:AjaxSetting AjaxControlID="RadGrid1"> 
      <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
      </UpdatedControls> 
    </telerik:AjaxSetting> 
  </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="true" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="true" EnableTheming="False" GridLines="None" OnItemCommand="Grid_ItemCommand" 
  OnSelectedIndexChanged="Grid_SelectedIndexChanged"> 
  <MasterTableView> 
    <PagerStyle Mode="NumericPages" PageButtonCount="10" Position="Top" AlwaysVisible="true" /> 
  </MasterTableView> 
  <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true"> 
    <Selecting AllowRowSelect="True" /> 
  </ClientSettings> 
</telerik:RadGrid> 

I created this scenario because I wanted to check if the SHIFT + CTRL key combination works correctly, i.e. it fires the OnSelectedIndexChanged event.

Hope somebody can help me. I'm definitely looking forward to your answers.

Greetings
Mallory
Mallory
Top achievements
Rank 1
 answered on 26 Mar 2010
1 answer
254 views
Hi,

I think I have found a bug in the 2009 Q2 and Q3 versions. See below the code example:

<telerik:RadWindow ID="win" runat="server" ReloadOnShow="true" /> 
<asp:HyperLink runat="server" ID="hl" Text="Click" NavigateUrl="javascript:var w=OpenWin();" /> 
 
<script type="text/javascript">  
    function OpenWin()  
    {  
        var w = $find("win");  
        w.setUrl('/Default.aspx');  
        w.add_close(WinResult);  
        w.show();  
    }  
 
    function WinResult(sender, args)  
    {  
        alert("OK!");  
        //Remove window closed handler  
        sender.remove_close(WinResult);  
    }  
</script> 
 

When I click the hyperlink, the Window is opened with the URL '/Default.aspx'. When the Window is closed the WinResult javascript function is called.

The problem is that the Default.aspx page is loaded twice in the RadWindow. When I remove the RadWindow property ReloadOnShow ór when I remove the last line the from  the javascript function WinResult "sender.remove_close(WinResult)", this problem does not occur.

From one of the Telerik experts I heard that it is actually necessary to call that remove_close method on the RadWindow object to prevent executing the script more than once. So, what can I do to prevent loading the Default.aspx page twice in the RadWindow.

Thanks,
Danny
Georgi Tunev
Telerik team
 answered on 26 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?