Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
69 views
inside  FormTemplate i have custom control with another radgrid. its not working. how do i ini events inside radgrid in custom control ?
Konstantin Dikov
Telerik team
 answered on 27 Sep 2013
1 answer
224 views
I am not sure that I totally understand the way that the radasyncupload control works. What I am trying to do is to have a page that lets users upload files, but there can be no postbacks at all on that page. Everything else that happens on the page uses ajax calls to an API on the server.
Is it possible to do what I am trying to do? I can see that the files are getting uploaded to the temp folder on the server, but the final part of the process where the uploaded event fires doesn't happen until a postback occurs.

Hristo Valyavicharski
Telerik team
 answered on 27 Sep 2013
2 answers
387 views
HI there! Pretty simple question and probably very simple answer, haha.

I have a combo box that has a couple of values in it (Invoice, Quote). I also have a label or two.

I'd like to set the labels to whatever the combobox is currently set to.

By default the box is set to Invoice, so the page would go something like:

Is this an invoice or a quote? [RadComboBox:Invoice]
Ok, this will be marked as [Label:Invoice].


If the user clicks the combobox and selects Quote, I would like the label to also change to Quote without having to submit anything, just change the label on the fly as the combo box changes.

I assume I would need to use the RadComboBox_DropDownClosing function? 
Garrett
Top achievements
Rank 1
 answered on 27 Sep 2013
