Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
285 views
Hello All,

I want to open modal popup window from already opened modal popup window.

Let's say I have already opened popup window called "open.aspx". I have hyperlink on that page. When I click on that hyperlink it should open another popup window "AnotherOpen.aspx". When I tried this, it showed me an error "radopen is not defined". So I put 
<telerik:RadWindowManager> in head section of that "open.asp". When I run again, it said it needs 
<telerik:RadScriptManager> .
When I put RadScriptManager on the page. It gave me the error stating "The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases".

How can solve this problem?

Any help would be appreciated.

Thanks in advance.

Sincerely,
JJ
Marin Bratanov
Telerik team
 answered on 26 Jul 2011
5 answers
100 views
Hello.
I have a problem with caching embedded script.
So each time when request is being proccessed, WebResource.axd generated and did not take from cache.
I have several RadWindows and each time I open them embedded script is generated. How can i make static link to embedded script(not Telerik.Web.UI.WebResource.axd) that browser could cache it?
Marin Bratanov
Telerik team
 answered on 26 Jul 2011
3 answers
56 views
Hi,

I'm hoping this is a simple one, but I can't find an answer by searching.

I have a PanelBar with multiple items. However, instead of them all being URL links (RadPanelItem.NavigateURL), I want a few of them to handle OnClick events (each one of this type with it's own method) instead.

Is this possible? I know there's an ItemClick event on the RadPanelBar itself, but there doesn't seem to be one on the RadPanelItems.

Many thanks for any help that can be offered.
Ivan Zhekov
Telerik team
 answered on 26 Jul 2011
1 answer
91 views
  1. How do i change css on a check item using RadTreeNodeBinding
  2. also onnodecheck (postback) way to loop thru all checked items and will it include items checked as a result of CheckChildNodes being set

The data binds just fine pickup the is_closed column from the database

<td align="left" colspan="3">
                    <telerik:RadTreeView runat="server" ID="RadTreeView1" DataSourceID="SqlDataSource1"
                        DataFieldID="pk" DataFieldParentID="parent_pk" CheckBoxes="True"
                        CheckChildNodes="True" TriStateCheckBoxes="False"   
                        DataValueField="is_closed" onnodecheck="RadTreeView1_NodeCheck"   >
                        <DataBindings>
                            <telerik:RadTreeNodeBinding TextField="Description" Expanded="True" 
                                AllowDrag="False" AllowDrop="False"  
                                CheckedField="is_closed" AllowEdit="False"  />
                        </DataBindings>
                    </telerik:RadTreeView>
                </td>
Plamen
Telerik team
 answered on 26 Jul 2011
1 answer
73 views
telerik Hello friends would give me a help with this problem I have is that I have the paa RadMenu in them I have new, save, edit, modify, search, example

When I click the Save button checks if I have entered the relevant data if all data entry saves the save data but when I want to display a radwindows saying "successfully saved" as that radwindows designed it myself and call it a click of a button and when I call do not call it but if you click ago called when the other buttons I hope I can help



from already thank you very much here is my example I have developed

Here my example
Marin Bratanov
Telerik team
 answered on 26 Jul 2011
3 answers
212 views
I am trying to draw a line on a bar chart, and i tried the following code (with the marked zone):

 

 

Dim redZone As New ChartMarkedZone
           redZone.ValueStartY = 100
           redZone.ValueEndY = 100
           redZone.Appearance.Border.Color = Color.Red
           redZone.Appearance.Border.Width = 2
           RadChart2.PlotArea.MarkedZones.Add(redZone)

 

 

This did not work since the line stays behind the bars (Please see the attached). All i need a line over the bars. I was wondering if there is a solution for that. I am currently using 2011 Q1 version.

 



Thank you.

Peshito
Telerik team
 answered on 26 Jul 2011
3 answers
190 views
Dear Telerik Team,

I have a page with RadGrid control which has some bound columns and GridButton column which is for delete (having inner) item in grid. Open a popup when click on command item link button and it has a tabstrip which has three tabs. In third tab we have a grid which has to ask radconfirm on OnClient event when click on Generate command item Link button. If OK it has to fire event and do some operation. I tried with all the ways from the articles,forum and documentation source but i didn't. At last i tried with the below script which is working fine but i am unable to fire Delete in Grid.
<script language="javascript" type="text/javascript">   
        var oldConfirm = radconfirm;      
        window.radconfirm = function(text, mozEvent, oWidth, oHeight, callerObj, oTitle)      
        {      
            var ev = mozEvent ? mozEvent : window.event; //Moz support requires passing the event argument manually      
            //Cancel the event      
            ev.cancelBubble = true;      
            ev.returnValue = false;      
            if (ev.stopPropagation) ev.stopPropagation();      
            if (ev.preventDefault) ev.preventDefault();      
                  
            //Determine who is the caller      
            var callerObj = ev.srcElement ? ev.srcElement : ev.target;      
     
            //Call the original radconfirm and pass it all necessary parameters      
            if (callerObj)       
            {      
                //Show the confirm, then when it is closing, if returned value was true, automatically call the caller's click method again.      
                var callBackFn = function (arg)      
                {                 
                    if (arg)      
                    {                 
                        callerObj["onclick"] = "";                
                        if (callerObj.click) callerObj.click(); //Works fine every time in IE, but does not work for links in Moz      
                        else if (callerObj.tagName == "A") //We assume it is a link button!      
                        {                                                             
                            try     
                            {      
                                eval(callerObj.href)      
                            }      
                            catch(e){}      
                        }      
                    }      
                }      
  
                oldConfirm(text, callBackFn, oWidth, oHeight, callerObj, oTitle);    
            }      
            return false;      
        }     
    </script>  

Can you please go through this issue and give me a better solution.

Marin
Telerik team
 answered on 26 Jul 2011
1 answer
122 views
Hi! i have been trying to creat a non-stop rotator to the left. I was able to do it but when i change the values of frameduration or scrollduration other than 500 and 2000 respectevly the ortator stops at some point.

<telerik:RadRotator ID="RadRotator1" runat="server" Width="100%" ItemWidth="230"
                Height="71px" ItemHeight="69" ScrollDuration="1500" FrameDuration="0"
                PauseOnMouseOver="False"  ScrollDirection="Left" BorderColor="ControlDark" RotatorType="AutomaticAdvance">
            <Items>
                  <telerik:RadRotatorItem>
                        <ItemTemplate>
                            <asp:Image runat="server" ID="Image2" ImageUrl="img/logos/clientes/logo_advancecare.gif" 
                            CssClass="RotatorItem" AlternateText="Customer Image" />
                        </ItemTemplate>
                    </telerik:RadRotatorItem>
                   <telerik:RadRotatorItem>
                        <ItemTemplate>
                            <asp:Image runat="server" ID="Image2" ImageUrl="img/logos/clientes/logo_generali.gif" 
                            CssClass="RotatorItem" AlternateText="Customer Image" />
                        </ItemTemplate>
                    </telerik:RadRotatorItem
                   <telerik:RadRotatorItem>
                        <ItemTemplate>
                            <asp:Image runat="server" ID="Image2" ImageUrl="img/logos/clientes/logo_global.gif" 
                            CssClass="RotatorItem" AlternateText="Customer Image" />
                        </ItemTemplate>
                    </telerik:RadRotatorItem
                   <telerik:RadRotatorItem>
                        <ItemTemplate>
                            <asp:Image runat="server" ID="Image2" ImageUrl="img/logos/clientes/logo_josemata.gif" 
                            CssClass="RotatorItem" AlternateText="Customer Image" />
                        </ItemTemplate>
                    </telerik:RadRotatorItem
                   <telerik:RadRotatorItem>
                        <ItemTemplate>
                            <asp:Image runat="server" ID="Image2" ImageUrl="img/logos/clientes/logo_lusitania.gif" 
                            CssClass="RotatorItem" AlternateText="Customer Image" />
                        </ItemTemplate>
                    </telerik:RadRotatorItem
                   <telerik:RadRotatorItem>
                        <ItemTemplate>
                            <asp:Image runat="server" ID="Image2" ImageUrl="img/logos/clientes/logo_toga.gif" 
                            CssClass="RotatorItem" AlternateText="Customer Image" />
                        </ItemTemplate>
                    </telerik:RadRotatorItem>
                    <telerik:RadRotatorItem>
                        <ItemTemplate>
                            <asp:Image runat="server" ID="Image2" ImageUrl="img/logos/clientes/logo_vitoria.gif"
                            CssClass="RotatorItem" AlternateText="Customer Image" />
                        </ItemTemplate>
                    </telerik:RadRotatorItem
             </Items>
    </telerik:RadRotator>
Slav
Telerik team
 answered on 26 Jul 2011
1 answer
129 views
Hi To everyone,

I am developing a radWindow with a new Page that contains a RadMenu and I want to close it server side with a Button of the RadMenu.
If I use a Full Postback (without using the RadAjaxManager) it works, but when I put the control into the RadAjaxManager the window remains open.

Working Example:
[Javascript]
function GetRadWindow() {
          var oWindow = null;
          if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
          else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)
          return oWindow;
      }
