Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
70 views
Hello,

I used the RadEditor in Moss. And my client want a mix between the 2 mode ShowOnFocus and [PageTop].

ShowOnFocus because when the top of the textbox is visible, it's strange to have the toolbar at the top of the Windows.
[PageTop] because if the user scroll down and the top textbox is not visible, he cannot access the toolbar.
Moreover I have a bug with the [PageTop] mode, the text cursor is flashing very fast which is very tiring.

Do you know I can do that ? by adding javascript to the page ? by modifying the RadEditor .js ?

Thanks,

Regards,
Pascal.
Rumen
Telerik team
 answered on 23 Jun 2010
2 answers
111 views
If I place a tooltip manager on a page and hard code in its width and height, the tooltip renders smoothly.  As im generating the contents of the tooltip panel dynamically from a database, the height will vary depending on the amount of text returned, so I cant hardcode the height, but as soon as I remove the height property, the tooltip renders very slowly and 'jerky'.  Is this a known bug ?  I cant fix the height since I dont know what it will be until runtime when its contents are retrieved

 <telerik:RadToolTipManager runat="server" AnimationDuration="300" ShowDelay="200" 
            HideDelay="1" ID="RadToolTipManager1" Width="450px"  RelativeTo="Element" 
            Animation="Slide" Position="BottomCenter" OnAjaxUpdate="OnAjaxUpdate"  
        Skin="Sunset" HideEvent="LeaveToolTip" /> 


c#

this.RadToolTipManager1.TargetControls.Add(this.ImageGuarantee.ClientID, "Guarantee", true); 
                this.RadToolTipManager1.TargetControls.Add(this.ImageWhy.ClientID, "Why", true); 
                this.RadToolTipManager1.TargetControls.Add(this.ImageVIP.ClientID, "VIP", true); 

Svetlina Anati
Telerik team
 answered on 23 Jun 2010
1 answer
62 views
Sir ,
I have used two <telerik:RadDateTimePicker>.
In first <telerik:RadDateTimePicker> , I have set default value from codebehind as  Datetime.Now.
Now I am selecting Date from Second <telerik:RadDateTimePicker> , I want to compare Date as well as time with First <telerik:RadDateTimePicker>

When I select Date from Second <telerik:RadDateTimePicker>  , it takes 00.00 time. I dont want in this manner.
From DateControl ,only date should be selected & from TimeControl only time should be selected .

&
I want to separate Date & time in javascript.
See Attachement.
Shinu
Top achievements
Rank 2
 answered on 23 Jun 2010
1 answer
128 views

Hi,

i'm using telerik radwindow and radgrid in my page.
when i double click on grid record my pop-up window displayed. i have 'Close' asp button on my child page.
i'm calling CloseandRebind() javascript function on 'Close' click. it will refresh my parent page. RadAjaxmanager displays the loading panel while refresh of the parent page.

my child rad window displays 'X' button on Top Right corner. i have written OnClientClose function on my parent page window defination like below.
owin.OnClientClose = "OnClientClose"
but page is not getting refreshed on click of 'X'. also loading panel also not displayed.

//java script

function OnClientClose(sender,args)

{

//window.location.href = window.location.href;// - will refresh the page by reloading the URL

$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");

}

function CloseAndRebind(args)
{      
    GetRadWindow().Close();
    GetRadWindow().BrowserWindow.refreshGrid(args);
}

  function refreshGrid(arg) {
                if (!arg) {
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
                }
                else {
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");
                }
            }

please sugggest some solution so that both the close buttons works proper and loading panel displays on click of both buttons.

Thanks
Sweta

Maria Ilieva
Telerik team
 answered on 23 Jun 2010
3 answers
199 views
Hi Stanimir,
 I'm afraid now that I've gotten the solution working from this article, I've found another fatal flaw or bug.

 If I enter a url such as - http://test.moss/_layouts/settings.aspx into the Hyperlink manager on a page....
 
