Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
304 views
Hi,

I customized the paragraphs dropdown using the config file.
Everything works fine until I try to add paragraphs with classes or "unusual" paragraphs like <code>.

For example I added
<paragraph name="&lt;code>Code&lt;/code>" value="&lt;code>" /> 
<paragraph name="&lt;p class='tipp'>Tipp&lt;&lt;/p>" value="&lt;p class='tipp'>" /> 
to the config file.

The result is that the two options are shown in the drop down box, but they are not applied to the paragraphs or selection when I select one of them.

According to the docs, it should work this way.

By the way: The documentation (http://www.telerik.com/help/aspnet/editor/paragraphstyles.html) regarding this is buggy. The example code for the ToolsFile.xml breaks the editor.

Regards

Martin
Stanimir
Telerik team
 answered on 08 Nov 2012
1 answer
104 views
X Axis's value type  and Y Axis's value type are number type.X - axis points are -2 , -1, 0, 1,2.Y-axis points are from -10 to 0.
How to set X Axis and Y Axis crossing 0 point?
Yavor
Telerik team
 answered on 08 Nov 2012
17 answers
159 views
Hi Telerik.

I have a standard Sharepoint 2010 environment using Telerik Radeditor WCM v 6.1.7.0.

1) Open hyperlink manager and create an anchor HøHø
2) Create a hyperlink using hyperlink manager and use the "Existing Anchor" dropdown and select HøHø.
3) Publish the page and the anchor link does not work.

It seems as if the anchor-link is encoded to the utf-8 version <a href="#H%c3%b8H%c3%b8">, but the anchor itself remains like <a name="HøHø". As effect, the hyperlink is not working in IE but works fine in Firefox.    

In the ConfigFile.xml I have ContentFilters=ConvertToXhtml, ConvertCharactersToEntities

Before the content is published, the anchor and the link is written with html entities as H&oslash; In RadEditorGetStorageHtml in SPEditorTools.js the value of editor.get_html(true) is also the correct using html entities.

Please advice.

Best regards
Klaus
Stanimir
Telerik team
 answered on 08 Nov 2012
1 answer
201 views
Hi,
I am trying to use the show group panel, allowing a user to drag the column names into it, however it keeps throwing an error:

"Error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid group by expression: 'Group By' clause missing"

However if I define an item in the configuration manager it works, properly, So why can't I drag and Drop? :(
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" GridLines="None"
            OnRowDataBound="NamesGridView_RowDataBound" PageSize="14"
            DataKeyNames="OrderId" ShowGroupPanel="True" CellSpacing="0">
            <GroupingSettings ShowUnGroupButton="True" />
            <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True"
                ReorderColumnsOnClient="True">
