Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
testing
Marin Bratanov
Telerik team
 answered on 19 Jun 2014
1 answer
199 views
Hi,

I am using radscheduler and at one point in the application I have to convert a time which is coming in timezone of -7:00 to EST considering the daylight savings. I am converting using as below:

string timestr="";
timestr = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(test.time.Value.ToUniversalTime(), "Eastern Standard Time").ToString("hh:mm:ss");
I checked IsDayLightSaving(the test.time.value) and its value is true.
This is giving an additional 1 hour in the timestr variable. e.g. if test.time value is 07:06:47 AM (timezone of -7:00) is passed in above statement then after conversion it becomes 09:06:47 AM which is wrong as the result should come as 08:06:47AM

Please help me so that i can have the result as 08:06:47AM and don't want to subtract 1 hours based on booleanvalue of IsDaylightSaving method. Is there any other way I can calculate the correct value for daylightsaving time and non daylightsaving time in one go.
Boyan Dimitrov
Telerik team
 answered on 19 Jun 2014
3 answers
129 views
The text states that the incorrect word is highlighted in yellow, but it is highlighted in blue (see attached).  How can I change either the wording or highlighting so they match.  Thanks.
Ianko
Telerik team
 answered on 19 Jun 2014
3 answers
165 views
This is the skeleton of a template we have to use. In Firefox and IE it's not causing any problems. But there is major slowdown when it's in Chrome. Outside of the editor as it's own html file it has no problems. Just when it's in the Telerik Editor

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    </head>
    <body>
        <table width="600" cellspacing="0" cellpadding="0" border="0" align="center">
            <tbody>
                <tr>
                    <td>
                    <table width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                            <tr>
                                <td>
                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                    <tbody>
                                        <tr>
                                            <td valign="top">
                                            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                                <tbody>
                                                    <tr>
                                                        <td valign="top">
                                                        <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td valign="top" style="background-color: #616265;">
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                    <table width="100%" cellspacing="20" cellpadding="0" border="0">
                                                                        <tbody>
                                                                            <tr>
                                                                                <td>
                                                                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                                                                    <tbody>
                                                                                    </tbody>
                                                                                </table>
                                                                                </td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="background-color: #616265;">
                                                                    <table width="100%" cellspacing="20" cellpadding="0" border="0">
                                                                        <tbody>
                                                                            <tr>
                                                                                <td>
                                                                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                                                                </table>
                                                                                </td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 556px; background-color: #bdbdbd;"><br />
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                            </td>
                                            <td style="width: 22px; background-color: #bdbdbd;"><br />
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <br />
        <br />
    </body>
</html>
Ianko
Telerik team
 answered on 19 Jun 2014
1 answer
79 views
Hello,
I've set a Timer that refresh my RadGrid every 10 seconds. RadGrid is added to RadAjaxManager list. It all works well on start. Unfortunately after few hours (approx. 5h) RadGrid on IE is not refreshing anymore. I get errors from JS console (attached). Another time IE gave me a 80020101 error as well.

I have to add that on Google Chrome everything is running nicely even for more than 24 hours. 

Can you give some clue to resolve that problem? 
Maria Ilieva
Telerik team
 answered on 19 Jun 2014
2 answers
202 views
Hi there,

Is it possible to add a RadProgressArea column inside a RadGrid? I want to show the progress dynamically calculated from the backend for each row of the grid. Cannot find any example showing this feature. Any help is much appreciated. Thanks in advance.

Regards,
Meng
Meng
Top achievements
Rank 1
 answered on 19 Jun 2014
3 answers
265 views
Hi All,

I have this function in C# that I use in windows forms which allws me to get the width of the treeview:

private static int GetNodeBounds(TreeNodeCollection nodes)
{
int w = 0;
foreach (TreeNode node in nodes)
{
w = Math.Max(w, node.Bounds.Right);
if (node.Nodes.Count > 0)
w = Math.Max(w, GetNodeBounds(node.Nodes));
}
return w;
}


I'm looking for something similiar in javascript.  Essentially what I'm trying to do is find the width of the tree view based on the displayed nodes so that I can resize the splitter.

