Telerik Forums
UI for ASP.NET AJAX Forum
20 answers
1.3K+ views
Hello,

I use Radwindow to display notes. There are 4 text fields and 4 buttons to display specific note in radwindow. Everything works fine until I change notes and open popup RadWindow to display saved note. RadWindow shows the old note. So i need to refresh window every time.

So, I have a problem to refresh RadWindow every time it opens. I can not use property ReloadOnShow, because I pass query parameters and telerik adds his own parameters at the end and it leads to error when I try to get query patameters throught Reqest["parameterName"]. I event tried to destroy window every time it closes, but no effect. Then I tried to create new radWindow(throught javascript) every time it opens and destroy after close, but somehow the data is still not refreshed. Then I desided to reload window every time it opens using radWindow.Reload(), but it led me to unexpected effect. I even disabled viewstate and again no effect.

What is the best practice to open radWindow and refresh everytime it opens?
Satish
Top achievements
Rank 1
 answered on 05 Jul 2016
1 answer
79 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
364 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
93 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
396 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
63 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
81 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
205 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
107 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
90 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?