<Selecting AllowRowSelect="True"></Selecting>
 
                <ClientEvents OnRowMouseOver="RowMouseOver"></ClientEvents>
            </ClientSettings>
            <MasterTableView CommandItemDisplay="Top" ClientDataKeyNames="OrderID, Text" DataKeyNames="OrderID">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn Resizable="False" Visible="False">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="TemplateEditColumn">
                        <ItemTemplate>
                            <asp:HyperLink ID="EditLink" runat="server" Text="Edit"></asp:HyperLink>
                        </ItemTemplate>
                        <FooterStyle Width="32px" />
                        <HeaderStyle Width="32px" />
                        <ItemStyle Width="32px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="OrderId" GroupByExpression="OrderID" HeaderText="Order Ref"
                        SortExpression="OrderId" UniqueName="OrderId" Visible="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="OrderNum" GroupByExpression="OrderNum" HeaderText="Order Number"
                        SortExpression="OrderNum" UniqueName="OrderNum" Visible="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProjectRef" HeaderText="Project" UniqueName="ProjectRef"
                        SortExpression="ProjectRef" GroupByExpression="ProjectRef">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Location" HeaderText="Location" UniqueName="Location"
                        SortExpression="Location" GroupByExpression="Location">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CostCentre" HeaderText="Cost Centre" UniqueName="CostCentre"
                        SortExpression="CostCentre" GroupByExpression="CostCentre">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="AccountCode" HeaderText="Account Code" UniqueName="AccountCode"
                        SortExpression="AccountCode" GroupByExpression="AccountCode">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="activityRef" HeaderText="Order Activity" UniqueName="activityRef"
                        SortExpression="activityRef" GroupByExpression="activityRef">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CategoryRef" HeaderText="Type of Work" UniqueName="CategoryRef"
                        SortExpression="CategoryRef" GroupByExpression="CategoryRef">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Order Date" HeaderText="Order Date" UniqueName="OrderDate"
                        SortExpression="Order Date" GroupByExpression="Order Date">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Plan Date" HeaderText="Target Complete" UniqueName="TargetComplete"
                        SortExpression="Plan Date" GroupByExpression="Plan Date">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Actual Date" HeaderText="Actual Complete" UniqueName="ActualComplete"
                        SortExpression="Actual Date" GroupByExpression="Actual Date">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Amount" HeaderText="Estimated Cost" UniqueName="EstimatedCost"
                        SortExpression="Amount" GroupByExpression="Amount">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ServiceProvider" HeaderText="Service Provider"
                        UniqueName="ServiceProvider" SortExpression="ServiceProvider" GroupByExpression="ServiceProvider"
                        Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Text" HeaderText="Text" UniqueName="Text" Display="false">
                    </telerik:GridBoundColumn>
                </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
                <CommandItemTemplate>
                    <table style="width: 100%;">
                        <tr>
                            <td style="width: 50%;">
                                <a href="#" onclick="return ShowInsertForm();">
                                    <img alt="Insert" border="0" height="20" src="App_Images/AddRecord.gif" width="20" />
                                    Add New Record</a>
                            </td>
                            <td align="right" style="width: 50%">
                                <asp:CheckBox ID="chkArchived" runat="server" AutoPostBack="True" OnCheckedChanged="chkShowArchived_CheckChanged"
                                    Text="Show Archived" Width="163px" />
                            </td>
                            <td align="right" style="width: 50%">
                                <asp:CheckBox ID="chkComplete" runat="server" AutoPostBack="True" OnCheckedChanged="chkShowComplete_CheckChanged"
                                    Text="Show Completed" Width="163px" />
                            </td>
                        </tr>
                    </table>
                </CommandItemTemplate>
            </MasterTableView>
            <GroupPanel Visible="True">
            </GroupPanel>
                        <ClientSettings AllowDragToGroup="True" Selecting-AllowRowSelect="true">
            </ClientSettings>
            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Animation="None"
            Behaviors="Default" InitialBehaviors="None" Left="" Top="" ReloadOnShow="True"
            VisibleStatusbar="false">
        </telerik:RadWindowManager>
    </div>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadSlider1" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    </form>
</body>
</html>

I can't see any errors myself and it all works fine on the page except this group panel,
Many thanks for your help
Ryan
Shinu
Top achievements
Rank 2
 answered on 08 Nov 2012
2 answers
265 views
Is there a way to upload an image into a RadUpload control programatically?

I am prefilling user data on a form, one of the fields is an RadUpload image control, and I would like to pre-populate this field with an image.

thanks.
Rahul Gupta
Top achievements
Rank 1
 answered on 08 Nov 2012
2 answers
149 views

I have an impelentation of the sharepoint radeditor in my shrepoint site.
This site has SSL implementation and redirects the page into https:// 

When firing dioalogs the error i get is : 

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager


but once i open de javascript debugger I get errors like this: 

  1. Unsafe JavaScript attempt to access frame with URL http://mysite/_wpresources/RadEditorSharePoint/6.1.6.0__1f131a624888eeed/Resources/Telerik.Web.UI.DialogHandler.aspx?DialogName=LinkManager&Skin=Default&Title=Hyperlink%20Manager&doid=25b5064f-a6b8-46af-9a6b-1129da699eea&dpptn=&dp=amEBLBhZTVkWbwEobRFnWGwRanMfbHsqZnAXByR%2FZUpZdBBeUQZIAx1hOk8ZYk9JdHBmPSVjYAIWbwUpbitNX2QRCVkcY2ctaRQXZicKX0VbSj51bBJIPh5lNU8Pd2pKXGFhcxdzY0YeYHoxVj8AdlcRfkMkBlEDaRQfQiRVXwBZZH9HeS5iNB1hOkMZAGoGW3FiCxhjBFkIfWopVQ57X3oCeUMQX1ERUHI1axVWcVhdZxBrYilUDiBgGGMiAm5gbgd%2BMxtxVgAhbUgzYih3aWB1UAIRXncJVy4PRxNWX1l1XS4EYQJEcCdxCEEndA1pbkxiKxZef2IhbnoJVQFdWmQ8VEUScXsFZRU1aiN%2FS1paZD5LYQJILyZwLkUNZ2JnbQVQKhdZBGIhb304VQ5vWlcsegUSYWcAVgY9QxVgZX9dWBAHYQJACgljOnESWmpYbgVTMxtyXX4mfnIZeRFNWGEAcgURYlF1UHMpdRdSdWpaay5FYhFydCZxFGIWX2JbdVpudRRyZ3MhbQEZYCtdUmABdQASYmccfhUpRhRgQ1FqdQMLenVIMh0EBEYiaUhbXHFYMiNYd10gf1cyZStzQFV0bUMLd0JxYRstAhxgeUVhZD53VBJ2NyYEJk8Wdn4DWXVMAxhjTU8ea0c2ewJBfm8RDV4iY3MoaRA9dR9vS0piYDFFeQNAHAp%2BEGIVWggK from frame with URL https://mysite/admin/Pages/SpecialOffersForm.aspx?ID=034a2b0e-1487-452e-95a7-28a8ba9d4247. The frame requesting access has a protocol of 'https', the frame being accessed has a protocol of 'http'. Protocols must match. ScriptResource.axd:125
    1. a.RadDialogOpener._applyParametersScriptResource.axd:125
    2. a.RadDialogOpener.openScriptResource.axd:87
    3. a.RadEditor.showDialogScriptResource.axd:6301
    4. Telerik.Web.UI.Editor.CommandList.DocumentManager.SetLinkProperties.LinkManagerScriptResource.axd:3842
    5. a.RadEditor.fireScriptResource.axd:6789
    6. a.RadEditor._onToolClickScriptResource.axd:6219
    7. (anonymous function)ScriptResource.axd:47
    8. (anonymous function)ScriptResource.axd:2399
    9. Telerik.Web.UI.Editor.DefaultToolAdapter._raiseEditorEventScriptResource.axd:3147
    10. Telerik.Web.UI.Editor.DefaultToolAdapter._onToolBarClickScriptResource.axd:3142
    11. (anonymous function)ScriptResource.axd:47
    12. (anonymous function)ScriptResource.axd:47
    13. Sys$UI$DomEvent$addHandler.browserHandlerScriptResource.axd:2948
The page at https://mysite/admin/Pages/SpecialOffersForm.aspx?ID=034a2b0e-1487-452e-95a7-28a8ba9d4247 displayed insecure content from http://mysite/_wpresources/RadEditorSharePoint/6.1.6.0__1f131a624888eeed/Resources/Telerik.Web.UI.DialogHandler.aspx?checkHandler=true.


Any help??
Daniel
Top achievements
Rank 1
 answered on 07 Nov 2012
1 answer
269 views
I have a radlistbox and the items are being inserted programmatically, how do I expand the width of an item so multiple items won't show on a single line as they are showing as of now.

currently items are being inserted to listbox in c# like :
rlbAssigned.Items.Add(new RadListBoxItem(rlbAvailable.Items[rlbAvailable.SelectedIndex].Text, rlbAvailable.Items[rlbAvailable.SelectedIndex].Value));

and the listbox is declared as:
<telerik:RadListBox ID="rlbAvailable" runat="server" Height="320px" Width="200px">                                         </telerik:RadListBox>
Farooq
Top achievements
Rank 1
 answered on 07 Nov 2012