Any suggestions?


function ClientNodeExpand(sender, eventArgs) {

}


<telerik:RadPageView runat="server" ID="tabBMR" Width="100%">
<telerik:RadSplitter runat="server" ID="splitter" Orientation="Vertical" Width="100%">
<telerik:RadPane runat="server" ID="RadPane1" Style="text-align: center; width: auto !important">
<div style="font-size: 2EM; text-align: center">
Step 1</div>
<telerik:RadTreeView runat="server" ID="tvNodes" Height="90%" OnClientNodeExpanded="ClientNodeExpand"
CheckChildNodes="True" CheckBoxes="True">
</telerik:RadTreeView>
<div style="text-align: center">
<br />
<asp:Button ID="Button1" runat="server" Text="Add Item(s)" />
</div>
</telerik:RadPane>
<telerik:RadSplitBar ID="Radsplitbar3" runat="server">
</telerik:RadSplitBar>
<telerik:RadPane runat='server' ID="RadPane2" Width="74%">
    Test 2
</telerik:RadPane>
</telerik:RadPageView>
Plamen
Telerik team
 answered on 19 Jun 2014
6 answers
213 views
Hello.

I'm new in this forum, and i hope someone can help me...


_______

My issue is:

(1)-I made a dynamic hierarchy radgrid: one main table [filled dinamically by one dataset ], second table [filled dinamically with other dataset], third table [filled dinamically with dataset], and the fourth the same as the others.

I want to add a new "column", in this grid and reflect it in the other hierarchy sub tables filled by those datasets, and this column having a button or something to export that "select" dataset. 

NOTE: My dataset is sended by WCF via Stored procedure made with SQL 2008.

 (2).- In these hierarchy radgrid, i want to put inside a Tooltip filled with other Tsql consult (stored procedure), maybe sended as a list <t>, and if someone make click in one row the tooltip make a consult into my database and show me a name for example. All of this using WCF (Windows Communication Foundation)..


 I hope, someone can help me....



The column exporting is what i want to solve first.... 

 Have a nice day.






Angel Petrov
Telerik team
 answered on 19 Jun 2014
1 answer
83 views
 Hello,

I am using Image Manager in RadEditor, But I want to show only my last folder Name in virtual path.
Suppose I have an Image in a location: store/mylocation/image/file.gif.
Virtual path is showing my location just like :store/mylocation/image. but I want to show only '/image' in virtual path.

How it possible?
Ianko
Telerik team
 answered on 19 Jun 2014
1 answer
138 views
When the user clicks this button on the toolbar, I want to trigger some server side code which will convert from "HTML scripting" to "VB scripting" in our system.  (Neither of those things is exactly what you think it is. ) I have created the toolbar button:
    Private Sub formatFieldScriptingHtml(ByRef re As RadEditor, ByVal textdir As eDocLibrary.eDocFieldInfo.textDirection)
 
        re.ToolsFile = "~/include/FieldScriptingToolsFile.xml"
        're.DisableFilter(EditorFilters.IndentHTMLContent)
        re.ContentFilters = EditorFilters.None
 
        'This button needs to be added in codebehind, because it gets localized button text
        'The other buttons are standard toolbar buttons that get localized by Telerik
        Dim toVB = New Telerik.Web.UI.EditorTool
        toVB.Name = "toVB"
        toVB.Text = Resources.Main.ConvertToVbButtonText '"Convert to VB", localized
        toVB.ShowIcon = False
        toVB.ShowText = True
        re.Tools(0).Tools.Add(toVB)
' ... omitted code
End Sub

And I've put this in a RadScriptBlock, though I'm not sure it's working:
<telerik:RadScriptBlock>
    <script>
        Telerik.Web.UI.Editor.CommandList["toVB"] = function (commandName, editor, args) {
            var ajaxManager = $find("<%= AjaxManager.ClientID%>");
            ajaxManager.ajaxRequest("toVB");
        }
    </script>
</telerik:RadScriptBlock>

Will this look for a server side function called "toVB"? Or what exactly do I have to do?
Ianko
Telerik team
 answered on 19 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?