...at a subsite level such as - http://test.moss/demo/test/ and set the configuration to strip out the 'http://test.moss/ part of the URL, I end up with a final rendered URL of :-

http://test.moss/demo/test/_layouts/settings.aspx

How can I avoid this so that the hyperlink manager is ignoring the link entered in context with the subsite?

Thanks,
Jason.
Stanimir
Telerik team
 answered on 23 Jun 2010
1 answer
89 views
I encountered a strange problem for my working project. I have a menu on the top of the page using custom theme. But if I the page is set idle for 20 minutes it will log out which is correct. However if I log back on, the menu will lost the style and shows as hyperlinks. Also I will receive a error message "Microsoft JScript runtime error: Sys.ScriptLoadFailedException: The script  could not be loaded." If I refresh the page, then everything will be fine. Does anyone had similar problem and I really appreciate if you can help me to solve this.

Anthony
Dobromir
Telerik team
 answered on 23 Jun 2010
1 answer
151 views
Im starting to use the tooltip for the first time and have placed a tooltipmanager on my form.  Ive got the whole thing to work ok, its just that sometimes, when the tooltip initially appears, it displays in the far left of the page,then jumps over to the control that activated it.  How can I give the popup a consistent position ?

this is the code

<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" 
        AutoTooltipify="True" Skin="Sunset" OnAjaxUpdate="OnAjaxUpdate" Animation="Fade" RelativeTo="Mouse" HideEvent="LeaveToolTip">
    </telerik:RadToolTipManager>


in my c# I have several images that activate different popups

 this.RadToolTipManager1.TargetControls.Add(this.ImageGuarantee.ClientID, "Guarantee", true);
                this.RadToolTipManager1.TargetControls.Add(this.ImageWhy.ClientID, "Why", true);
                this.RadToolTipManager1.TargetControls.Add(this.ImageVIP.ClientID, "VIP", true);


protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
        {
            this.UpdateToolTip(args.Value, args.UpdatePanel);
        }
        private void UpdateToolTip(string elementID, UpdatePanel panel)
        {
            Control ctrl = Page.LoadControl("~/UserControls/PopupNarrative.ascx");
            panel.ContentTemplateContainer.Controls.Add(ctrl);
            UserControls.PopupNarrative pn = (UserControls.PopupNarrative)ctrl;
            pn.PopupNarrativeType = elementID;
        }


Ive tried setting it to relative to element, but it makes no difference

Svetlina Anati
Telerik team
 answered on 23 Jun 2010