2 answers
179 views
I am trying to give a custom color to the radmenu.
Radmenu is as below
<div class="qsf-demo-canvas" align="center">
        <telerik:RadMenu runat="server" ID="RadMenu1" EnableRoundedCorners
="true" OnItemClick="RadMenu1_ItemClick"
            EnableShadows="true" Width="100%">
            <Items>
  </Items>
        </telerik:RadMenu>

The stylesheet is as below:
.qsf-demo-canvas {
    width: 100%
     margin-top:100px;
    position:static;
}
 
.qsf-demo-canvas .RadMenu_Default .rmLink{
     color:White !important;
     background-color:#0099FF !important;
}
.qsf-demo-canvas .RadMenu_Default .rmRootGroup .MyItem {
    float: none;
    background-color:#0099FF !important;
     text-align:left;
}
I have 2 menu items in my radmenu.The color I give in the stylesheet applies only for the length of radmenu 
item,not till the full length of radmenu.
How can I have the custom color for the whole length of radmenu?
Soumya
Top achievements
Rank 1
 answered on 07 Nov 2012
2 answers
120 views
Is this behavoir a known bug, or is there something wrong with my implementation?

My implementation of RadComboBox locks like following:

<tc:RadComboBox ID="_radComboBox" runat="server"
                                Width="250px"
                                Height="250px"
                                CssClass="stringBox"
                                AutoPostBack="true"
                                MarkFirstMatch="true"
                                EnableLoadOnDemand="true"
                                HighlightTemplatedItems="true"
                                EnableVirtualScrolling="true"
                                ShowMoreResultsBox="true"
                                ShowWhileLoading="true"
                                LoadingMessage="Loading..."
                                ShowDropDownOnTextboxClick="true"
                                OnSelectedIndexChanged="OnSelectedIndexChanged"                              
                                OnItemDataBound="OnItemDataBound"
                                OnItemsRequested="OnItemsRequested"
                                OnLoad="OnComboBoxLoad">

I requestet the data in the MethodCall "OnItemsRequested".

If user clicks in the Textbox an empty ListBox is rendering and in background the "OnItemsRequested" method get called.
When this method returns values, they are shown as normal in the listbox.
Now, if the user should request more then the first items (per Default every call of OnItemsRequested returns 10 Items), the "Loading..." string is shown above the List. 
This is what i expected the listBox should do for the first call on DropDownTextboxClicked.

It is a problem, when the "OnItemsRequested" method needs some time for response.
For the user it looks like, there a no items in list.
 (Because of blank list)

Is there something wrong with my implementation, or is this a known bug of RadComboBox?

Im using Telerik.Web.UI.dll in Version 2012.1.215.40.
Nencho
Telerik team
 answered on 07 Nov 2012
1 answer
56 views
I'm using a Radgrid with custom filtering. It all works fine. I also want to use the inherent filtering that comes with the Radgrid. I use the NeedDataSource when getting the results for my custom search logic and code. However, when the "regular" grid filtering is used, the results are okay, but the total items are based off my back end custom code which is wrong. Hope that made sense.

For example....

Custom Filtering - A datatable is obtained containing the results in the NeedDataSource(). The Grids VirtualItemCount is set to the Datatable.rows.count. So now I have a grid with lets say 25 total records ( 15 rows per page).

Non Custom Filtering - The user enters their search text via the Grids filtering textbox, clicks on the button. The NeedDataSource event is fired. The same original custom filtering is supplied to the backend. A datatable is returned just like before with the same results. And the Grids VirtualItemCount is again set to the total number of records like before. However, the Non Custom Filtering is applied ( I have no idea where..it's a mystery to me) and the correct results are displayed. For example purposes, lets say only three records are displayed based from what the user entered in the Grids filtering search textbox. But the total records are still being applied from the Datatable. So it's wrong.

I hope that made sense.  Bottom line, how in the world do you use both those types of filtering together?
Jeff
Top achievements
Rank 1
Veteran
 answered on 07 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?