[RadAjaxManager Empty]
<telerik:RadAjaxManagerProxy runat="server" ID="RadAjaxManagerProxy1">
          <AjaxSettings>
          </AjaxSettings>
      </telerik:RadAjaxManagerProxy>

[Server Side]
lblClose.Text = "<script type='text/javascript'>GetRadWindow().Close()</script>";

NB. All the controls is contained in a Panel named "pnlFull".
If I put the panelFull Events in the RadAjaxManager Control, the window will not disappear after the Click on the RadMenu.
Eg.:
<telerik:RadAjaxManagerProxy runat="server" ID="RadAjaxManagerProxy2">
         <AjaxSettings>
             <telerik:AjaxSetting AjaxControlID="pnlFull">
                 <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="pnlFull" LoadingPanelID="MasterLoadingPanelBig" />
                 </UpdatedControls>
             </telerik:AjaxSetting>
         </AjaxSettings>
     </telerik:RadAjaxManagerProxy>

Someone can help me????
Marin Bratanov
Telerik team
 answered on 26 Jul 2011
1 answer
43 views
Hi,
I'm using Rad Control ASP.NET and I've done some performance test with Opera and Internet Explorer 8.0.
I've one ASPX wich includes ASCX, my ascx are loaded in RadMultiPage control dinamically.

I'm using RadAjaxPanel and UpdatePanel to do Asyn request, and my page are very slow into IE, not in Opera.

I think that the problem is Internet Explorer.
Do you know any suggestion to resolve this problem?

I'm using RadAjaxManager, I tried to use also events client-side because I thought to leave in server-side only the rebind and the request to database, but it continues to be slow.

How I do to resolve this?

Every our customer uses Internet Explorer, we want be cross browser but we can't offer speed.

Thanks in advance
Dobromir
Telerik team
 answered on 26 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?