1 answer
107 views
Hi have original HTML as below :
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
    {font-family:Calibri;
    panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
    {font-family:Tahoma;
    panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin:0in;
    margin-bottom:.0001pt;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
    {mso-style-priority:99;
    color:blue;
    text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
    {mso-style-priority:99;
    color:purple;
    text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
    {mso-style-priority:99;
    mso-style-link:"Balloon Text Char";
    margin:0in;
    margin-bottom:.0001pt;
    font-size:8.0pt;
    font-family:"Tahoma","sans-serif";}
span.EmailStyle17
    {mso-style-type:personal-compose;
    font-family:"Calibri","sans-serif";
    color:windowtext;}
span.BalloonTextChar
    {mso-style-name:"Balloon Text Char";
    mso-style-priority:99;
    mso-style-link:"Balloon Text";
    font-family:"Tahoma","sans-serif";}
.MsoChpDefault
    {mso-style-type:export-only;}
@page WordSection1
    {size:8.5in 11.0in;
    margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
    {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p><o:p>&nbsp;</o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p><b><span style="color:#CD7823">Gaurav Bhandari</span></b><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><br>
</span><b><span style="font-size:10.0pt">Deputy Manager - Ops</span></b><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">-
</span><span style="font-size:10.0pt;color:#4A442A">WNS Global Services (P) Ltd</span><span style="font-size:12.0pt">&nbsp;|
</span><u><span style="font-size:10.0pt"><a href="http://www.wns.com"><span style="color:blue">www.wns.com</span></a></span></u><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><o:p></o:p></span></p>
<p><span style="font-size:10.0pt;color:#4A442A">Weikfield Tower C, Weikfield IT City Info Park, Off Nagar Road, Viman Nagar</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">,&nbsp;</span><span style="font-size:10.0pt;color:#4A442A">Pune</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#4A442A">,</span><span style="font-size:10.0pt;color:#4A442A">Maharashtra</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#4A442A">,</span><span style="font-size:10.0pt;color:#4A442A">411014</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><o:p></o:p></span></p>
<p><span style="font-size:10.0pt;color:#4A442A">IP:</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#4A442A"> |
</span><span style="font-size:10.0pt;color:#4A442A">Direct:</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#4A442A">
</span><span style="font-size:10.0pt;color:#4A442A">9923202509</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#4A442A">|
</span><span style="font-size:10.0pt;color:#4A442A">Hand phone:</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#4A442A">
</span><span style="font-size:10.0pt;color:#4A442A">9923202509&nbsp;| Email:<u>Gaurav.Bhandari@wns.com</u></span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;<o:p></o:p></span></p>
<p><b><span style="font-size:16.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#984806">ONE WNS ONE GOAL</span></b><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp;
</span><b><span style="font-size:16.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#CD7823">OUTPERFORM</span></b><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><o:p></o:p></span></p>
<div align="center" style="text-align:center">
<hr size="2" width="100%" noshade="" style="color:#E36C09" align="center">
</div>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td style="padding:0in 0in 0in 0in">
<p><a href="https://www.facebook.com/wnsglobalservices"><span style="color:blue;text-decoration:none"><img border="0" width="21" height="23" id="IMG1" src="cid:image001.png@01CEB623.6D5C01E0" alt="cid:image19ee01.PNG@0db969a7.44afd17b"></span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</td>
<td style="padding:0in 0in 0in 0in">
<p><a href="http://twitter.com/wnsholdings"><span style="color:blue;text-decoration:none"><img border="0" width="21" height="23" id="Picture_x0020_3" src="cid:image002.png@01CEB623.6D5C01E0" alt="cid:imagebddcdb.PNG@8fbff749.4d8be41c"></span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</td>
<td style="padding:0in 0in 0in 0in">
<p><a href="http://www.linkedin.com/company/wns-global-services"><span style="color:blue;text-decoration:none"><img border="0" width="21" height="23" id="Picture_x0020_4" src="cid:image003.png@01CEB623.6D5C01E0" alt="cid:imagee03c1b.PNG@ea807698.418fb6b2"></span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</td>
<td style="padding:0in 0in 0in 0in">
<p><a href="http://www.youtube.com/wnsglobalservices"><span style="color:blue;text-decoration:none"><img border="0" width="22" height="24" id="Picture_x0020_5" src="cid:image004.png@01CEB623.6D5C01E0" alt="cid:imaged1e62e.PNG@5b275ca0.43a5d3cf"></span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</td>
<td style="padding:0in 0in 0in 0in">
<p><b><sup><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;
</span></sup></b><b><sup><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Connect with WNS &nbsp;</span></sup></b><span style="font-size:12.0pt"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p><o:p>&nbsp;</o:p></p>
<p><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>


i am appending above html with text as :

<br/> <hr size=2 width="100%" align=center tabindex=-1>  <br/>  <br/><span style='font-size:12px;font-family:Tahoma;'> <b> From: </b> &nbsp;Gaurav.Bhandari@wns.com <br/> <b>Sent</b>&nbsp;Friday, September 20, 2013 5:04:18 PM<br/> <b> To: </b> &nbsp;CSS-CA@wns.com <br/><b> CC: </b> &nbsp; <br/><b> Subject: </b> &nbsp;Search with created by</span> <br/><br/>


but when Radeditor loaded i am unable to see text which i appended to existing HTML ( mentioned Above)

unable to figure out what causing this issue.
Ianko
Telerik team
 answered on 27 Sep 2013
4 answers
558 views
I have RadGrid with DropDownlist. I am trying to find the value of each control by loop through using Javascript.  I am getting the findcontrol as 'null'. I have attached OnClientRatingSelectedIndexChanged in code behind for the dropdownlist 'Drop1'. What could be wrong? I appreciate any suggestions.

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" AlternatingItemStyle-HorizontalAlign="Left"
                               OnNeedDataSource="RadGrid1_NeedDataSource">
                                <MasterTableView DataKeyNames="level_id" PageSize="10">
                                    <Columns>
 <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Test"
                                            Visible="true">
                                            <ItemTemplate>
                                                <asp:Panel ID="Panel1" runat="server">
                                                    <asp:DropDownList ID="Drop1" runat="server"                                                                                                                                        AutoPostBack="true">
                                                    </asp:DropDownList>
                                                </asp:Panel>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                  </Columns>
</MasterTableView>
</telerik:RadGrid>

Javascript

function OnClientRatingSelectedIndexChanged(arg) {

        var grid = $find("<%=RadGrid1.ClientID %>");
        var MasterTable = grid.get_masterTableView();
        var Rows = MasterTable.get_dataItems();
        for (var i = 0; i < Rows.length; i++) {
            var row = Rows[i];
            var drop1 = row.findControl("Drop1");  
            var val1 = drop1.selectedValue;
        }   
Eyup
Telerik team
 answered on 27 Sep 2013
5 answers
344 views
HI,
using version 2013.2.717.40 with .NET4.0

I am exporting a RadGrid t PDF. How can i force an item to render its content on a single page. I do not want its content to split to 2 pages when it overflows.
does anyone know how to achieve this?

thanks
Kostadin
Telerik team
 answered on 27 Sep 2013
2 answers
162 views
I have a button defined inside a RadWindow content template that I want to run server code in ajax. The button is inside a RadAjaxPanel. when the server code is run, it could trigger a RadNotification, which is also on the page inside its own RadAjaxPanel.

It all seems to work sort of the first time it's run. The button is clicked and the notification is displayed if necessary. Then the user triggers the window again. I like that the textbox retains the previous value. But when the user clicks the button again, it performs a full page postback, instead of an ajax postback. There is nothing on the page that needs to refresh. Also, how do I keep the window open if the code is going to trigger a notification? Here is the code I'm using:
<telerik:RadWindow runat="server" ID="ForgotPasswordWindow" Modal="True" OpenerElementID="LinkButtonForgotPassword" Behaviors="Close" Title="Reset Password"
        Height="180px" VisibleStatusbar="False" Width="350px">
        <ContentTemplate>
            <telerik:RadAjaxPanel runat="server">
                <div style="margin: 10px;">
                    <p>If you already have an account and have forgotten your password, please enter the
                        email address for your account in the box provided below. A new password will be
                        emailed to this address.</p>
                    <div>
                        <telerik:RadTextBox runat="server" ID="emailAddress"></telerik:RadTextBox>
                        <telerik:RadButton runat="server" ID="ResetPasswordButton" Text="Submit" OnClick="ResetPassword_Submit"></telerik:RadButton>
                    </div>
                </div>
            </telerik:RadAjaxPanel>
        </ContentTemplate>
    </telerik:RadWindow>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
        <telerik:RadNotification runat="server" ID="Notifier" TitleIcon="none" ContentIcon="ok" KeepOnMouseOver="False"
            Animation="Fade" Position="Center" AutoCloseDelay="2000" ShowCloseButton="False" Height="90" Width="330"
            VisibleTitlebar="False" Skin="Silk">
        </telerik:RadNotification>
    </telerik:RadAjaxPanel>
if (Membership.GetUser(emailAddress.Text) == null)
{
   Notifier.ContentIcon = "warning";
   Notifier.Show("The system could not find a user with that email address.");
}
else
   ......


Rayne
Top achievements
Rank 1
 answered on 27 Sep 2013
3 answers
225 views
Hi All,

I have a Probelm.

On my ASPX Site I have an 
          RadAjaxManager 
          RadAjaxLoadingPanel
                    <telerik:RadAjaxLoadingPanel   
                        ID="RadAjaxLoadingPanel1"   
                         BackgroundPosition="Top" 
                        runat="server" 
                        IsSticky="true" 
                        Skin="Office2007" /> 
 
                    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
                        <ajaxsettings> 
                            <telerik:AjaxSetting AjaxControlID="FormView1">  
                                  
                                <updatedcontrols> 
                                    <telerik:AjaxUpdatedControl   
                                        ControlID="FormView1"   
                                        LoadingPanelID="RadAjaxLoadingPanel1" /> 
                                </updatedcontrols> 
                              
                            </telerik:AjaxSetting> 
                        </ajaxsettings> 
                    </telerik:RadAjaxManager> 

In the code behind I register some javascripts by setting RegisterStartupScript

            protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)  
            {  
 
                switch (e.CommandName)  
                {  
                    case "Cancel":  
                        //ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CancelEdit();", true);  
                        Page.ClientScript.RegisterStartupScript(this.GetType(), "alertScript""alert('test');"true);  
                        break;  
 
                    case "Update":  
                        ClientScript.RegisterStartupScript(Page.GetType(), "mykey""CloseAndRebind();"true);  
                        break;  
 
                    case "Insert":  
                        ClientScript.RegisterStartupScript(Page.GetType(), "mykey""CloseAndRebind('navigateToInserted');"true);  
                        break;  
 
                }  
 
            } 

But this script only fired if I remove the radajaxmanager.
What's wrong here?

And second. Is there a good example on how I use the ajaxmanger in combination with master and contentpages.


Thanks for help.
Maria Ilieva
Telerik team
 answered on 27 Sep 2013
2 answers
176 views
I have "auto generate edit column" off and instead added an "edit" button manually because I needed to set it to visible=false in some rows.  The event fires properly but when the grid goes into edit mode, the "update" and "cancel" links don't appear.  

I need to do either one of the following:

  1. Show the update and cancel buttons or 
  2. Use the auto generated edit column but need to know how to access the column.  I thought that I could access the button with item("EditCommandColumn").controls(0) but that isn't accessing the control.

Thanks.


Princy
Top achievements
Rank 2
 answered on 27 Sep 2013
3 answers
174 views
I am specifying DropDownAutoWidth="Enabled" on the RadComboBox and that works just fine; the dropdown list extends to the width of the longest item.

However, when I then select that item, the input area truncates it. Is it possible to get the width of the drop down list and use that to set the width of the combo box itself (prior to the page displaying)? I've tried retrieving the DropDownWidth in the DataBound event, but it appears to be zero. An alternative I've explored is using the method here to determine a width and then set both the DropDownWidth and the combo box's width to that value, but it seems cleaner to get the width the combo box determines itself if that's possible.
Nencho
Telerik team
 answered on 27 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?