Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
The right clcik on a normal html textbox yields the following menu options
1)Undo
2)Copy
3)Paste etc
but when I right click in a RadTextBox control the "Undo" option is always disabled even if I type some value in the text box. Pls. provide your suggestions.
Dimo
Telerik team
 answered on 18 Aug 2010
2 answers
114 views
Quick question -

I am exporting data from a radgrid, and I want to put some of this data on a new worksheet, not a new workbook, just a new sheet within the same workbook. 

Can I do that?  If so, is there an example, or some documentation I can review?

Thanks!
GP
Top achievements
Rank 1
 answered on 18 Aug 2010
1 answer
86 views
Hi,

I've just updated to the Q2 2010 release and changed my RadEditor from and iframe to a div using ContentAreaMode="Div", because we were having issues with the iframe.  It seems to be working well except that it has broken the emoticon button that I had set up.

This line of javascript now give an error of "editor.getToolByName("Emoticons") is null":

editor.getToolByName("Emoticons").get_element().className = "Emoticons";


My emoticon button is set up via a ToolsFile as follows:

<tools>
    <tool Text="             " Name="Emoticons" type="dropdown" ItemsPerRow="5" Width="20px" PopupWidth="170px" PopupHeight="117px">
        <item name="<img src='/images/emoticons/1.gif'/>" value="/images/emoticons/1.gif" />
        <item name="<img src='/images/emoticons/2.gif'/>" value="/images/emoticons/2.gif" />
        <item name="<img src='/images/emoticons/3.gif'/>" value="/images/emoticons/3.gif" />
        <item name="<img src='/images/emoticons/4.gif'/>" value="/images/emoticons/4.gif" />
        <item name="<img src='/images/emoticons/5.gif'/>" value="/images/emoticons/5.gif" />
        <item name="<img src='/images/emoticons/6.gif'/>" value="/images/emoticons/6.gif" />
        <item name="<img src='/images/emoticons/7.gif'/>" value="/images/emoticons/7.gif" />
        <item name="<img src='/images/emoticons/8.gif'/>" value="/images/emoticons/8.gif" />
        <item name="<img src='/images/emoticons/9.gif'/>" value="/images/emoticons/9.gif" />
        <item name="<img src='/images/emoticons/10.gif'/>" value="/images/emoticons/10.gif" />
        <item name="<img src='/images/emoticons/11.gif'/>" value="/images/emoticons/11.gif" />
        <item name="<img src='/images/emoticons/12.gif'/>" value="/images/emoticons/12.gif" />
        <item name="<img src='/images/emoticons/13.gif'/>" value="/images/emoticons/13.gif" />
        <item name="<img src='/images/emoticons/14.gif'/>" value="/images/emoticons/14.gif" />
        <item name="<img src='/images/emoticons/15.gif'/>" value="/images/emoticons/15.gif" />
        <item name="<img src='/images/emoticons/16.gif'/>" value="/images/emoticons/16.gif" />
        <item name="<img src='/images/emoticons/17.gif'/>" value="/images/emoticons/17.gif" />
        <item name="<img src='/images/emoticons/18.gif'/>" value="/images/emoticons/18.gif" />
        <item name="<img src='/images/emoticons/19.gif'/>" value="/images/emoticons/19.gif" />
        <item name="<img src='/images/emoticons/20.gif'/>" value="/images/emoticons/20.gif" />
        <item name="<img src='/images/emoticons/21.gif'/>" value="/images/emoticons/21.gif" />
        <item name="<img src='/images/emoticons/22.gif'/>" value="/images/emoticons/22.gif" />
        <item name="<img src='/images/emoticons/23.gif'/>" value="/images/emoticons/23.gif" />
        <item name="<img src='/images/emoticons/24.gif'/>" value="/images/emoticons/24.gif" />
        <item name="<img src='/images/emoticons/25.gif'/>" value="/images/emoticons/25.gif" />
    </tool>