1 answer
123 views
Hi guys,
This is my problem: i have a parent page,  from whom I open an rad window, via an rad window manager(   window.radopen("Something.aspx, "AdvancedForm");). All perfect until now! But, after that , from that radwindow I have to open an other rad window(modal or not) actually is an fileexplorer exactlly like in this example:http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/fileselectordialog/defaultvb.aspx. When I work in Chrome or Firefox...everything is peachy, but in IE I cannot see the rad window. It is opened, I see that in debugger, but it is not visible. 
<telerik:RadWindow runat="server" Width="800px" Height="600px" 
        NavigateUrl="Explorer.aspx" ID="ExplorerWindow"  
        Behaviors="Resize, Close, Move" AutoSize="True" ClientIDMode="AutoID"  
         Behavior="Resize, Close, Move"   
         
            style="POSITION: absolute; visibility: visible; overflow: visible; z-index: 10000000;"  
            InitialBehavior="None"> 
       
    </telerik:RadWindow> 
 function OpenFileExplorerDialog() { 
            var wnd = $find("<%= ExplorerWindow.ClientID %>"); 
            wnd.Show(); 
} 
 
<asp:Button ID="selectFile" OnClientClick="OpenFileExplorerDialog(); return false;" 
Text="Open... " runat="server" type="submit" /> 
 
That's the code, including the button wich start the action. Obviously the explorer.aspx exists, almost identical as in example. 
I had the same problem with the imagemanager from radeditor, but i solved with :
 function OnClientLoad(editor) { 
        editor.set_useClassicDialogs(true); 
    }   
 Not possible this time, function only for editor(I think). I need to transmit back to my first rad window the data from file explorer.
Please help me, if you can!!
Best regards,
Moroianu George
Dobromir
Telerik team
 answered on 23 Jun 2010
1 answer
56 views
I'm basically took the example the telerik had on its site with having a chart inside a grid. However when I run it I'm returning "or em" in the values where I would like currency to display. Trying to run this so that the different Currency exchange will pull in daily. I can't figure out why its doing this and whether its a cs error that I messed up on or not. Even anyone can please help me with this or have any ideas would be greatly appreciated! Here is my code behind this.

 

<td valign="top">

 

 

<telerik:RadGrid ID="rgdCurrency" runat="server" AutoGenerateColumns="False" DataSourceID="dsCurrencyHeader"

 

 

GridLines="None" Width="200px" OnItemDataBound="rgdCurrency_ItemDataBound" >

 

 

<MasterTableView DataSourceID="dsCurrencyHeader" AutoGenerateColumns="False" DataKeyNames="currencycd">

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="currencycd" HeaderText="Currency" SortExpression="currencycd"

 

 

UniqueName="currencycdFld">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn DataField="currencycd" UniqueName="ChartColumn" HeaderText="Exchange">

 

 

<ItemTemplate>

 

 

<telerik:RadChart ID="rdcCurrency" runat="server" AutoLayout="True" DataSourceID="dsCurrencyDetail"

 

 

DefaultType="Line" Height="25px" Width="50px" CreateImageMap="False" SeriesPalette="WebBlue">

 

 

<Series>

 

 

<telerik:ChartSeries Name="perDirhamExchAmt" DataYColumn="perDirhamExchAmt" Type="Line">

 

 

<Appearance>

 

 

<FillStyle MainColor="94, 117, 142" SecondColor="222, 245, 245">

 

 

</FillStyle>

 

 

<LabelAppearance Visible="False">

 

 

</LabelAppearance>

 

 

<Border Color="DimGray" />

 

 

</Appearance>

 

 

</telerik:ChartSeries>

 

 

</Series>

 

 

<PlotArea>

 

 

<XAxis IsZeroBased="False">

 

 

<Appearance MajorTick-Visible="False">

 

 

<MajorGridLines Color="DimGray" Visible="False" Width="0" />

 

 

<LabelAppearance Visible="False">

 

 

</LabelAppearance>

 

 

</Appearance>

 

 

<AxisLabel>

 

 

<TextBlock>

 

 

<Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">

 

 

</Appearance>

 

 

</TextBlock>

 

 

</AxisLabel>

 

 

</XAxis>

 

 

<YAxis IsZeroBased="False">

 

 

<Appearance MajorTick-Visible="False" MinorTick-Visible="False">

 

 

<MajorGridLines Color="DimGray" Visible="False" />

 

 

<LabelAppearance Visible="False">

 

 

</LabelAppearance>

 

 

</Appearance>

 

 

<AxisLabel>

 

 

<TextBlock>

 

 

<Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">

 

 

</Appearance>

 

 

</TextBlock>

 

 

</AxisLabel>

 

 

</YAxis>

 

 

<YAxis2>

 

 

<Appearance MajorTick-Visible="False" MinorTick-Visible="False">

 

 

<MinorGridLines Visible="False" />

 

 

<LabelAppearance Visible="False">

 

 

</LabelAppearance>

 

 

</Appearance>

 

 

<AxisLabel>

 

 

<TextBlock>

 

 

<Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">

 

 

</Appearance>

 

 

</TextBlock>

 

 

</AxisLabel>

 

 

</YAxis2>

 

 

<Appearance Corners="Round, Round, Round, Round, 6" SeriesPalette="WebBlue">

 

 

<FillStyle FillType="Solid" MainColor="White" SecondColor="White">

 

 

</FillStyle>

 

 

<Border Color="DimGray" Visible="False" />

 

 

</Appearance>

 

 

</PlotArea>

 

 

<ChartTitle Visible="False">

 

 

<Appearance Corners="Round, Round, Round, Round, 6" Dimensions-Margins="4%, 10px, 14px, 0%"

 

 

Position-AlignedPosition="Top" Visible="False">

 

 

<FillStyle GammaCorrection="False" MainColor="224, 224, 224">

 

 

</FillStyle>

 

 

<Border Color="DimGray" />

 

 

</Appearance>

 

 

<TextBlock>

 

 

<Appearance TextProperties-Font="Verdana, 11.25pt">

 

 

</Appearance>

 

 

</TextBlock>

 

 

</ChartTitle>

 

 

<Legend Visible="False">

 

 

<Appearance Visible="False">

 

 

<ItemTextAppearance TextProperties-Color="DimGray">

 

 

</ItemTextAppearance>

 

 

<Border Color="DimGray" />

 

 

</Appearance>

 

 

</Legend>

 

 

</telerik:RadChart>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

.cs

 

 

protected void rgdCurrency_ItemDataBound(object sender, GridItemEventArgs e)

 

{

 

if (e.Item is GridDataItem)

 

{

 

GridDataItem item = e.Item as GridDataItem;

 

 

RadChart chart = item["ChartColumn"].FindControl("rdcCurrency") as RadChart;

 

dsCurrencyDetail.SelectParameters[0].DefaultValue = item.GetDataKeyValue(

"currencycd").ToString();

 

chart.DataSource = dsCurrencyDetail.Select(

DataSourceSelectArguments.Empty);

 

chart.DataBind();

}

}

Radoslav
Telerik team
 answered on 23 Jun 2010
1 answer
162 views
My ASPX code:
<telerik:RadToolBar ID="mainToolBar" runat="server"  
                        Style="z-index: 90001" Width="100%" 
                        OnButtonClick="mainToolBar_ButtonClick"  
                        OnClientButtonClicked="OnClientButtonClicked"  
                        onitemcreated="mainToolBar_ItemCreated"> 
                        <Items> 
                            <telerik:RadToolBarButton ImageUrl="~/images/toolbar/New.gif" AccessKey="N" Text="<u>N</u>ew" 
                                ToolTip="New" Value="New"> 
                            </telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton IsSeparator="true" /> 
                            <telerik:RadToolBarButton ImageUrl="~/images/toolbar/print.gif" ToolTip="Print" CommandName="Print" 
                                Value="Print" /> 
                            <telerik:RadToolBarButton ImageUrl="~/images/toolbar/Excel.png" AccessKey="N" ToolTip="Excel" 
                                Value="ExportToExcel" PostBack="false"> 
                            </telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton IsSeparator="true" /> 
                            <telerik:RadToolBarButton ImageUrl="~/images/toolbar/Refresh.gif" ToolTip="Refresh" 
                                Value="Refresh" PostBack="false"/> 
                            <telerik:RadToolBarButton IsSeparator="true" /> 
                            <telerik:RadToolBarButton ImageUrl="~/images/toolbar/delete.gif" ToolTip="Delete" 
                                Value="Delete" PostBack="false" /> 
                                <telerik:RadToolBarButton Value="Search" > 
                                <ItemTemplate> 
                                 
                                </ItemTemplate> 
                                </telerik:RadToolBarButton> 
                        </Items> 
                    </telerik:RadToolBar> 


my CS code:
 protected void mainToolBar_ItemCreated(object sender, Telerik.Web.UI.RadToolBarEventArgs e) 
    { 
        throw new Exception("ItemCreated fired");  
        
    } 



Thanks in advance
Shinu
Top achievements
Rank 2
 answered on 23 Jun 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?