Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
1.7K+ views
I call the script from input checkbox field that is inside of  RadPageView of RadDockZone of RadDock how i find that id
<input type="checkbox" runat="server" name="ChkAdmin" value="Chk_Admin" id="Chk_Admins"
                                                                                                        onclick="Chk_AdminClick()" />Admin
function Chk_AdminClick() {                               
                debugger;
                var chkBox = document.getElementsId('Chk_Admins');      
                var Checked = document.getElementsId('Chk_Admins').checked;                               
                var chkBox1 = document.getElementsByName('ChkAdmin');               
                if(chkBox1.Checked == true)
                {
                  setPrives("admin");
                }
                else
                {setPrives("none");}
            }


Regards,
Mohamed
Princy
Top achievements
Rank 2
 answered on 28 Jun 2012
7 answers
315 views
Hello all,

I am using rad window as follows,
i.e., from the code base in a grid row command event.

 
                     Telerik.Web.UI.RadWindow objEditOffer = new Telerik.Web.UI.RadWindow();
                     objEditOffer.VisibleOnPageLoad = true;
                     objEditOffer.NavigateUrl = "~/OfferManagement/CreateEditOffer.aspx?OfferId=" + _commandArg;
                    double heightEditOffer = 400;
                    double widthEditOffer = 900;
                    objEditOffer.Height = new Unit(heightEditOffer);
                    objEditOffer.Width = new Unit(widthEditOffer);
                    

                    pnlrad.Controls.Add(objEditOffer);



I want to close that window and I want to refresh the parent page.I did used the following script,



    function CloseOnReload() {
        //alert("Dialog is about to close itself");
        GetRadWindow().close();
        RefreshParentPage();
    }



    function RefreshParentPage() {
        //alert("Dialog is about to reload parent page");
        GetRadWindow().BrowserWindow.location.reload();
    }


    function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow)
            oWindow = window.radWindow;
        else if (window.frameElement.radWindow)
            oWindow = window.frameElement.radWindow;
        return oWindow;
    }

    function Close() {
        var oWindow = GetRadWindow();
        oWindow.argument = null;

        

        oWindow.close();
        window.location = location.href;
        

        return false;

    }


The script did worked for me but with a problem that is, it is refreshing the page and reopening the rad window again. Please give me a solution ASAP.





Rama
Top achievements
Rank 1
 answered on 28 Jun 2012
2 answers
129 views
I've tried a few ways of making the GridHTMLEditorColumn of my grid to be in text overflow mode. Nothing seems to work.

Given this example: 
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx 

Can someone please alter this column:
<telerik:GridHTMLEditorColumn UniqueName="Notes" SortExpression="Notes" HeaderText="HTMLEditorColumn"
                        DataField="Notes" FooterText="HTMLEditorColumn footer" HeaderStyle-Width="200px">
</telerik:GridHTMLEditorColumn>
Such that text longer than 75px height causes overflow:hidden with ellipsis?
Radoslav
Telerik team
 answered on 28 Jun 2012
1 answer
129 views
Hi Team,

I have implemented RadGrid in a Email Client scenario. Whan I click the RadGridItem I load an user conrol on the same page. Talking about this everything is ok. The problem is that RadGrid not only binds the user controll but also itself which makes everything look dummy. So how can I stop RadGrid from rebinding itself.

Best regards, Ivan.
Tsvetoslav
Telerik team
 answered on 28 Jun 2012
5 answers
195 views
Hi,

I have combo box, im loading the item on load demand. I have client selected index changed event, if i type exact text(case sensitive) and when i come out of the combobox and clicked on out side of the combobox,onclientselectedindexchanged event is firing. I don't want to fire this event when exact match is found. I want user to select the item from the combobox list then only i want this event to be fire.

I have

MarkFirstMatch

 

="false"

 

Attachment1 is firing the event.
Attachment2 is not firing the event.
Please let me know the solution for this. If this is the default behaviour of the combobox, are there any work arounds for the solution.

Thanks in Advance,
Hari.
Princy
Top achievements
Rank 2
 answered on 28 Jun 2012
1 answer
128 views
I'm not sure its possible but I'd like to be able to enter multiple numbers into a numeric textbox.
I'd like to be able to enter a string of numbers such as: 12345, 12365, 14356.
Each number must be a whole number with no decimals. Is this possible or should I use a textbox and validate each value individually after splitting the string?

Thanks
Shinu
Top achievements
Rank 2
 answered on 28 Jun 2012
4 answers
115 views
Dear Sir
i Have a RadRotator in WebControl and i'm loading it in the page within RadAjaxPanel
in IE9 is working fine but in FF OR Safari the images not Showing in the first click button " Cmd_ReadMore " the Secound Click it's showing

