Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views
please what are some of the webhosting sites that support telerik tools. thank you
moegal
Top achievements
Rank 1
 answered on 28 Sep 2013
6 answers
744 views
when i try to use update like "http://www.telerik.com/help/aspnet-ajax/grid-insert-update-delete-at-database-level.html"

that is my code
GridEditableItem editedItem = (GridEditableItem)e.Item;
    
        string brand_ups = (editedItem["brand_ups"].Controls[0] as TextBox).Text; --> bring rad grid value not new value in textbox
        string HBL_num = (editedItem["HBL_num"].Controls[0] as TextBox).Text; --> bring rad grid value not new value in textbox
        string HBL_Status = (editedItem["HBL_Status"].Controls[0] as TextBox).Text; --> bring rad grid value not new value in textbox
        int shipment_id = Convert.ToInt32(Shipid.SelectedValue);
        try
        {
            SqlCommand updatehbl = new SqlCommand("*********", *********);
            updatehbl.CommandType = CommandType.StoredProcedure;
            connection.Open();
            updatehbl.Parameters.Add("@shipment_ID", SqlDbType.Int).Value = shipment_id;
            updatehbl.Parameters.Add("@brand_ups", SqlDbType.NVarChar, 20).Value = brand_ups;
            updatehbl.Parameters.Add("@HBL_num", SqlDbType.NVarChar, 20).Value = HBL_num;
            updatehbl.Parameters.Add("@HBL_Status", SqlDbType.NVarChar, 30).Value = HBL_Status;
            updatehbl.ExecuteNonQuery();
            connection.Close();
            }

any advice will pleasure me
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Sep 2013
2 answers
662 views
Hi to all,

I have a radgrid, rad textbox and 2 radbutton(next and prev)

my scenario is the radgrid are populated with data and set the property of "single row selection on client"

ex.
filename
apple  
Cherry.
tuna    
dog
bottle

when the user select the 2nd row of radgrid and click the radbutton "next", the value of 3rd row will pass to the radtextbox and automatically the 3rd row will be selected and highlighted.
if the user click the radbutton "Prev" , the value of 1st row will pass to the radtextbox and automatically the 1st row will be selected and highlighted.


*Note: if there's "NO" selected row and click the next button the first row must be the return value and automatically the first row will be selected and highlighted. if it reached the end of the record it will just prompt message "end"

and vise versa of previous button.


I want to solve this via JavaScript....

please help
huejiitech
Top achievements
Rank 1
 answered on 28 Sep 2013
1 answer
98 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
274 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
451 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
136 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
645 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
410 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
219 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?