Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
140 views
I have un RadComboBox in DetailTables of the RadGrid. I would like to find the items where the event fired.

Thanks,
Ines
Inessa Parfjonova
Top achievements
Rank 1
 answered on 23 Feb 2010
1 answer
99 views

In my case I don't use loading panel for AJAX requests. I use it as loading image animation. From client code I update img->src and show loading panel as it is described here:
http://www.telerik.com/help/aspnet-ajax/ajxshowhideloadingpanel.html
The only difference that I use it out ajax request.
After image is loaded (onload event) I hide panel.

It is displayed correctly if InitialDelayTime is set to 0. And doesn't being displayed at all if InitialDelayTime is not 0.
Regarding my investigation it happens by design.
Please confirm that I'm right.

Thank you.

PS: if you know more rational way to show loading animation while getting big images, please share it here :)

Dimo
Telerik team
 answered on 23 Feb 2010
3 answers
138 views


Hi all,

I was attempting to add an additional item to a radpanel dropdown using this method.  After getting a Telerik not define javascript error, I found docs relating to Add/Remove RadControls to the Global Assembly Cache - indeed it references the Telerik.Web.UI. assembly which I should be able to find in a bin folder - but it is not there.  There are plenty of Telerik references in my solution, but they are there to support what is going on, not this thing I want to do. 

Do I have a different version (not sure how to determine this) than what would be appropriate with this method? 

Do I need to find which developer committed the assemblies to my solution and get the Telerik.Web.UI one?

All the methods and docs in the Telerik site seem reasonable and straight forward, I am guessing I just need to either install locally or get the dll from the other developer and add it to my solution.

Can someone help me get started?

Thanks!

Troy


function AddNewItem()
{   
 var panelbar = $find("<%= RadPanelBar1.ClientID %>");
 var panelItem
= new Telerik.Web.UI.RadPanelItem();
 panelItem.set_text(
"New Item");
 panelbar.trackChanges();
 panelbar.get_items().add(panelItem);
 panelbar.commitChanges();        
}

Peter
Telerik team
 answered on 23 Feb 2010
1 answer
115 views
I'm trying to use a rad window as an input form to add and update categories. I'm using the new Content Template to define my form instead of loading an external page.

The following is what I'm trying to achieve:

  • 100% Ajax - No flickering
  • Ability to retrieve the value of a textbox via server side code
  • Ability to close the window after saving or canceling
  • Ability to reopen window to add / edit additional data after closing window
  • Ability to set the value of a textbox in the form when editing

Currently the following works:

  • Retrieve the value of a textbox via server side code
  • Can close the window if content template does not contain a Rad Ajax Panel. (Rad Ajax Panel is the only way I have found to  prevent screen flicker when clicking Save / Cancel buttons)
  • If window is closed, clicking button to reopen it does not work

Any advice, help, sample code would be appreciated.

Thanks,

Lonnie

 



Svetlina Anati
Telerik team
 answered on 23 Feb 2010
1 answer
169 views
Hi,

I've created a custom toolbar button wich paste a vertical buttonlist in the editor. the buttonlist in nested in a 3x3 table. After pasting it i want to select the table by using the setActive() method. This is not working. Is it possible to get it work.
editor.pasteHtml(verticalRadioBuutonListAsHtml, commandName);  
var insertedElem = editor.get_document().getElementById(id);  
if (insertedElem) {  
        if (insertedElem.setActive) {  
            insertedElem.setActive();  
        }  
    } 
Other elements do work this way.

Gerco
Dobromir
Telerik team
 answered on 23 Feb 2010
9 answers
1.0K+ views
Hello,
I am using the licenced copy of the MOSS RAD Editor webpart. By default it shows the font size from 1 to 7. We would like to give font size start from 10 to 14 like the word. Please let me know how to do this. I tried by giving the font size on the tools file but its not working.

Regards,
Sudeep
Stanimir
Telerik team
 answered on 23 Feb 2010
1 answer
110 views
Hi all... I am trying to paint borders on marked zones, and leave the fills empty, to basically just show the threshold borders (max and min) for my series.