how i can solve this problem

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                 <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="Cmd_ReadMore">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="Cmd_Back">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                 </AjaxSettings>
           </telerik:RadAjaxManager>
           <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server">
           </telerik:RadAjaxLoadingPanel>
<telerik:RadButton runat="server" ID="Cmd_ReadMore"  Text="Back"></telerik:RadButton>
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
<asp:Panel ID="Pnl_Data"  runat="server"  Visible="false" >
<telerik:RadButton runat="server" ID="Cmd_Back"  Text="Back"></telerik:RadButton>
     <ibw:imageBrowser ID="ImgBrow" runat="server"   />
</asp:Panel>
 </telerik:RadAjaxPanel>

Code Behind
Public Sub Cmd_ReadMore_Click(sender As Object, e As System.EventArgs)
        Me.Pnl_Data.Visible = True
       Me.ImgBrow.LoadImages()
End Sub
Public Sub Cmd_Back_Click(sender As Object, e As System.EventArgs)
        Me.Pnl_Data.Visible = False
        Me.ImgBrow.ClearImages()
End Sub
Ayman
Top achievements
Rank 1
 answered on 28 Jun 2012
1 answer
113 views
I need hide the first column of the grid when user click on Edit linnk.
Where I can do this?

I attach an image.


this is part of my grid
   <telerik:RadGrid ID="Grid" runat="server" OnNeedDataSource="CommunityGrid_NeedDataSource"
            OnUpdateCommand="CommunityGrid_UpdateCommand" OnInsertCommand="CommunityGrid_InsertCommand"
            AutoGenerateColumns="False" OnItemCommand="CommunityGrid_ItemCommand" OnPreRender="CommunityGrid_PreRender"
            OnItemCreated="CommunityGrid_ItemCreated" OnDeleteCommand="CommunityGrid_DeleteCommand"
            OnItemDataBound="CommunityGrid_ItemDataBound" >
            <MasterTableView DataKeyNames="Id">
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" HeaderStyle-Width="25px"
                        AllowFiltering="false" Resizable="false">
                        <ItemTemplate>
                            <asp:ImageButton ID="EditLink" runat="server" ImageUrl="~/UI/Images/pencil.png">
                            </asp:ImageButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridEditCommandColumn HeaderStyle-Width="25px" UniqueName="EditCommandColumn"
                        ButtonType="ImageButton" EditImageUrl="../Images/grid_edit.png" Resizable="false">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn UniqueName="btnDelete" ConfirmDialogType="RadWindow" ButtonType="ImageButton"
                        CommandName="Delete" ConfirmDialogHeight="100px" ConfirmDialogWidth="300px" HeaderStyle-Width="25px"
                        Resizable="false" />

I try on item DataBound and ItemCommand and does not work.,

Shinu
Top achievements
Rank 2
 answered on 28 Jun 2012
1 answer
110 views
Hi,

I've been trying to figure out how to make the RadMenu expand on click, but close when the mouse moves away from the child item.

I have been able to get it to work with a regular RadMenuItem as a child Item.

However my child item is a custom Item Template.  With the custom item template, the Mouseover/out events just don't seem to fire.

I have found some jquery methods to put on the div's in my custom item template, however, I'm not sure how to close the menu from inside the jquery event, since I don't have a reference to the radmenu or radmenuitem.

I've searched long and hard on this site and others to figure out a solution.

Thanks,
Nona
Princy
Top achievements
Rank 2
 answered on 28 Jun 2012
5 answers
233 views
I currently have a radeditor inside of a radwindow. The radwindow pops up when a user clicks on something and then they can edit the content in the new window. I am experiencing problems with the resizing of the radwindow when opening a dialogue. The initial dialog expands the radwindow sufficiently so I can view it (see screenshot "2_hyperlink_manager.jpg"). However, when I open the document manager from within the hyperlink manager, the document manager does not resize the original radwindow again so I cannot see the entire dialog (see screenshot "3_dialog_window.jpg"). Because of this and some other issues, I would like to change how dialogs open when clicked on from the radeditor. I think that opening the dialog windows outside of the calling radwindow that contains the editor would be more the effect I am looking for. This is what I cannot figure out how to do.

Can you please either redirect me to instructions or provide assistance for how to accomplish this? Or even put the radeditor into another control (not sure which one) that could behave like a popup window so that the dialogs open in a new radwindow on their own. I really like the "modal" features in the radwindow though.

Thank you kindly for your assistance.
Waseem
Top achievements
Rank 1
 answered on 28 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?