Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
101 views
Hi all,

I want to access rad ribbonbar items in client side and set/get its values. Please help me to achieve this.
I want to do the following things.
1.Get and Set values to ddlText (RibbonBarDropDown )
2.Get and Set values to cbSize (RibbonBarComboBox)
3.How can I bind data to ddlText  and cbSize

NB: I am using Telerik  2013.1.220.40

My rad ribbonbar looks like follows.

 <telerik:RibbonBarGroup Text="Font" EnableLauncher="false" Value="Font">
                        <Items>
                            <telerik:RibbonBarControlGroup Orientation="Vertical">
                                <telerik:RibbonBarControlGroup Orientation="Horizontal" >
                                    <telerik:RibbonBarDropDown ID="ddlText"   Width="97" >
                                        <Items>
                                            <telerik:RibbonBarListItem Text="Arial" />
                                            <telerik:RibbonBarListItem Text="Calibri (body)"  Selected="true" />
                                            <telerik:RibbonBarListItem Text="Comic Sans" />
                                            <telerik:RibbonBarListItem Text="Tahoma" />
                                            <telerik:RibbonBarListItem Text="Verdana" />
                                        </Items>
                                    </telerik:RibbonBarDropDown>
                                    <telerik:RibbonBarComboBox ID="cbSize"  Width="40" >
                                        <Items>
                                            <telerik:RibbonBarListItem Text="8"  />
                                            <telerik:RibbonBarListItem Text="9" />
                                            <telerik:RibbonBarListItem Text="10" Selected="true" />
                                            <telerik:RibbonBarListItem Text="11" />
                                            <telerik:RibbonBarListItem Text="12" />
                                            <telerik:RibbonBarListItem Text="14" />
                                            <telerik:RibbonBarListItem Text="16" />
                                            <telerik:RibbonBarListItem Text="18" />
                                            <telerik:RibbonBarListItem Text="20" />
                                            <telerik:RibbonBarListItem Text="22" />
                                            <telerik:RibbonBarListItem Text="24" />
                                            <telerik:RibbonBarListItem Text="26" />
                                            <telerik:RibbonBarListItem Text="28" />
                                        </Items>
                                    </telerik:RibbonBarComboBox>
                                </telerik:RibbonBarControlGroup>
                                <telerik:RibbonBarControlGroup Orientation="Horizontal">
                                    <telerik:RibbonBarToggleButton  ID="tgleBold" Size="Small" Text="Bold" ImageUrl="images/icons/formD-Small-Icon-Bold.png"
                                        DisabledImageUrl="images/icons/formD-Small-Icon-Bold.png" Value="BOLD" />
                                    <telerik:RibbonBarToggleButton Size="Small" Text="Italic" ImageUrl="images/icons/formD-Small-Icon-Italic.png"
                                        DisabledImageUrl="images/icons/formD-Small-Icon-Italic.png" Value="ITALIC" />
                                    <telerik:RibbonBarToggleButton Size="Small" Text="Underline" ImageUrl="images/icons/formD-Small-Icon-Underline.png"
                                        DisabledImageUrl="images/icons/formD-Small-Icon-Underline.png" Value="UNDERLINE" />
                                    <telerik:RibbonBarToggleButton Size="Small" Text="Strikethrough" ImageUrl="images/icons/formD-Small-Icon-Strike.png"
                                        DisabledImageUrl="images/icons/formD-Small-Icon-Strike.png" Value="STRIKE" />
                                    <telerik:RibbonBarToggleList>
                                        <ToggleButtons>
                                            <telerik:RibbonBarToggleButton Size="Small" Text="Superscript" ImageUrl="images/icons/Superscript.png">
                                            </telerik:RibbonBarToggleButton>
                                            <telerik:RibbonBarToggleButton Size="Small" Text="Subscript" ImageUrl="images/icons/Subscript.png">
                                            </telerik:RibbonBarToggleButton>
                                        </ToggleButtons>
                                    </telerik:RibbonBarToggleList>
                                </telerik:RibbonBarControlGroup>
                            </telerik:RibbonBarControlGroup>
                        </Items>
                    </telerik:RibbonBarGroup>

 
Thank you
Abhi
Bozhidar
Telerik team
 answered on 22 Oct 2013
1 answer
301 views
I have a problem with regards on hiding  or Disabling "Upload" toolbar

Here is the scenario:

I have a Parent Folder - Folder 1
and a Child Folder - Folder 2
and a Child Sub-Folder - Folder 3

What I want to achieve is
Hide or Disable the upload button on Parent folder and Child Sub-folder
and the user can upload files inside Child Folder

but I don't know how can I achieve this.

Thank you very much.
Hoping for your reply soon
Vessy
Telerik team
 answered on 22 Oct 2013
1 answer
374 views
In your examples when using load on demand with web service
or client side code, there is a nice loader showing until the loading is completed.

However , when using server side load on demand there is no loader and the control is simply "stuck" until the data is retreved.

Is there any way to get the loader on server side load on demand?

Thanks,
Omer
Bozhidar
Telerik team
 answered on 22 Oct 2013
12 answers
191 views
Hi,

I am using your RadInputs and RadButtons for our subscribe application. I have an issue with history back and automatic restore of the historical data in the form. When i fill some textboxes and togglebuttons, go to other page (link or redirect) and go back with history back, the data in textboxes will be restored as expected but it seems it's thinking it's empty and shows the data as emptymessages and will be lost after next postback. The state of togglebuttons will not be restored. 

I tried with normal html inputs and this will be restored correctly. 

We need this because the users will go back to correct the data sometimes.
Is this an known issue?

See for example
http://screencast.com/t/wnUnvPxo

Tested this in Chrome.