I am creating the marked zones programatically, and it is shading my graph, but it won't paint the borders, and I can't tell what I'm doing wrong. Here is my code:

        With chart.PlotArea 
            .MarkedZones.Clear() 
            Dim mz As TC.ChartMarkedZone 
            For Each dr As DataRow In Thresholds.Rows 
                mz = New TC.ChartMarkedZone(CStr(dr("NAME"))) 
                With mz 
                    .ValueStartY = dr.NullOf("MINVAL", min) 
                    .ValueEndY = dr.NullOf("MAXVAL", max) 
 
                    .Appearance.Border.Width = 2 
                    .Appearance.Border.Color = Drawing.Color.Red 
                    .Appearance.Border.PenStyle = Drawing.Drawing2D.DashStyle.Solid 
                    .Appearance.Border.Visible = True 
 
                    .Label.TextBlock.Text = .Name 
                    .Label.TextBlock.Visible = True 
 
                    .Visible = True 
                End With 
                .MarkedZones.Add(mz) 
            Next 
        End With 

And here is a the image that is being rendered. As you can see, it is adding the zones, and adding the labels, but it is refusing to paint the borders. (Ultimately they'd have different colors, but just all Red for now for testing.

generated output image

I am using version 2009.03.1208.35.
Ves
Telerik team
 answered on 23 Feb 2010
7 answers
259 views

[UPDATE]  I have attached an image highlighting the error.

THanks.

[Original message below] 

I am using the Inline Edit Mode of the radgrid.  When I enter Edit mode, the images for the control cannot be located.  For example, when I click the "Add New Record" link,  the "BreakStartTime" control displays "Open the time view popup" instead of showing the image for the time picker. 

Here is a code snippet:

<MasterTableView DataKeyNames="SchedNbr" HierarchyLoadMode="ServerOnDemand" Name="MainList"     
Width="95%" CommandItemDisplay="Bottom" InsertItemDisplay="Top" EditMode="InPlace"     
EditItemStyle-BackColor="BurlyWood">     
<Columns>    
    <telerik:GridBoundColumn UniqueName="Descript" SortExpression="Descript" HeaderText="<% $Resources:PageControls, Description %>" DataField="Descript" MaxLength="60" />     
    <telerik:GridNumericColumn UniqueName="BreakDuration" SortExpression="Duration" HeaderText="<% $Resources:PageControls, Duration %>" DataField="BreakDuration" NumericType="Number" MaxLength="3" />   
    <telerik:GridDateTimeColumn PickerType="TimePicker" UniqueName="BreakStartTime" HeaderText="<% $Resources:PageControls, StartTime %>" DataField="BreakStartTime" DataFormatString="{0:t}" />   
    <telerik:GridDateTimeColumn PickerType="TimePicker" UniqueName="BreakEndTime" HeaderText="<% $Resources:PageControls, EndTime %>" DataField="BreakEndTime" DataFormatString="{0:t}" />     
    <telerik:GridEditCommandColumn UpdateText="Update" UniqueName="EditCommandColumn"    
ButtonType="ImageButton" EditImageUrl="~/Images/icon_edit_16.png" CancelImageUrl="~/Images/icon_cancel_filter.png"    
InsertImageUrl="~/Images/icon_add_16.png">     
<HeaderStyle></HeaderStyle>    
</telerik:GridEditCommandColumn>   
    <telerik:GridButtonColumn CommandName="Delete" UniqueName="DeleteColumn" ButtonType="ImageButton" mageUrl="~/Images/icon_remove_16.png" />   
</Columns>   
<CommandItemSettings AddNewRecordText="Add new record" AddNewRecordImageUrl="~/Images/icon_add_16.png" />   
</MasterTableView> 

Any thoughts of what I can look for?

Thanks.
Steve

Pavlina
Telerik team
 answered on 23 Feb 2010
1 answer
123 views
Hello Telerik-Team,

in my RadGrid I need to link to an new page where i I can see and edit more information about the client.

But I don't want to transfer the Customer ID in the Querrystring!

Waht is th best way to do this?  GridHyperLinkColumn or GridButtonColumn ?

Are there example how to do this?

Thanks

Christian

 
Yavor
Telerik team
 answered on 23 Feb 2010
3 answers
525 views
Hello!

I have a very simple example below but am getting confusing results.  I was hoping that somebody could help me understand what is happening and how to get the desired results.

I have a RadAjaxManager configured so that an ASP.NET Button's click event updates a div (containing a label), with a corresponding RadAjaxLoadingPanel.

The button's server side click event looks like this:

protected void Button1_Click(object sender, EventArgs e) {  
 
     // Increment number in Label1  
     int i = Int32.Parse(Label1.Text);  
     Label1.Text = (i + 1).ToString();  
 
     // Sleep 5 seconds to simulate latency  
     Thread.Sleep(5000);  
 
} 

Currently I have the RadAjaxManager's 'RequestQueueSize' property set to 0, the default.  I want to keep it this way so that if a 2nd request occurs before the 1st request's response returns, that 1st request will be cancelled and the 2nd request will be sent.

This is occuring, however, when you click the button twice within that five second wait, two undesrable things happen that I would not have expected to happen.

  1. The loading panel disappears on the 2nd click, even though the 2nd request is still processing.  I would like it to stay until the response from the 2nd click returns so that the user knows their 2nd request is still processing.  I have even tried forcing this behavior myself using the RadAjaxManager's 'OnRequestStart' and 'OnResponseEnd' client events (with the help of Telerik documentation) but was not able to get the loading panel to remain for both clicks within the 5 seconds.  Question: How can I get the loading panel to stay until the 2nd request's response returns?  Do I have something configured wrong? Note: I did notice that if I increase the RadAjaxManager's 'RequestQueueSize' that a loading panel remains until the last request's response returns, but unfortunately I need the RequestQueueSize set to 0.
  2. I notice that the order of events for the RadAjaxManager is slightly confusing.  I have some client-script that writes out to the screen every time the 'OnRequestStart' and 'OnResponseEnd' events get fired.  When I click the button twice within the five second wait, I see that these events get called in the following order:

 

    • OnRequestStart
    • OnRequestStart
    • OnResponseEnd
    • OnResponseEnd
    • OnResponseEnd

    Question: Why does the OnResponseEnd get called three times?  Note: if you continue to click the button more than twice, the 'OnResponseEnd' event gets called even more times.

Here is my aspx markup.  The javascript just writes which events were fired into a div at the bottom of the screen.  The two styles are included to better display what is happening.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
<%@ Register TagPrefix="Telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
    <title></title>  
 
    <script type="text/javascript">  
 
        function WriteClientEvents(text) {  
 
            var div = $get("DivClientEvents");  
            div.outerHTML = text + "<br>" + div.outerHTML;  
 
        }  
 
        function AjaxRequestStart(sender, args) {  
 
            WriteClientEvents("Request");  
 
        }  
 
        function AjaxResponseEnd(sender, args) {  
 
            WriteClientEvents("Response");  
 
        }  
             
    </script> 
 
    <style type="text/css">  
         
        .loading  
        {  
            border: solid 1px black;  
            background-color: #fff;  
            height: 100px;  
            width: 200px;  
        }  
          
        #DivTimesClicked   
        {  
            border: solid 1px black;   
            height: 300px;  
            width: 300px;  
        }  
        
    </style> 
      
</head> 
<body> 
    <form id="form1" runat="server">  
   
        <Telerik:RadScriptManager ID="rsm1" runat="server">  
        </Telerik:RadScriptManager> 
          
        <Telerik:RadAjaxManager   
            ID="ram1"   
            runat="server"   
            RequestQueueSize="0"   
        > 
            <ClientEvents OnRequestStart="AjaxRequestStart" OnResponseEnd="AjaxResponseEnd">  
            </ClientEvents> 
            <AjaxSettings> 
                <Telerik:AjaxSetting AjaxControlID="Button1" EventName="Button1_Click">  
                    <UpdatedControls> 
                        <Telerik:AjaxUpdatedControl ControlID="DivTimesClicked" LoadingPanelID="LoadingPanel1" /> 
                    </UpdatedControls> 
                </Telerik:AjaxSetting> 
            </AjaxSettings> 
        </Telerik:RadAjaxManager> 
          
        <br /><br /> 
          
        <Telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Skin="" Transparency="30" BackgroundPosition="Center">  
            Loading...  
        </Telerik:RadAjaxLoadingPanel> 
          
        <asp:Button ID="Button1" runat="server" Text="Increment Times Clicked" OnClick="Button1_Click" /> 
          
        <br /><br /> 
          
        <div id="DivTimesClicked" runat="server">  
            Times Clicked:  
            <asp:Label ID="Label1" runat="server" Text="0"></asp:Label> 
        </div> 
          
        <br /><br /> 
          
        <h2>RadAjaxManager Client Events...</h2> 
        <hr /> 
        <div id="DivClientEvents">  
        </div> 
 
    </form> 
</body> 
</html> 

I look forward to understanding what is happening here.  Thank you for your help!
--Jason

Iana Tsolova
Telerik team
 answered on 23 Feb 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?