Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
109 views

We are having an issue with the Delete command firing in Chrome when using a Command Text.  I was able to duplicate this on your demo site.  

1) Go to the following link:  http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/manual-crud-operations/defaultcs.aspx

2) Delete a record in IE.  You will see it works fine.  The record disappears as expected.

3) Then do the same using Chrome.  The command text pops up as expected, but if you click OK nothing is deleted.

I can duplicate this at will and have uploaded a video demonstrating the issue: https://youtu.be/_-KmZWCE8x8

 

 

Kostadin
Telerik team
 answered on 05 Jul 2016
3 answers
436 views

Hello,

I'm using a RadTabStrip control and its OnTabClick event

It's working fine except for when the tab clicked is the active tab.

Then the event doesn't fire at all.

Is there a way to listen to a click event for an active tab ?

 

Thanks!

Ivan Danchev
Telerik team
 answered on 05 Jul 2016
3 answers
146 views

Hi, I have a RadImageGallery with DisplayAreaMode="LightBox".

It's possibile have an event when user click on "Scroll Next"?

Thanks in advanced.
Maria Ilieva
Telerik team
 answered on 05 Jul 2016
1 answer
450 views

I am using a stored procedure to get a DateTable of ID (int) start date and end date (both Date Time).  The columns are autogenerated.  I want both date time fields to have just the date.  I saw in the ItemDataBound to select the columns that have DateTime, but I do not see how to change the values to just date.  I am using C#

(if (col,DateType == typeof(DateTime))

{

    item(col.?

}

Thanks

Viktor Tachev
Telerik team
 answered on 05 Jul 2016
5 answers
95 views

Hi,

i managed to set the width of 1 html editor using this way in the C# code

txtDescription.Width = Unit.Pixel(480);
txtDescription.Height = Unit.Pixel(350);

but my page has about 20 editors and some editor are created dynamically via the asp:Repeater.

is there any way to set the height and width of all the editor like for example in ToolsFile.xml or config file?

i would prefer not to touch the editor ascx file as my web application just reference the dll and i do not have the ascx file

Marin Bratanov
Telerik team
 answered on 05 Jul 2016
1 answer
109 views

I am using telerik:RadGrid (drag and drop enabled) in my ASP.net project. All the features are working fine. However, the only problem is that if I move a row to only one row below of itself, system doesn't move the row anywhere!!! 

Thanks in advance!!!

Pavlina
Telerik team
 answered on 05 Jul 2016
0 answers
280 views

Problem: The scrollbars of RadWindow with NavigateUrl is lost in Chrome browser when the visibility of the window is toggled.

Details: The issue stems from a bug in Chrome browser ( Iframe scrollbars disappear when toggling visibility of the iframe element) that is related to scrollbars disappearing of an iframe element when its display attribute is set to "none" and then "". The issue can be seen in this video (http://screencast.com/t/KoBPnfk4ZcMK) and can be reproduced with no Telerik UI for ASP.NET AJAX controls:

HtmlPage.html:
        <script>
            function showIframe() {
                document.getElementById("iframe1").style.display = "";
            }
            function hideIframe() {
                document.getElementById("iframe1").style.display = "none";
            }
        </script>
        <input type="button" name="name" value="Show Iframe" onclick="showIframe(); return false;" />
        <input type="button" name="name" value="Hide Iframe" onclick="hideIframe(); return false;" />
        <iframe id="iframe1" src="HtmlPage2.html"></iframe>
HtmlPage2.html:
<body>
    <div style="border: 1px solid green; height: 1200px;">
    </div>
</body>


Solution
: You can choose either approach:

  • Set the ReloadOnShow property of the RadWindow to true.
  • Or use the following workaround to reset the iframe element dimensions:
function clientShow(sender, args) {
    if ($telerik.isChrome) {
        sender.get_contentFrame().style.width = "";
        setTimeout(function () {
            sender.get_contentFrame().style.width = "100%";
        }, 0);
    }
}
<telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="HtmlPage2.html" OnClientShow="clientShow"></telerik:RadWindow>

 

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 04 Jul 2016
1 answer
168 views

I have a rad grid and I am trying to export to word. I have few issue with it

1. I am able to export the grid and would like to add some extra content at the end of the document.  I have tried below code but the html is coming at the top of the document but I would like to get the content at the end of the document.

 

protected void alllGrid_Exporting(object sender, GridExportingArgs e)
    {
        if (e.ExportType == ExportType.Word)
        {
// this is for trying orientation landscape
            e.ExportOutput = e.ExportOutput.Replace("<body>", "<body><div class=WordSection1>");
            e.ExportOutput = e.ExportOutput.Replace("</body>", "</div></body>");
            string css = "<style> table @page{ mso-page-orientation:landscape;}</style>";
             
            StringBuilder pageBrk = new StringBuilder();
 
// this is for page break
            pageBrk.Append("<br clear='all' style='mso-special-character: line-break; page-break-before: always' />");
            pageBrk.Append(css);
 
// this actual html content which is rendering properly but at the top of the page
            var customHTML = AdHocFilterSummary().Append(pageBrk);
            e.ExportOutput = e.ExportOutput.Replace("<body>", "<body>" + customHTML);
        }
}

 

2. I am trying to do orientation as landscape but I am not able to make it work. I have used the below code given in one of the forums but couldn't make it work. Am I missing something here?

protected void alllGrid_HTMLExporting(object sender, GridHTMLExportingEventArgs e)
   {
        
       e.Styles.Append("th { text-align:center; font-color:green; }");
       if (Response.ContentType.Contains("excel"))
       {
           e.Styles.Append("<!--table @page { mso-page-orientation:landscape;} -->");
 
           e.XmlOptions = "<xml><x:ExcelWorkbook>" +
                           "<x:ExcelWorksheets><x:ExcelWorksheet><x:WorksheetOptions>" +
                           "<x:Print><x:ValidPrinterInfo/></x:Print>" +
                           "</x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets>" +
                           "</x:ExcelWorkbook></xml>";
       }
       else
       {
           e.Styles.Append("<!-- @page WordSection1 { size: 297mm 210mm; margin:1.0in 2.0in 1.0in 2.0in; }" +
                "div.WordSection1 {page:WordSection1;} -->");
       }
   }

 

 

 

 3. I am trying to get the same thing on excel too. No matter what i do, I am not getting anything on Excel. I am using ExcelML format. Is there any special way to do it?

 

Thanks.

Kostadin
Telerik team
 answered on 04 Jul 2016
2 answers
148 views

I have a scenario with radtooltipmanager on master which autottoltiptifies certain area.

Furthermore there is a Tooltipmanager on the page which takes care of tooltips in a Radgrid.

 

When combined something seems to go double, see attached screenshot.

What would be the best way to implement?

 

Marc

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 04 Jul 2016
0 answers
158 views

Hi All,

I am using RadHtmlChart (2015.3.930.45) in VS 2012.  There are four charts in that page. The first two charts are displayed perfect in Chrome and Firefox.  And the next two charts are displaying only in Chrome, not in Firefox and IE.  I am using code behind for data bind.

Attached some files for review.

(G 1.PNG, G 2.PNG, G 3.PNG, G 4.PNG taken from Chrome) 

(F 1.PNG, F 2.PNG, F 3.PNG, F 4.PNG taken from Firefox) 

 F 3.PNG, F 4.PNG are not displaying graph.  But displaying legend alone.

Most  urgent.

Thanks and Regards.

 

Wayne
Top achievements
Rank 1
 asked on 04 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?