</tools>

This works fine when I have ContentAreaMode="Iframe" but is broken with ContentAreaMode="Div".

Any suggestions?

Thanks
Andrew Dixon
Rumen
Telerik team
 answered on 18 Aug 2010
4 answers
245 views
I have a combobox with Loadondemand and I keep getting deplicates on scrolling:

 

 

 

<telerik:RadComboBox ID="radcmbInmate" runat="server" Width="200px" Height="150px" AllowCustomText="false" EmptyMessage="Select an Inmate" EnableLoadOnDemand="True" ShowMoreResultsBox="true" Filter="None" EnableVirtualScrolling="true" MarkFirstMatch="true" HighlightTemplatedItems="true" DataTextField="FullName" DataValueField="InmateID" OnItemsRequested="radcmbInmate_ItemsRequested">
</telerik:RadComboBox>

 

 


 

private DataSet GetInmateDataSet(string inmateText)
{
     string errorMsg = string.Empty;
     DataSet DS = new DataSet();
     Inmate.GetByName(FacilityID, inmateText, ref DS, ref errorMsg);
     return DS;
}
  
protected void radcmbInmate_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
     DataSet data = GetInmateDataSet(e.Text);
     radcmbInmate.DataSource = data;
     radcmbInmate.DataBind();
}
Jeff Reinhardt
Top achievements
Rank 1
 answered on 18 Aug 2010
2 answers
161 views
I wonder if someone could explain why the layout of a page with a couple of RadListBoxes on it changes if I ajaxify 'em.
SS1.jpg shows the page without a RadAjaxManager and SS2.jpg with one.

The only difference in the code is this ...
<telerik:RadAjaxManager ID="RadAjaxManager1"
                        runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadListBox1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadListBox1"/>
                <telerik:AjaxUpdatedControl ControlID="RadListBox2"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

Enquiring minds, and all that ...

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 18 Aug 2010
3 answers
325 views
I have a grid which uses gfrouping. I remove the header border lines using the following for my data columns:

<

 

HeaderStyle HorizontalAlign="Left" BorderStyle="None"></HeaderStyle>

 


How do I do the same for the GridGroupSplitterColumn?
Dimo
Telerik team
 answered on 18 Aug 2010
7 answers
380 views
How to add scroll to rad menu child items dynamically

<telerik:RadMenu ID="rm_top" runat="server" Style="z-index: 2000" CausesValidation="False"
                                    Font-Names="Arial" Width="100%" OnPreRender="rm_top_PreRender" EnableRoundedCorners="true"
                                    BorderStyle="None" >
                                                                      <CollapseAnimation Type="OutExpo" Duration="200"></CollapseAnimation>
                                </telerik:RadMenu>
  
  
binding code:
rm_top.DataFieldID = "AdminMenuID";
                rm_top.DataFieldParentID = "AdminMenuParentID";
                rm_top.DataTextField = "AdminMenuName";
                rm_top.DataValueField = "AdminMenuID";
                rm_top.DataNavigateUrlField = "AdminMenuUrl";
                rm_top.DataBind();
Yana
Telerik team
 answered on 18 Aug 2010
1 answer
195 views
Hi! Today i had a problem and i can´t solve alone so i´ve decided to ask you ...
The problem is:

    I have a control ascx and inside it i have a radgrid ..
    I have it to, inside my control, a RadWindow so when the user choose to add a new item on my grid, i show that window.
    Inside that window i have another RadGrid (both grids have AllowPaging = True), so i have automatic pagination on both.    
    My problem is when i choose any page on pagination bar of my grid, the one that is inside my window,  it is made a postback and my   window closes automatically :| ..
    That way I can´t see my pagination working on my grid existing inside my RadWindow ...
    Any ideas, how to solve my problem ??

    I would be very glad if ou can help me.

Best regards,

Ricardo.



