Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
101 views
Hello

I have an requirement to use dsn to connect with the sql server database. So can I use odbc instead of sqldatasource or I can use both sqldatasource and odbc parallel.

I building 5 level grid.
Thanks
swathi
Top achievements
Rank 1
 answered on 05 Mar 2014
1 answer
58 views
As can be seen from the attached screen shot I have an input grid with a editing pop up form which contains two editor fields.
The top one shows the statistics, but the other one says "undefined" rather than "words" and "characters". Please can you tell me how to fix this

Edit form code is

<EditFormSettings CaptionFormatString="Edit Plan: {0}" CaptionDataField="assessment_plan_reference"<br>                                    EditFormType="Template"><br>                                    <EditColumn UniqueName="EditCommandColumn1"><br>                                    </EditColumn><br>                                    <FormTemplate><br>                                        <table id="Table1" cellspacing="1" cellpadding="10" width="550px" border="1" style="border-collapse: collapse;<br>                                            border-width: 2px; background: white;"><br>                                            <tr><br>                                                <td><br>                                                </td><br>                                            </tr><br>                                            <tr><br>                                                <td><br>                                                    Week<br>                                                    <asp:Label ID="lblWeekno" runat="server" Text='<%#Bind("week_number")%>' /><br>                                                </td><br>                                            </tr><br>                                            <tr><br>                                                <td><br>                                                    Content<br>                                                    <br /><br>                                                    <telerik:RadEditor ID="RadEditor1" runat="server" Content='<%# Bind("content") %>'<br>                                                        ToolsFile="WebBlue/ToolsFile.xml" Height="300px" Width="500px" Skin="WebBlue" /><br>                                                        <br /><br>                                                    <br>                                                </td><br>                                            </tr><br>                                            <tr><br>                                                <td><br>                                                    Activity<br>                                                    <br /><br>                                                    <telerik:RadEditor ID="RadEditor2" runat="server" Content='<%# Bind("activity") %>'<br>                                                        ToolsFile="WebBlue/ToolsFile.xml" Height="300px" Width="500px" Skin="WebBlue"><br>                                                       <br>                                                      </telerik:RadEditor><br>                                                </td><br>                                            </tr><br>                                            <tr><br>                                                <tr><br>                                                    <td align="right" colspan="2"><br>                                                        <asp:Button ID="btnUpdate" Text='Update' runat="server" CommandName='Update'></asp:Button>&nbsp;<br>                                                        <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"<br>                                                            CommandName="Cancel"></asp:Button><br>                                                    </td><br>                                                </tr><br>                                        </table><br>                                    </FormTemplate><br>                                </EditFormSettings><br>

xml file extract is

<root>
<modules>
<module name="RadEditorStatistics" dockingZone="Bottom"/>
<module name="RadEditorDomInspector" />
<module name="RadEditorNodeInspector" />
<module name="RadEditorHtmlInspector" visible="false" />
</modules>
<tools name="MainToolbar">
<tool name="AjaxSpellCheck"/>
<tool name="ImageManager" shortcut="CTRL+G"/>
<tool name="AbsolutePosition" />
<tool separator="true"/>
<tool name="LinkManager" shortcut="CTRL+K"/>
<tool name="Unlink" shortcut="CTRL+SHIFT+K"/>
<tool separator="true"/>
<tool name="FindAndReplace" shortcut="CTRL+F"/>
<tool name="SelectAll" shortcut="CTRL+A"/>
<tool name="Cut" />
<tool name="Copy" shortcut="CTRL+C"/>
<tool name="Paste" shortcut="CTRL+V"/>
<tool name="PasteStrip"/>
<tool separator="true"/>
<tool name="Undo" shortcut="CTRL+Z"/>
<tool name="Redo" shortcut="CTRL+Y"/>
<tool separator="true"/>
<tool name="Bold" shortcut="CTRL+B"/>
<tool name="Italic" shortcut="CTRL+I"/>
<tool name="Underline" shortcut="CTRL+U"/>
</tools>



Shinu
Top achievements
Rank 2
 answered on 05 Mar 2014
5 answers
151 views
Hi All,

I have any interesting set of requirements that I have implemented.  However, if one User has multiple tabs/windows of the RadGrid open ViewState errors, such as the one below, can occur.  Is there any way to place them in a try-catch of sorts so that the entire page doesn't error out?

