Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
302 views
I use RadGrid contorls , it include a BoundColumn. I set DataFormatString="{0:C}", GridColumn Show is "$10.00", I use RadDataItem["money"].text get value "$10.00",Data origin value is "10", I want get value "10",why do?
Shinu
Top achievements
Rank 2
 answered on 04 Mar 2013
3 answers
141 views
We are running WebForms and MVC apps side by side (in one project) and have RadCompression enablePostbackCompression enabled. This causes a problem in our MVC app, whenever a request returns 500 status code.

The easiest way to reproduce this is to enable postback compression, decorate an action with a HandleError attribute (which returns 500 in case of an unhandled exception), turn custom errors on and throw an exception inside the action. The expected result would be to be redirected to the error page. Instead, we get an encoding error because RadCompression module appends "gzip" to Content-encoding header without checking whether it was already appended, resulting in "Content-encoding: gzip,gzip".

What are my options besides turning off postback compression altogether? Ideally, I'd want to use RadCompressionSettingsAttribute to disable compression for a given action or controller but that hasn't worked. Any thoughts?
Martin
Telerik team
 answered on 04 Mar 2013
5 answers
278 views
could u pls tell me why the raddatepicker control sometime display "Open Calendar Popup" text instead of displaying calendar image.
Herewith i've attached the modal raddatepicker control showing "Open Calendar Popup" text. Pls help me to solve this issue.
Peter
Top achievements
Rank 1
 answered on 04 Mar 2013
2 answers
193 views
Hi

Will my stuff (that uses telerik componentes) developed in .net 4.0  continue working, if I migrate the project to .net framework 4.5?

and the ajax, and the other componentes (grids, etc) I use?

Thanks!
Princy
Top achievements
Rank 2
 answered on 04 Mar 2013
3 answers
246 views
I have a page that opens multiple RadWIndows that contain different RadGrids. My RadGrid is created in codebehind and has static headers and scrolling turned on. Right now if I open the window the grid is not as tall as the window. I need to find a way to have the grid have it's height adjusted to the RadWindow height when opened and on re-sizing of the window. The issue I think keeping me from finding a solution has been that the grid is in a second page pulled into the RadWindow. It's all within the same website, so there should be no XSS issues, but I cannot seem to access the parent RadWindow's controls to get a height, nor can I access the grid from the page that opens the RadWindows.

I'd love to post code, but this site is large and complicated so it's not a single page to post. Hopefully someone can help point me in the right direction. 
Antonio Stoilkov
Telerik team
 answered on 04 Mar 2013
1 answer
308 views
protected void RadGrid1_ItemUpdated(object sender, GridUpdatedEventArgs e)
        {
            if (Label19.Text != null && Label18.Text != null)
            {
                System.Net.Mail.MailMessage msgMail = new System.Net.Mail.MailMessage();
 
                msgMail.Body = (" Dear  ") + "<br/>" + "<br/>" + (" Kindly Be Noted That There Is a New Request Has Been Add From : ") + Label19.Text + "<br/>" + "<br/>" + ("Kindly Check  ");
 
                msgMail.From = new MailAddress("");
 
                msgMail.To.Add(DropDownList5.SelectedItem.Attributes.ToString());
 
                msgMail.CC.Add("");
 
                msgMail.Subject = (" Your Request Had Been :  ") + Label18.Text;
 
                msgMail.IsBodyHtml = true;
 
                SmtpClient smtp = new SmtpClient("");
 
                smtp.UseDefaultCredentials = false;
 
                NetworkCredential crdntl = new NetworkCredential("");
 
                smtp.Credentials = crdntl;
 
                smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
 
                smtp.Send(msgMail);
 
            }

Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Mar 2013
16 answers
784 views
Hi there,

I am wondering if it is possible to perform an AJAX postback to the server when the user changes the month or year on the calendar popup?  Please see screenshot.

Thanks
John
Peter
Top achievements
Rank 1
 answered on 04 Mar 2013
2 answers
242 views
When a user closes the RadWindow I need to refresh the grid on the page where the RadWindow was opened to reflect the changes the user made in the RadWindow.  How do I do that?
Princy
Top achievements
Rank 2
 answered on 04 Mar 2013
3 answers
378 views
I have a radgrid and a user has made a choice in a radcombobox in a row.  I have then set the row selected to true (in javascript) and I also have reference to the rows index (if needed).  Anyway,  now I need to change a asp:image control and a asp:label controls values based on the combobox choice...

I was trying something like this (see script below) but it continues to return null... I would like to leverage the fact that I have the row set as selected if that would help actually find the image control

function getControl(rowIndex) {
var masterTable = $find("<%=RadGridAudits.ClientID%>").get_masterTableView();
var imageState = masterTable.get_dataItems()[rowIndex].findControl('ImageState');
// change the img to another image at this point...
 }

Here is the GridTemplageColumn:
<telerik:GridTemplateColumn DataField="TagAuditState" HeaderText="Audit State" SortExpression="TagAuditState"
                     UniqueName="TagAuditState">
                     <ItemTemplate>
                         <asp:Image ID="ImageState" runat="server" />
                         <asp:Label ID="LabelTagAuditState" runat="server" SkinID="EditForms" Text='<%# Eval("TagAuditState") %>' />
                     </ItemTemplate>
                 </telerik:GridTemplateColumn>
Shinu
Top achievements
Rank 2
 answered on 04 Mar 2013
2 answers
166 views
Hi,

I have a  radgrid in an user conrol, every time when the grid is in edit mode, the GridHTMLEditorColumn is rendered not correctly in Chrome, trigger the edit mode again (by clicking on Add New or Edit button), then it looks OK. the below is the screen shot.

I am using .Net framework 3.5, Rad Control version is 2012.1.411.35.

Thanks in advance,

Jason
Neil N
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 02 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?