Maria Ilieva
Telerik team
 answered on 18 Aug 2010
1 answer
138 views
Good Day All

I have a Toolbar that is Currently defined like this

<telerik:RadToolBar ID="RadToolBar1" Runat="server" EnableViewState="False"
                    Height="100%" Skin="Forest" Width="100%">
                    <Items>
                        <telerik:RadToolBarButton Width="100%" runat="server" Text="Button1">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnoweb"    runat="server" Height="50"
                                    ImageUrl="~/images/o!logo.png" Width="50" />
                                <asp:ImageButton ID="btnCalender"     runat="server"
                                    ImageUrl="~/images/CalenderView.png" OnClick="btnCalender_Click" />
                                <asp:ImageButton ID="btnAttach"    runat="server" ImageUrl="~/images/Attach.png" />
                                <asp:Menu ID="mnuMenu" runat="server">
                                </asp:Menu>
                                <telerik:RadMenu ID="mnuAdd"   runat="server" Visible="true">
                                    <ItemTemplate>
                                        <asp:Image ID="imgicon"     runat="server" EnableViewState="false"
                                            ImageUrl="~/images/Add.png" />
                                    </ItemTemplate>
                                </telerik:RadMenu>
                                <asp:TextBox ID="txtsearch" runat="server"    onkeypress="keyPress()" Font-Size="X-Large" Height="40px"
                                      Width="650px"></asp:TextBox>
                                <asp:ImageButton ID="btnsearch"     runat="server"
                                    ImageUrl="~/images/btnsearch.png" OnClick="btnSearch_Click" />
                                <asp:ImageButton ID="btnCancel"    runat="server" ImageUrl="~/images/Cancel.png"
                                    OnClick="btnCancel_Click" />
                            </ItemTemplate>
                        </telerik:RadToolBarButton>
                    </Items>
                </telerik:RadToolBar>


And Currently it looks like the one in the Image named "Current_ToolBar" and the one that i want is supposed to look like the image ToolBarDesign. As you can see the round corners and the textbox is inside and the the  image button on the right looks as if is inside the text and the other icon on the left.

How can i do this Design.

Thanks



Yana
Telerik team
 answered on 18 Aug 2010
3 answers
430 views
Hi,

I am using client script to close my RadWindow after postback, as follows:

<telerik:RadWindowManager ID="rwmWindow" Width="500px" Height="375px" 
    runat="server" DestroyOnClose="true" Modal="true" VisibleOnPageLoad="false" 
    Title="New Rad Window">
    <Windows>
        <telerik:RadWindow ID="rwWindow" runat="server" ReloadOnShow="true" ShowContentDuringLoad="false" DestroyOnClose="true" Behaviors="Close,Resize,Move" OpenerElementID='<%# Parent.FindControl("btnMyLaunchButton").ClientID %>'>
            <ContentTemplate>
            <script language ="javascript" type ="text/javascript" >
                function GetRadWindow() {
                    var oWindow = null;
                    if (window.radWindow)
                        oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog       
                    else if (window.frameElement.radWindow)
                        oWindow = window.frameElement.radWindow; //IE (and Moz as well)       
                    return oWindow;
                }
  
                function Close() {
                    GetRadWindow().Close();
                }           
                </script> 
<div class="window">
<p>This is the new rad window</p>
                <asp:literal ID="litClose" runat="server" Visible="false"></asp:literal>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="Submit_Click"/>
                </div>
            </ContentTemplate>
    </telerik:RadWindow>        
    </Windows>
</telerik:RadWindowManager>

Now within Submit_Click I update the literal as follows:

litClose.Text =

 

"<script type='text/javascript'>Close()</" + "script>";

 

 


This works fine, but the DestroyOnClose attribute of the window seems to be ignored as when I next launch the window, the contents are still there.

How can I destroy the window using the client-side close?

Thanks.
Georgi Tunev
Telerik team
 answered on 18 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?