Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
139 views
Hi,

I m using telerik rad grid control to populate the data's in parent and child tables structure. Both parent and child tables are dynamically popluated with different number of columns based on the input selection. The parent table is populating the values in all the times even number of output columns changed. But, the child tables are loaded correctly for the first timeonly. After that, we change the input field values and output for child table changed from the first time loading records, the child tables values are not refreshed. It shows the old records only. Thanks in advance.

Senthilraja. 
Eyup
Telerik team
 answered on 28 Aug 2014
2 answers
160 views
Hello,

I have created a webform (ASP.NET C#) named "SendEmails.aspx".

This webform has RadGrid named 'RadGrid1' and a button inside the Record Edit-Template area of RadGrid1 which, when clicked, sends out an email message to the email address typed in to the text box named 'txtEmail' which is also inside the template area of RadGrid1.

The email message's body text comes from the message typed in to the Telerik RAD editor named 'RadEditor1' placed inside the Edit-Template area of RadGrid1.

The email message's subject comes from the text typed into the text box named 'txtEmailSubject' which is also placed on the Edit-Template area of RadGrid1.

The code I'm using to send out the email when the button is clicked is shown below.

protected void Send_Confirmation_Email(object sender, EventArgs e)
        {
            MailMessage myMessage = new MailMessage();
 
 
            //The 4 lines of code shown below is for receiving the content stored in the RADEditor control 'RadEditor1'.
            //and stores in the string variable named 'content'.
            Button GetContent = (Button)sender;
            GridEditFormItem item = (GridEditFormItem)GetContent.NamingContainer;
            RadEditor radEditor = ((RadEditor)item.FindControl("RadEditor1"));
            string content = radEditor.Content;
 
 
            TextBox txtEmail = item.FindControl("txtEmail") as TextBox;
            TextBox txtFirstname = item.FindControl("txtFirstname") as TextBox;
            TextBox txtSurname = item.FindControl("txtSurname") as TextBox;
            TextBox txtEmailSubject = item.FindControl("txtEmailSubject") as TextBox;
 
            string EmailAddress = txtEmail.Text;
            string ToName = txtFirstname.Text + " " + txtSurname.Text;
            string EmailSubject = txtEmailSubject.Text;
 
            myMessage.Body = content;
            myMessage.From = new MailAddress("admin@mydomainname.com", "Support");
            myMessage.To.Add(new MailAddress(EmailAddress, ToName));
            myMessage.Subject = EmailSubject;
            //myMessage.Subject = "New email message subject";
            SmtpClient mySmtpClient = new SmtpClient();
            myMessage.IsBodyHtml = true;
            mySmtpClient.UseDefaultCredentials = true;
            mySmtpClient.Send(myMessage);
 
 
        }

When the button is clicked, the email message is sent out OK.

But, the strange thing is, the email message's subject line always shows the subject text that I have been using 3 days ago ("Confirmation Letter") and it doesn't show/use the text typed in to the 'txtEmailSubject' by the user where this email message should get it's subject line from. No matter whatever text I typed into the 'txtEmailSubject' text box, the email message always uses the text "Confirmation letter" as the subject of the email message. Even if I hard type the subject as "New email message subject" into the code shown above, the change isn't reflected.

Moreover, again, strangely, the email message's SENDER isn't admin@mydomainname.com that I have typed in to the code shown above, but the email message shows the sender is info@mydomainname.com that I have been using 3 days ago.How can this happen?Is this caused by ASP.NET or IIS caching? I have tried changing the SMTP server, deleting all caches for IE, Firefox, Chrome but didn't solve the problem at all.

But. the email message's body text shows the correct message typed into the Telerik Rad editor.

Please explain how to solve this problem.

Thank you.



ILJIMAE
Top achievements
Rank 1
 answered on 28 Aug 2014
5 answers
149 views
Hi,

How to open the drop down when mouse hovered as well as close it on mouse out?

Thank you,
Freddy.
Nencho
Telerik team
 answered on 28 Aug 2014
2 answers
94 views
Display confirm window when click on pagination button, means grid should display the pages according to confirm window result. for example we are in 1st page of grid if i click next button it has to show confirm window if press OK button it should move to next page otherwise it should stay on the current page only. 
suresh
Top achievements
Rank 1
 answered on 28 Aug 2014
1 answer
192 views
I have created a radgrid where the items are populated via a datatable. Whilst in edit mode i have created a dropdownlist of which is populated during the radgrid itemdatabound event.The dropdownlists on selectedindexchanged then populates textboxes according to what is selected, but my problem at the moment is that when the dropdown autopostbacks nothing happens as the dropdown is being repopulated again during postback. It isn't even getting to the SelectedIndexChanged fucntion.
How can I stop this from happening. hope this makes sense! here is some of the code being used. 

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles radgrid.ItemDataBound
        If TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode Then
            Dim item As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
            Dim ddl As DropDownList = DirectCast(item.FindControl("dropdown"), DropDownList)
            'Populate the dropdownlist 
            createDropDown(ddl)
        End If
    End Sub

Protected Sub ddl_OnSelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
        Dim ddl As DropDownList = DirectCast(sender, DropDownList)
        Dim item As GridEditableItem = DirectCast(ddl.NamingContainer, GridEditableItem)
        DimID As Integer = ddl.SelectedValue

        ''locate relevant textboxes
        Dim txtBox As TextBox = DirectCast(item.FindControl("txtBox"), TextBox)
      
        'Assign the data to relevant boxes
        Dim dt As DataTable = riskAssessment_BLL.getGenericData(ID)
        If dt.Rows.Count <> 0 Then
            For Each statement As DataRow In dt.Rows
                txtbox.Text = statement.Item("data").ToString()
            Next
        End If
        dt.Dispose()
    End Sub
 




K W
Top achievements
Rank 1
 answered on 28 Aug 2014
2 answers
39 views
Hi,

I am using RAD controls for ASP.NET Ajax Q3 2010 extensively in a web site and now i have a request to modify this web site to cater for mobile(smart phones).Mostly i would have to cater for selective Tabs/Phones.

I tried by putting viewport meta tag but the web pages are not responsive.
Following are some of the RAD controls used in web site

RadTabStrip
RadGrid
RadMultiPage
RadPageView

I would like to know what is the best way to redesign the existing telerik based web site to serve on mobile as well.

Thanks
Kishor.
karnam
Top achievements
Rank 1
 answered on 28 Aug 2014
1 answer
183 views
Hello,

I am working on a project with a RadGrid inside a RadMenu.

The RadGrid has the following settings:

AllowDragToGroup="True"
ShowGroupPanel="True"

When I drag a column to the Group panel, I cannot see the column while I drag it.
Only when I drag a column to the Group panel outside the RadGrid’s boundaries I can
see it. [see video]. 

How do I solve this?

Thank you,
Daniel.
Shinu
Top achievements
Rank 2
 answered on 28 Aug 2014
3 answers
122 views
Dear All,
I want to set the value of a text box when the user click "Add New Item".
I want to set the value in the new crated row.
Please advise how do i get a reference to the column/field that i need.
Eyup
Telerik team
 answered on 28 Aug 2014
1 answer
115 views
Hi Admin!
I have a textbox and a button to send value of textbox. I want validate value of textbox before do postback( Ajaxmanager) if textbox is empty, dopostback stop. But validate textbox empty, do postback alway continue .
Can you show me a method to stop dopostback telerik(RadAjaxManagerProxy)!
Princy
Top achievements
Rank 2
 answered on 28 Aug 2014
2 answers
74 views
Hi,

I am using telerik rad editor for sharepoint 2010.

I am getting this js error which prevents the publishing page to be saved and to add webpart. Please help to solve the issue

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; MS-RTC LM 8)
Timestamp: Wed, 27 Aug 2014 12:32:00 UTC


Message: Invalid argument.
Line: 10260
Char: 4
Code: 0
URI: http://intranet.contoso.com/ScriptResource.axd?d=xcDizi_jTekEhy3WzK_OYUBl_jjIxkLhHi-dKCl3eCJCxH_oyPkNdcpkiBSdU4b_LBEXgRX164nUrHzu5KJlPqA0lK-xfQhCV8h15hccdvxUAYGoyTGehES8cY7POsfC0&t=5cecbe11



Ianko
Telerik team
 answered on 28 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?