[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +10067188
   Telerik.Web.UI.GridColumnCollection.System.Web.UI.IStateManager.SaveViewState() +208
   Telerik.Web.UI.GridTableView.GetStructureState() +114
   Telerik.Web.UI.RadGrid.SaveTableViewStructure(ArrayList stateList, GridTableView tableView) +47
   Telerik.Web.UI.RadGrid.SaveViewState() +74
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +80
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3770

Thanks,
Mark
Kostadin
Telerik team
 answered on 05 Mar 2014
2 answers
71 views
How do I override the CSS for .t-container-fluid .t-col   ???
Rumen
Telerik team
 answered on 05 Mar 2014
6 answers
98 views
Hi,

first I would like to wish all of you a happy new year.

I want to use a GridDropDownColumn. The list of possible entries is populated by a webservice. What's the suggested way to implement this feature?

Thanks,
Chris
Pavlina
Telerik team
 answered on 05 Mar 2014
5 answers
176 views
Hi,

I have just upgrdade to the latest internal build of RadControls and the buttons on my page now have a dull black icon. How do I get the colour back? I am using the default skin and have tried changing the skin howevre this does not appear to change the icon.
<telerik:RadButton ID="bSearch" runat="server" Text="Search" OnClick="bSearch_Click"
    Width="90px">
    <Icon SecondaryIconCssClass="rbSearch" SecondaryIconRight="4" SecondaryIconTop="4" />
</telerik:RadButton>

I can't seem to spot the demo which changes this back.

Thanks,

George
Bozhidar
Telerik team
 answered on 05 Mar 2014
0 answers
166 views

Q1 2014 (Version number: 2014.1.225)


Problem:

Control is throwing a JavaScript error on IE7:  “Could not get the fontWeight property. Invalid argument”.

Solution:

This issue will be resolved in the first internal build. If you do not want to use an internal build the following JavaScript and CSS fix will resolve the issue:
<script type="text/javascript">
    Telerik.Web.UI.RadAutoCompleteBox.DropDown.prototype._createTextSizingDiv = function (sourceElement) {
        var textSizingDiv = document.createElement("div"),
            fontStyles = ["font-size", "font-family", "font-weight", "font-variant", "font-style", "text-transform"],
            fontStylesProperties = ["fontSize", "fontFamily", "fontWeight", "fontVariant", "fontStyle", "textTransform"];
 
        textSizingDiv.style.position = 'absolute';
        textSizingDiv.style.display = 'block';
        textSizingDiv.style.visibility = 'hidden';
 
        // In IE 7/8 getComputedStyle takes styles in format "fontSize", while in other browsers
        // it must be "font-size". After fixing the getComputedStyles implementation to resolve
        // the format, remove this workaround
        if ($telerik.getComputedStyle(sourceElement, fontStyles[0], null) === null) {
            fontStyles = fontStylesProperties;
        }
 
        for (var i = 0, length = fontStyles.length; i < length; i++) {
            textSizingDiv.style[fontStylesProperties[i]] = $telerik.getComputedStyle(sourceElement, fontStyles[i], null);
        }
 
        return textSizingDiv;
    }
</script>

<style type="text/css">
    html .RadAutoCompleteBox .racTokenList {
        display: block;
    }
</style>
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 05 Mar 2014
7 answers
195 views
Hi all -

I just installed the latest version of the Telerik Controls (Q3 2013 2nd hotfix).  After doing so, it seems that the build in CSS icon classes for the buttons are no longer in color.  All of our buttons had the  PrimaryIconCssClass property set to the built in classes like rbOK, rbAdd, rbCancel, etc.  In the new release, they are just black and white.  How can I get the colored icons back?  I know I can physically add my own icon, but I like the ones Telerik provided....and still do, but no longer in color?

Thanks!

Christy
Bozhidar
Telerik team
 answered on 05 Mar 2014
2 answers
116 views
I am experiencing problems replacing a simple asp button with a RadButton.
I need to simply fire a Javascript but it is not working.
This is the original asp button I need to replace:
<button style="width: 150px; margin-bottom: 0px;" onclick="openRadWin(); return false;">Exchange rate calculator</button>

This is the RadButton I am coding to replace the above asp button. 
<telerik:RadButton ID="Button11" runat="server" Text="" CssClass="cNexchange"
                       HoveredCssClass="cHexchange" PressedCssClass="cCexchange" OnClientClicked="openRadWin(); return false;">
                       <Image EnableImageButton="true" />
                   </telerik:RadButton>
I cannot fire the "openRadWin(); return false,"
this is the function:
<script type="text/javascript">
       //<![CDATA[
       function openRadWin() {
           var width = "430px";
           var height = "355px";
           var left = "800px";
           var top = "150px";
           radopen("currencies.aspx", "RadWindow1", width, height, left, top);
       }
       //]]>
   </script>

What am I doing wrong here?
Felice
Top achievements
Rank 1
 answered on 05 Mar 2014
2 answers
69 views
Hi all,
Using RadControls for ASP.NET AJAX Q3 2013 with VS 2010.
I can't see Editor Tool Bars in IE 11 but they shows in IE 9. Please refer to attached. But works perfectly in Firefox or Chrome.

Below is my Page and Editor Declarations.  Any Help will be appreciated.

Thanks

gc_0620
Page Header:

<head id="Head1" runat="server">
    <title>Client Note</title>
    <meta http-equiv="x-ua-compatible" content="IE=edge" />
    <link href="styles.css" rel="stylesheet" type="text/css" />
    
</head>

Rad editor
<telerik:RadEditor ID="RadEditorEdit" ToolsFile="EditorTools.xml" ToolTip="Maximum 3000 characters allowed."
    EditModes="All" runat="server" ToolbarMode="ShowOnFocus" Content='<%# Bind("Notes_Comment") %>'>
    <ExportSettings OpenInNewWindow="true">
    </ExportSettings>
    <Tools>
        <telerik:EditorToolGroup Tag="Bottom">
            <telerik:EditorTool Name="AbsolutePosition" ShowIcon="true" />
            <telerik:EditorTool Name="TrackChangesDialog" Enabled="true" ShowIcon="true" />
        </telerik:EditorToolGroup>
    </Tools>
    <Modules>
        <telerik:EditorModule Name="RadEditorDomInspector" Enabled="true" Visible="true" />
        <telerik:EditorModule Name="RadEditorStatistics" Enabled="true" Visible="true" />
    </Modules>
</telerik:RadEditor>




Ianko
Telerik team
 answered on 05 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?