Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
1.1K+ views
I am using Telerik controls V2014.1.225.45 and am a newbie.

I am trying to update a TextBox that I have added as "hidden".  I am unsuccessful.  I've looked at most of the forums for help have not found how to correct this problem.

The text in the hidden text box is set to "a".  I am able to retrieve this value.  However, all variations of the set_text or set_value fail to change the value. 

Here is my Javascript code:

        <script type="text/javascript" id="Script1">
            //<![CDATA[

            function RadToolBar1_ButtonClicked(sender, args) {

                alert(args.get_item().get_level());
                if (args.get_item().get_level() == 1) {
                    alert(args.get_item().get_text());
                    var w = $find("<%= RadTextBox1.ClientID %>");
                    var wb = $get("<%= RadTextBox1.ClientID %>").value;
                    var wa = document.getElementById("<%= RadTextBox1.ClientID %>").style;
                    var x = $find("<%= RadPanelBar1.ClientID %>");
                    var x = document.getElementById("<%= RadPanelBar1.ClientID %>");
                    var y = document.getElementById("<%= RadPanelBar1.ClientID %>").style;
                    var y = document.getElementById("<%= RadPanelBar1.ClientID %>").style;
                    y.visibility = "hidden";
                    y.display = "none";
                    wa.display = "none";
                    wb.value = "hidden";
                    wb.set_value = "hidden";
                    w.set_textBoxValue = "hidden";
                    document.getElementById("<%= RadTextBox1.ClientID %>").set_textBoxValue = "hidden";
                    var v = document.getElementById("<%= RadTextBox1.ClientID %>").value;
                    alert(args.get_item().get_text());

            }

Marin Bratanov
Telerik team
 answered on 09 Apr 2014
4 answers
182 views

How these operations are translated in web.config file :

Set HTTP headers

  • Cache-Control: public, max-age=31536000

  • Expires - 1 year from the date of the request, if set dynamically. Far-future date (10 years) if set statically.

  • For all files in the Scripts/ajaxz folder: Content-Encoding: gzip

  • For .css files in the Skins/ajaxz folder: Content-Encoding: gzip

Eirik H
Top achievements
Rank 2
 answered on 09 Apr 2014
6 answers
154 views
Hello,

I have been using Telerik in Visual Studio Enterprise 2010 for over 2 years and just last week, just after the latest Windows patch, the Intellisense broke.  It only recognizes .Net framework objects and tags now.  I have Telerik defined in both Web.Config and the pages themselves but it just won't work.

Please help. 

Thank you.
Misho
Telerik team
 answered on 09 Apr 2014
5 answers
121 views
Hi all

After upgrading to the latest release I get the error "Telerik.Web.UI.RadAjaxLoadingPanel with ID='LoadingPanel1' was unable to find an embedded skin with the name 'Transparent'."

Was this skin eliminated from the release package?  If so, what options do I have since I am depend heavily on this skin all over the system. 

Thanks
Rumen
Telerik team
 answered on 09 Apr 2014
1 answer
143 views
I can see from the many threads suggesting to use PDFForge as a means of exporting the OrgChart to PDF, but is there any plans for incorporating that into a future version?  I ask because our requirements are to generate a PDF file programmatically (in bulk) from the generated org chart.
Peter Filipov
Telerik team
 answered on 09 Apr 2014
3 answers
202 views
Hello,

I am using the "Teleric C# Web Application" template for my project, and I am defining the skin in the web.config.

For 98% of my application, the theme arrangements of the skin are suitable.  I need to display a grid of normalized data of two related entities and the requirement is that the columns that represent the respective entities are different colors.  I need to set these values in two places ... on the web page and in the excel export.  I have some code samples below.

What I need is to be able to find some reference to a skin element (like the row color/alternate row color) and set these properties to the respective html color of that element to avoid the hard-coded values and not disconnect visual elements from the theme.

Thanks.

The grid cell background:

BasicGrid.Columns[0].ItemStyle.BackColor = System.Drawing.ColorTranslator.FromHtml("#ffffcc");


The excel table cells were more difficult to get to, but I this works for me:

protected void BasicGrid_ExcelExportCellFormatting(object sender, ExcelExportCellFormattingEventArgs e)
{
    if (e.Cell.UniqueID.Contains("ctl"))
    {
        TableCell cell = e.Cell as TableCell;
        int columnId = -1;
        String uniqueid = e.Cell.UniqueID.Split('$').Last();
        if (Int32.TryParse(uniqueid.Replace("ctl", ""), out columnId))
        {
            if (columnId <= this._midPoint + 1)
            {
                cell.Style["text-align"] = "left";
                cell.Style["background-color"] =  "#ffffcc";
                     //Needs to be the row color of the applied theme
            }
            else
            {
                cell.Style["text-align"] = "right";
                cell.Style["background-color"] = "#ccffcc";
                    //Needs to be the row alternate color of the applied theme
            }
        }
    }
}

Eyup
Telerik team
 answered on 09 Apr 2014
1 answer
122 views
We just ran into a problem with radwindows that we did not anticipate.  What happens is we design our programs for 22in wide screen monitors, but sometime personnel use thier labtop screen instead when not in office so what happens is the the radwindows pop up but are bigger then the screen they are on and they cannot get at the close buttons or some of the functionality of the window, beucase is was designed for a larger screen then they are working on.  How can we change this with regrad to Radwindow size so that an autoflow will come on if screen size is differrent then the default.



<telerik:RadWindowManager ID="rwManager" runat="server" Skin="Web20" Behaviors="Close" CssClass="rwWindowContent" style="z-index:30000" ShowContentDuringLoad="false" ReloadOnShow="true" VisibleStatusbar="false">
               <Windows>
                   <telerik:RadWindow ID="rwdelete" runat="server" NavigateUrl="~/MAC/Delete.aspx" Width="600px" Height="300px" OnClientClose="RefreshParentPage"></telerik:RadWindow>
                   <telerik:RadWindow ID="rwChange" runat="server" NavigateUrl="~/MAC/Change.aspx" Width="700px" Height="680px" OnClientClose="RefreshParentPage"></telerik:RadWindow>
                   <telerik:RadWindow ID="rwNew" runat="server" NavigateUrl="~/MAC/NewUser.aspx" Width="700px" Height="800px" OnClientClose="RefreshParentPage"></telerik:RadWindow>
                   <telerik:RadWindow ID="rwInfo" runat="server" Modal="true" NavigateUrl="Info.aspx" Width="1000px" Height="800px" OnClientClose="closeWindow"></telerik:RadWindow>
               </Windows>
           </telerik:RadWindowManager>
Shinu
Top achievements
Rank 2
 answered on 09 Apr 2014
1 answer
129 views
Hi,
I have DatePicker in my app.
When i fill the control with value "00.00.00" the control change automativ the value to "12/31/1998"
Telerik Demo

Best regards
moti
Vasil
Telerik team
 answered on 09 Apr 2014
1 answer
1.1K+ views
Hello,

I would like to use this control for a front page iamge gallery that would take the whole width of the screen. In other words, I would like to know how to stretch the image that may be smaller to truly take the full screen like here:

https://www.ndhsb.org/


Thank you!
Tom
Venelin
Telerik team
 answered on 09 Apr 2014
3 answers
83 views
Hello,

we recently updated from Q3/2013 to Q1/2014 and encountered a problem in the RibbonBar which only occurs if we use a port which is not 80 or 443.

This is what leads to this error:
- We use IIS Express with port 1028 and Chrome
- The RibbonBar contains several groups with icons, all large by default (but we also provide an 16x16 image url in case the window is too small for large icons)
- The problem occurs after a postback, not on initial page load.
- The error occurs for the first icon in every group in the active tab (e.g. 5 groups = five images).
- But all icons (even if the RibbonBar uses the 16x16 icons) are displayed correctly

The browser tries to load the 16x16 image with an url without port which leads to a 404 error. But the browser does this only for the first icon in every group in the visible tab. It seems the RibbonBar tries to compute something and uses the wrong url.

Here is an example for one icon (informations from Chrome network tab).
The complete url of the first call:
http://wks-0005:1028/speedUp/include/Standard/img/Commands/CommandBar/Button_16x16_Cut.png
Of the second call (note the missing port):
http://wks-0005/speedUp/include/Standard/img/Commands/CommandBar/Button_16x16_Cut.png



The javascript callstack of the first call:


The javascript callstack of the 404 call:


It seems something changed between Q3/2013 and Q1/2014. If I revert to Q3/2013 the problem is gone.

Regards,
JP
JP
Top achievements
Rank 1
 answered on 09 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?