Thanks.
Jelle
Eyup
Telerik team
 answered on 22 Oct 2013
1 answer
120 views
Hi

I have a Radgrid and initially it's empty.
When the user click "Add" button, a RadWindow popup to show another Radgrid with exactly same format(columns) as one in the parentpage. Except in this RadWindow the grid is binded with several rows.

What I want to do is when the user click "Choose" button in the RadWindow, the rows in the grid choosed by the user in the RadWindow will be added into the grid in the parent page.

I've seen the demo of passing values from RadWindow to parent page. But the demo is just passing text. How to pass a datarow to the parent page?

Thanks
Eyup
Telerik team
 answered on 22 Oct 2013
15 answers
682 views
Dear Telerik,

At the moment i am experiencing a strange behaviour with the radgrid. The problem is with the pager. It does not update properly when we use a filter on the grid. Say we have a pager with pagesize 20, and 30 items show. It will show 2 pages. After filering though, it will for example only show 5 items in the grid. The pager however still shows 30 items and 2 pages.

This problem only occurs when we use the property UseAllDataFields="true" on our mastertableview.
(i've seen several threads from the past with the same problem, and i've seen that those people also had the same property set).

Note: we do need this property to be set due an excel export. Not sure if we can workaround this by setting it in the code behind only during export.

Information about our grid / scenario:
We have a grid with:
- simple paging (just default paging with total number of items and pages)
- simple filter (just the default telerik textbox in the header, when typed grid gets filtered)
- grid is ajaxified in ajaxmanager
- advanced databinding in the onneeddatasource event. Here we simply set the grid.datasource to a collection of items

We use Telerik version 2012.1.215.35

Thanks in advance!

Ramon

Eyup
Telerik team
 answered on 22 Oct 2013
1 answer
250 views

Hi,


I have a dropdown list:

<telerik:GridDropDownColumn DataField="GroundGear" DataSourceID="getGroundGears" HeaderText="Ground Gear" ListTextField="GroundGearName" ListValueField="GroundGearCode" UniqueName="GroundGear" ColumnEditorID="GroundGear" Reorderable="False" Visible="false"></telerik:GridDropDownColumn>

With the datasource of "getGroundGears", embedded in the .aspx page:

 

<

 

 

asp:SqlDataSource ID="getGroundGears" runat="server"

 

 

 

ConnectionString="<%$ ConnectionStrings:FisheriesConnectionString %>"

 

 

 

SelectCommand="SELECT [Name] AS GroundGearName, [Code] AS GroundGearCode FROM [vwDisGroundGearAll] ORDER BY [DisplayOrder]">

 

 

 

 

 

 

 

</asp:SqlDataSource>

 


Though I would like the datasource for the dropdown to point to the method DisGroundGearAllTableAdapter.GetDisGroundGearAll.

How can I get the datasource to point to my tableadapters?

Thanks, Ida

Konstantin Dikov
Telerik team
 answered on 22 Oct 2013
3 answers
250 views
I am using VS.Net 2010. I have a RadTreeView control that has a RadTreeViewContextMenu. The RadTreeView control is defined in a User Control. This user control is used in a ASP.Net form inside of a modal popup window.

When the form is run and the modal popup is displayed, the context menu displays as expected when a node is right clicked. This works fine in IE, and FireFox.

The problem we are having is that the context menu is NOT displaying in Chrome under the above circumstances.

However, without the modal popup, the context menu does display.

Why won't the context menu display in Chrome with the control inside of a modal popup?

Shinu
Top achievements
Rank 2
 answered on 22 Oct 2013
3 answers
77 views
Hi;

I was looking at the demo site, and there is a 'Export to Excel' method not the (Export to word/excel/pdf or Export to ExcelML). What is the code behindwhen I click on the Export icon, I don't see code is the DefaultCS.aspx.cs code?, also why can't I export to a .xlsx format?

Thanks in advance
Dan Plocica
Princy
Top achievements
Rank 2
 answered on 22 Oct 2013
4 answers
307 views
Hello,

I have been stuck on this weird bug where RadButton's OnClick event is not fired when the control is inside my MasterPage.

This example does not work
...   
<form runat="server">
        <telerik:RadScriptManager runat="server" ID="_scriptManager"/>
        <telerik:RadAjaxManager runat="server" ID="_ajaxManager" RequestQueueSize="100" EnableTheming="true" />
        <telerik:RadFormDecorator runat="server" ID="_formDecorator" Skin="Metro" DecoratedControls="All" EnableAjaxSkinRendering="true" />
        <telerik:RadSkinManager runat="server" ID="_skinManager" Skin="Metro" />
        <div id="wrap">
            <div id="header">
                <div id="logo">
                    <img src="" width="200px"/>
                </div>
                <table id="Table1" style="width:100%" runat="server">
                    <tr>
                        <td style="float:left;">
                        </td>
                        <td style="float:right;">
                            <telerik:RadButton ID="RadButton1" runat="server" Text="text" OnClick="Unnamed_Click" />
                            <%--<userControl:AuthenticationUC runat="server"/>--%>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="main">
                <asp:ContentPlaceHolder runat="server" ID="MainContent"></asp:ContentPlaceHolder>
            </div>
        </div>
        <div id="footer">
            <div> © <%: DateTime.Now.Year %> - Antoine Cloutier </div>
        </div>
    </form>
...

But this one does work:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="AntoineCloutierWebApp.WebForm1" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager runat="server" />
        <telerik:RadButton runat="server" Text="text" OnClick="Unnamed_Click" />
    </div>
    </form>
</body>
</html>
Note: I am using 2013.3.1015.45 RadControls for ASP.NET Ajax.

Thanks!
Antoine
Top achievements
Rank 1
 answered on 22 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?