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
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!
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
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
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!!!
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:
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
>
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.
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